Flora issue when compiling

Post test messages here

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
seba8282
 
Posts: 1
Joined: Wed Apr 06, 2016 2:28 pm

Flora issue when compiling

Post by seba8282 »

Hello!

I'm brand new around here. I was testing my new Flora, followed the installation guides and all looks good, except that when I try to upload the blinking led code to my Flora, I get:

Arduino: 1.6.9 Hourly Build 2016/04/06 06:33 (Windows 10), Board: "Adafruit Flora"

C:\Users\test\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino\CDC.cpp: In function 'bool CDC_Setup(USBSetup&)':

C:\Users\test\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino\CDC.cpp:104:29: error: 'MAGIC_KEY_POS' was not declared in this scope

uint16_t magic_key_pos = MAGIC_KEY_POS;

^

C:\Users\test\Desktop\arduino-nightly\hardware\arduino\avr\cores\arduino\CDC.cpp:129:34: error: 'MAGIC_KEY' was not declared in this scope

*(uint16_t *)magic_key_pos = MAGIC_KEY;

^

exit status 1
Error compiling for board Adafruit Flora.

I tried commenting the lines in the CDC.cpp file, but I get new errors, so I figure I just leave it as it is and ask here. Any clue on how to solve it?

I really appreciate it!

Seba

User avatar
Franklin97355
 
Posts: 23902
Joined: Mon Apr 21, 2008 2:33 pm

Re: Flora issue when compiling

Post by Franklin97355 »

Try using 1.6.5 or 1.6.7 the error looks like it is coming from the compiler and not your program.

User avatar
ericfoster
 
Posts: 2
Joined: Tue May 10, 2016 2:22 pm

Re: Flora issue when compiling

Post by ericfoster »

I am having the same difficulty with a Feather 32u4. I have tried IDE 1.6.9, 1.6.8, 1.6.7, 1.6.5r5...all running on Mac OS 10.10.5. Can you help? This is the error message:

...Arduino15/packages/arduino/hardware/avr/1.6.11/cores/arduino/CDC.cpp: In function 'bool CDC_Setup(USBSetup&)':
...Arduino15/packages/arduino/hardware/avr/1.6.11/cores/arduino/CDC.cpp:104:29: error: 'MAGIC_KEY_POS' was not declared in this scope
uint16_t magic_key_pos = MAGIC_KEY_POS;
^
...Arduino15/packages/arduino/hardware/avr/1.6.11/cores/arduino/CDC.cpp:129:34: error: 'MAGIC_KEY' was not declared in this scope
*(uint16_t *)magic_key_pos = MAGIC_KEY;
^
Error compiling.
Last edited by ericfoster on Tue May 10, 2016 3:06 pm, edited 1 time in total.

User avatar
Franklin97355
 
Posts: 23902
Joined: Mon Apr 21, 2008 2:33 pm

Re: Flora issue when compiling

Post by Franklin97355 »

Make sure you have the latest versions of the Adafruit boards installed and if that does not help sometimes deleting the Arduino15 folder completely (while the IDE is closed.) helps. Restart the IDE after removing the folder and try again.

User avatar
ericfoster
 
Posts: 2
Joined: Tue May 10, 2016 2:22 pm

Re: Flora issue when compiling

Post by ericfoster »

Success after deleting Arduino15 and reimporting. Thank you.

Locked
Please be positive and constructive with your questions and comments.

Return to “Test Message Forum (closed)”