CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

USB for PIC24

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sergio1234



Joined: 06 Jan 2006
Posts: 17
Location: Argentina

View user's profile Send private message

USB for PIC24
PostPosted: Wed Dec 11, 2019 8:27 pm     Reply with quote

I need to add USB Bulk functionality in a PIC24 project.

I need my project to work with all versions of Windows from XP to Win10 32 and 64 bits.

To make my task easier, I bought a USB for PIC24 Dev Kit from CCS, although I must mention that I feel a bit disappointed with this devKit. Evil or Very Mad


Unfortunately, what is written in the exercise book that came with the KIT does not match the files that were installed on the PC from the CD that came with it.

For example, the files of the WinUSB bulk drivers do not exist as mentioned in appendix B for the unknown ccs bulk demo device.

Without the drivers, the examples do not work and it is impossible to move forward.

Where could I get these drivers?

There is also no program HIDDEMO.exe necessary to do the exercise of Chapter 9 (although I will not use HID).

My intention is to run the examples of this KIT made for PIC24FJ256GB206, and then make them work in my project with 24EP512GU814.

I don't see much information in the forum regarding the use of USB in PIC24, did anyone have any successful USB BULK project with CCS and PIC24?

Did anyone get the examples of the CCS USB PIC24 DevKit to work?

I thank you in advance for your help, comments and recommendations.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: USB for PIC24
PostPosted: Wed Dec 11, 2019 9:17 pm     Reply with quote

sergio1234 wrote:

For example, the files of the WinUSB bulk drivers do not exist as mentioned
in appendix B for the unknown ccs bulk demo device.

Post a list of the missing files.
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 1:54 am     Reply with quote

Simply ask CCS for the driver.
There are normally three files needed:
usbdemo.sys
Oscope.exe
hiddemo.exe

The link from here does still work:
<https://www.ccsinfo.com/forum/viewtopic.php?t=54622>

and gives the first two files.
However much better just to ask CCS.

I'm using a PIC24, seen as an BOMS class device. However I have
rewritten the drivers using DMA, and these and the VID/PID I'm using
are proprietary.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 2:17 am     Reply with quote

I opened the zip file. It gives all the files.

hiddemo.exe
OScope.exe
BulkUSBDemo.inf
USBDemo.sys
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 3:56 am     Reply with quote

Good.

The text only refers to the two files, so I assumed this was all it
contained.

It is a CCS 'silly' that these disappeared from the download page, and are
missed in the supplied disk.
sergio1234



Joined: 06 Jan 2006
Posts: 17
Location: Argentina

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 7:03 am     Reply with quote

Thank you all for your quick responses.

I have downloaded the files from the suggested link

I tried to install the bulksbdemo.inf in Win10 64bit, to do so it was necessary to make a restart of the pc in safe mode to allow the installation of unsigned drivers

From the device manager I tried to take the unknown CCS BulkDemo device, to update the drivers from the BulkUSBDemo.inf and USBDemo.sys, but unfortunately Windows says that there is no driver compatible with this device

Then I installed the drivers manually in Windows using the BulkUSBDemo.inf, Win10 gave a warning saying that the driver was not signed, I told windows to install it anyway and apparently Windows installed it since it gave no errors

Unfortunately, the CCS BulkDemo device remains unknown in the device manager, it does not recognize the driver

Any other ideas? Did someone run this on Win10 64?

Thanks in advance
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 7:19 am     Reply with quote

A I said before _ask CCS_.
sergio1234



Joined: 06 Jan 2006
Posts: 17
Location: Argentina

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 7:28 am     Reply with quote

I already made the claim to CCS yesterday, they still didn't answer.
temtronic



Joined: 01 Jul 2010
Posts: 9168
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 7:56 am     Reply with quote

CCS staff are very busy ! Look at the qty of high tech products they sell.. software, hardware, firmware,etc.

They usually get back within 2-3 days which is a LOT better than others !!
when yo contact them be sure to include your customer number and other information( SW versions), that way they can find a solution and email you in ONE step, not 2 or 3.

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 8:49 am     Reply with quote

From what I read, you have not installed the driver.

Saying 'install' as you have done, won't let the driver install in W10 (on
current versions). This is why the device is still not recognised.
You have to actually turn off driver signature enforcement.

Start Menu
Settings
Recovery
Advanced startup
Restart Now
Troubleshoot
Advanced options
Startup settings
Restart
It'll then give you a Startup Settings screen.
Hit '7' or 'F7'

When the machine boots install the driver.

You can also disable enforcement from the command prompt (admin):

bcdedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS<RETURN>
bcdedit.exe -set TESTSIGNING ON<RETURN>

Reboot and install the driver

Then to turn the signing back on:

bcdedit -set loadoptions ENABLE_INTEGRITY_CHECKS<RETURN>
bcdedit -set TESTSIGNING OFF<RETURN>

Windows 10, from about the middle of last year, no longer allows
unsigned drivers to load unless this is done.
You'll have the same issue with any driver you produce, unless you pay
the fee to register the driver.
sergio1234



Joined: 06 Jan 2006
Posts: 17
Location: Argentina

View user's profile Send private message

PostPosted: Thu Dec 12, 2019 1:21 pm     Reply with quote

Thanks Ttelmah

Of course I had tried to install the drivers without success, previously disabling the security of Win10 to allow installing unsigned drivers.

Unfortunately these drivers do not work in Win10 64
Ttelmah



Joined: 11 Mar 2010
Posts: 19358

View user's profile Send private message

PostPosted: Fri Dec 13, 2019 3:28 am     Reply with quote

Er. They should do. I have a W10 64 install, and they work here.
They are not 'drivers' really. This is only an inf file which specifies how
to use the drivers already inside Windows itself, and it is only a matter
of getting Windows to accept using an unsigned .inf.
dyeatman



Joined: 06 Sep 2003
Posts: 1924
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Dec 14, 2019 6:02 am     Reply with quote

I have Win 10 64 bit on two machines and the USB drivers work fine in both places.
_________________
Google and Forum Search are some of your best tools!!!!
sergio1234



Joined: 06 Jan 2006
Posts: 17
Location: Argentina

View user's profile Send private message

PostPosted: Sat Dec 14, 2019 8:11 am     Reply with quote

I tried in every way possible to install the driver of the year 2002 downloaded from the link <https://www.ccsinfo.com/forum/viewtopic.php?t=54622> and there was no way that it was recognized by windows 10 for the CCS BulkDemo device

Finally CCS Support answered me and sent me a new package with new drivers, examples and exes of the year 2014, which happily installed without problems, and with this apparently everything works Laughing
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group