cancel
Showing results for 
Search instead for 
Did you mean: 

How do I resolve this issue - "arm-none-eabi-gcc: fatal error: cannot read spec file 'nano.specs': No such file or directory"?

PGump.1
Senior III

Hi all,

I hope someone can help me with this...

If I remove the --specs=nano.specs in the MCU Settings tab, I get errors about #include_next files not found.

If I install newlib I just errors about IO functions that I don't want...

Kind regards

PG

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.
2 REPLIES 2
MJabb.1
Associate

same issue please help ST

JWern.1
Associate

I realize this is months old, but I just stumbled on this. The problem was arm-none-eabi-newlib was not installed when using the --specs file. In versions 11+ there are some functions that need to be defined in order to not get the IO warnings (or errors depending on your flags). Examples of these definitions can be found in a generated STM32CubeIDE project in the syscalls.c.