 |
| Author |
Message |
|
|
Posted: Jul 27, 2012 - 05:34 PM |
|

Joined: Apr 19, 2009
Posts: 200
|
|
I'm using the unmodified example...
Bootloaders\HID
LUFA newest stable release LUFA 120219
on a AT90USB1287
Problem is when I change from RAM to FLASH descriptors, and add PROGMEM to each of the structs and compile, the USB device on windows 7 gets and error, and says the device is not recognized.
Am I doing something wrong? I read through the LUFA docs and it seems all I have to do is change USE_RAM_DESCRIPTORS to USE_FLASH_DESCRIPTORS, then add PROGMEM to each descriptor struct, but it does not work, any help would be greatly appreciated, thanks everyone! |
|
|
| |
|
|
|
|
|
Posted: Jul 27, 2012 - 05:52 PM |
|


Joined: Jul 18, 2005
Posts: 62313
Location: (using avr-gcc in) Finchingfield, Essex, England
|
|
| What toolchain are you building with and were there any build time warnings? Later GCC such as the 4.6.2 in AS6 are getting much more picky about where "const" is used in preparation for __flash in 4.7 |
_________________
|
| |
|
|
|
|
|
Posted: Jul 27, 2012 - 07:32 PM |
|

Joined: Apr 19, 2009
Posts: 200
|
|
| i copied code example from lufa example that uses flash descriptors, and everything compiles ok, my chip is 128k, but not sure if that is a factor, generic hid example that uses flash dewscriptors works ok, i just cant seem to change the hid bootloader example to use flash descriptors and get it to work |
|
|
| |
|
|
|
|
|
|
|