Yes I know this post was my starting point.
That is exactly what I did, and it does work.Copy the PBP\USB18 folder to a new location.
You do not want any files left over from previous versions of PBP, so don't try to copy it into an existing project folder.
Open and compile cdc_demo.bas with the proper chip selected.
Program the chip and test. Done deal.
It is when I add Darrel USB_ASM_Service.pbp and remove the original USBINIT/USBSERVICE that the PIC does not enumerate anymore...
A last resort idea would be to USBSERVICE using a Timer0 interrupt, but Darrel solution adds more fancy controls such as the ability to know if the link is established, or if Tx/Rx operations are available/possible. This would be a nice addition to prevent any USB buffer fill and lock-up of the PIC.
(PS. I tried to send a private message to Darrel about 3 weeks ago but had no reply).




Bookmarks