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
Flora issue when compiling
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Flora issue when compiling
Try using 1.6.5 or 1.6.7 the error looks like it is coming from the compiler and not your program.
- ericfoster
- Posts: 2
- Joined: Tue May 10, 2016 2:22 pm
Re: Flora issue when compiling
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.
...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.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Flora issue when compiling
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.
- ericfoster
- Posts: 2
- Joined: Tue May 10, 2016 2:22 pm
Re: Flora issue when compiling
Success after deleting Arduino15 and reimporting. Thank you.
Please be positive and constructive with your questions and comments.