Skip to main content
PGump.1
Senior II
February 15, 2022
Question

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

  • February 15, 2022
  • 2 replies
  • 5314 views

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

    This topic has been closed for replies.

    2 replies

    MJabb.1
    Visitor II
    June 3, 2022

    same issue please help ST

    JWern.1
    Associate
    November 4, 2022

    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.