Hi;
I want to adapt the "USB serial LCD backpack" to our generic microcomputer board SuboardII (see: fens.sabanciuniv.edu/suboard ). We are using the MCHPFSUSB bootloader; original of Microchip. As far as I can see the applications are compatible between that and the bootloader designed into the backpack.
The original .hex file supplied in the archive activates the USB interface fine; the test program connects and appropriate pins seem to be exercised. But since the LCD pinout is different, I must recompile.
When I compile the source, I can print to the LCD without problems, but the USB does not work. (I get no compilation errors BTW).
I thought that perhaps I am using the wrong version of the Microchip Suite. What was the Suite version for the original buillds?
Best,
Ahmet.
This is solved. The problem was a misleading comment in project file: "main.c"
It states:
//1.Download and install the USB source. These files install to c:Microchip Soultions by default.
//2.Place the project folder in the Microchip source install directory (c:Microchip Soultions by default)
//3.Copy usb_config.h & usb_descriptors.c from Microchip SolutionsUSB Device - CDC - Basic DemoCDC - Basic Demo - Firmware3 to the project folder.
//4. That's it. You've got the latest source and we're compliant with the license.
However, the file "usb_config.h" provided by Microchip is not suitable for this project; it specifies interrupt service for USB, while polling is used in this project. So if you want to re-compile, disregard step #3 above about usb_config.h.
BTW the project was compiled on MplabX Beta5, on Linux.
Thanks for the update, I'm sorry about the incorrect comment. In the next release I will port it to the new open source USB stack and then we can include all the files in the distribution.