codlink:
You need to move all related files to your new location… You can try to put the “hardware” folder under the Documents>arduino and see if the IDE will pick it up. I know it does for 3rd party libraries.
Hi and thank you for your kind answer.
I just tried in the way you described but unfortunately the Sparkfun Micros don’t show up.
Thanks to words in your answer I tried googling again and found something interesting in the README.md on the Sparkfun github repository:
To add this support to your Arduino IDE, simply copy this folder into your hardware directory in one of two places:
-
the actual Arduino directory
-
inside your Sketchbook directory
-
Please note: This will only work under Arduino IDE versions 1.0.1 - 1.0.5
For version 1.5.2, please see the [Arduino repository]( https://github.com/arduino/Arduino/wiki … cification ) for more information on adding these files.
Keep in mind that version 1.5.2 is still currently a beta IDE.
The information at that url tells that the folder structure should be completely different with the new IDE and each vendor should have its own folder like the following:
hardware/arduino/avr/… - Arduino - AVR Boards
hardware/arduino/sam/… - Arduino - SAM (32bit ARM) Boards
hardware/yyyyy/avr/… - Yyy - AVR
hardware/xxxxx/avr/… - Xxx - AVR
and
Each architecture must be configured through a set of configuration files:
• platform.txt contains definitions for the CPU architecture used (compiler, build process parameters, tools used for upload, etc.)
• boards.txt contains definitions for the boards (board name, parameters for building and uploading sketches, etc.)
• programmers.txt contains definitions for external programmers (typically used to burn bootloaders or sketches on a blank CPU/board)
So I went back to the original folder situation in /documents/arduino/hardware/ and then created a /SparkFun/ folder and an /avr/ folder below that. I then copied the boards.txt file in this new /sparkfun/avr/ folder.
Now I can see and select the SparkFun Arduino Pro Micro !
At this point I tried to compile the Blink sample . the compile step starts but stops with an error:
\arduino-nightly\hardware\arduino\avr\cores\arduino/Arduino.h:245:26: fatal error: pins_arduino.h: No such file or directory
#include “pins_arduino.h”
^
compilation terminated.
I solved this copying also the /variants/ folder to /sparkfun/avr/.
Now there are some other errors both in \arduino-nightly\hardware\arduino\avr\cores\arduino\USBCore.cpp and in \arduino-nightly\hardware\arduino\avr\cores\arduino\Platform.h
I think this is due to the fact that I don’t have the platform.txt and programmers.txt files for the SparkFun Pro Micro.
After reading the rest of the page about the hw architecture config and being a newbie , I would hope :
a) that SparkFun guys will publish the addon files also for newer IDE version
b) that someone else already found this issue and can share the platform.txt and programmers.txt files
I understand 1.5.x is in beta, but the fact that I can compile this freeIMU version only with recent IDE and not with 1.0.5 … probably places things in a different perspective…
In the meantime I tried to contact mjs513 (the author of freeIMU-updates) to understand his dev environment setup. Hope to get in touch soon.
@codlink: thank you again for your help and kind regards,
Mario