Dangerous Prototypes

Other projects => Past projects => USB serial LCD backpack => Topic started by: ahmetonat on November 10, 2011, 12:30:19 pm

Title: Which framework version for USB serial LCD backpack?
Post by: ahmetonat on November 10, 2011, 12:30:19 pm
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.
Title: Re: Which framework version for USB serial LCD backpack? SOL
Post by: ahmetonat on November 10, 2011, 08:06:54 pm
This is solved. The problem was a misleading comment in project file: "main.c"

It states:

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.
Title: Re: Which framework version for USB serial LCD backpack?
Post by: ian on November 11, 2011, 07:47:37 am
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.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00912057720session_write_close ( )...(null):0
20.00942189312ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00942190088Database_MySQL->query( ).../DatabaseHandler.php:119
40.05412328824Database_MySQL->error( ).../Db-mysql.class.php:273