Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File nano.specs missing when compiling for DUE/atmelsam on BeagleBone Black / RPi #219

Closed
eliasse opened this issue May 27, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@eliasse
Copy link

eliasse commented May 27, 2015

Hello,

First, thank you for an incredible tool!

I am trying to compile code for an Arduino DUE on a BeagleBone Black. The code compiles fine using PlatformIO on my Linux Mint machine.


arm-none-eabi-g++ -o .pioenvs/autogen_due/firmware.elf -Os -Wl,--gc-sections,--relax -mthumb -mcpu=cortex-m3 --specs=nano.specs -Wl,--entry=Reset_Handler -Wl,--start-group -T /home/debian/.platformio/packages/ldscripts/sam3x8e.ld .pioenvs/autogen_due/src/TCM_CLASS.o .pioenvs/autogen_due/src/tmp_ino_to.o -L/home/debian/.platformio/packages/framework-arduinosam/variants/arduino_due_x -L.pioenvs/autogen_due -Wl,--start-group -lc -lgcc -lm .pioenvs/autogen_due/libFrameworkArduinoVariant.a .pioenvs/autogen_due/libFrameworkArduino.a -lsam_sam3x8e_gcc_rel -Wl,--end-group
arm-none-eabi-g++: error: nano.specs: No such file or directory
scons: *** [.pioenvs/autogen_due/firmware.elf] Error 1


I get the exact same kind of error if i try to compile it on a Raspberry Pi (Arm v6).
Naively, I tried copying the nano.specs files from the ~/.platformio/packages/toolchain-gccarmnoneeabi/arm-none-eabi/lib directory on my Mint machine to the corresponding folder on the BeagleBone. This clears the "no-such-file" error but gives a linker error instead.

Very grateful for any help on this matter!

Best Regards

@eliasse eliasse changed the title File nano.specs missing when compiling for DUE/atmelsam on BeagleBone Black File nano.specs missing when compiling for DUE/atmelsam on BeagleBone Black / RPi May 27, 2015
@ivankravets ivankravets added this to the 2.0.3 milestone May 27, 2015
@ivankravets
Copy link
Member

@eliasse please install development version of PlatformIO and update existing packages via platformio platforms update.

Did it help you?

@eliasse
Copy link
Author

eliasse commented May 29, 2015

Yes, it works!

Thanks for your help.
I still have a linker problem but I might create a separate issue for that if I can't figure it out myself.

@ivankravets
Copy link
Member

If your linker problem isn't linked with the current issue and "nano.specs", please create separate issue.

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants