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
Genoil
PostPosted: Dec 03, 2013 - 01:59 PM
Rookie


Joined: Mar 28, 2013
Posts: 37


I installed the LUFA extension for Atmel Studio 6.1 but I'm running into a problem building the examples:

Code:

Error   1   1643 : unknown register name 'r0' in asm   


It happens in the wdt_enable() and wdt_disable() asm macro's in wdt.h:

Code:

for some reason PHPBB doesn't like me pasting the source code of those macro's here. Probably because of all the backslashes...


My target is atmega32U4. For some reason I suspect this hasn't got much to do with LUFA, rather my build environment, but I have no clue what to do about it..
 
 View user's profile Send private message  
Reply with quote Back to top
clawson
PostPosted: Dec 03, 2013 - 02:32 PM
10k+ Postman


Joined: Jul 18, 2005
Posts: 71738
Location: (using avr-gcc in) Finchingfield, Essex, England

There's a bug in the forum software that prevents % signs being posted. Convert any to the sequence % (yes all of that!).

Which model of AVR are you actually building for? (there are some that only have r16..r31 - but then again you wouldn't be using LUFA with those). I'd start by checking that the build target is 32U4 and not set to something else. Maybe check the actual build output and check that you see "-mmcu=atmega32U4" amongst the build commands.

_________________
 
 View user's profile Send private message  
Reply with quote Back to top
Genoil
PostPosted: Dec 03, 2013 - 04:14 PM
Rookie


Joined: Mar 28, 2013
Posts: 37


Hmm. the compiler output windows was telling me this:
Code:

LUFA_MS_32KB_4KB_1(0,0): Invalid external Makefile. Value cannot be null

For some reason the "use external Makefile" box was ticked, I probably ticked it myself trying to resolve the issue earlier. It does compile succesfully now, yet still it reports those errors after build...
 
 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