GCC Error : nano.specs


#1

I installed GCC on Ubuntu 14.04 but I have an error when I try to compilate :

arm-none-eabi-gcc: error: nano.specs: No such file or directory
make: *** [build/ODriveFirmware.elf] Error 1

Anyone have an idea fix this problem ?

Thanks


#2

I followed steps found here to install an other GCC toolchain .
Now the compilation is working and I have the “OdriveFirmware.elf”.

But now I have a jtag error :

Runtime Error: /usr/share/openocd/scripts/target/stm32f4x.cfg:32: invalid command name "jtag_ntrst_delay"
in procedure 'script’
at file “embedded:startup.tcl”, line 58
at file “/usr/share/openocd/scripts/target/stm32f4x.cfg”, line 32
make: *** [flash] Error 1

So I can’t flash the bord

Maybe this problem is caused by the GCC version installed…


#3

Great that you were able to fix your first problem!
I think your second problem may be related: 14.04 is quite old, and the packages in the ubuntu package manager for 14.04 are all old versions.
Can you check what version of openocd you have? Run openocd --version.
For reference, this is what I get: GNU ARM Eclipse 64-bits Open On-Chip Debugger 0.10.0-00114-g8419536 (2017-04-18-21:56)

I think v9 or above should be okay. You can try to get the Ubuntu package manger to download and install this version for you? Or you can install the latest release from here.


#4

I installed OpenOCD V0.10 and now All is working !

Thanks !