Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
12oclocker
PostPosted: Jul 27, 2012 - 05:34 PM
Hangaround


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!
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Jul 27, 2012 - 05:52 PM
10k+ Postman


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

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
12oclocker
PostPosted: Jul 27, 2012 - 07:32 PM
Hangaround


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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits