Skip to main content
SWink
Associate II
May 5, 2020
Question

compilation STMCubeIDE nosys.spec

  • May 5, 2020
  • 4 replies
  • 1576 views

Upon building with STM32CubeIDE I just get

> collect2: error: ld returned 1 exit status

> make: *** [makefile:44: help.elf] Error 1

Calling arm-none-eabi-gcc directly gets me

> arm-none-eabi-gcc: error: nosys.specs: No such file or directory

Any suggestions?

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
May 5, 2020

Not using CubeIDE, show the command line being feed into the linker

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
SWink
SWinkAuthor
Associate II
May 5, 2020
arm-none-eabi-gcc -o "help.elf" @"objects.list" -l/home/benton/STM32CubeIDE/workspace_1.1.0/ARNE_CRC_SPI/STM32CubeExpansion_Crypto_V3.1.0/AccHw_Crypto/STM32L4/Middlewares/ST/STM32_Crypto_AccHw/Lib/STM32AccHwCryptoV3.1.0_L4_KEIL_slsm1elfspf.lib -mcpu=cortex-m4 -T"/home/benton/STM32CubeIDE/workspace_1.1.0/help/STM32L4A6ZGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="help.map" -Wl,--gc-sections -static -L/home/benton/STM32CubeIDE/workspace_1.1.0/ARNE_CRC_SPI/STM32CubeExpansion_Crypto_V3.1.0/AccHw_Crypto/STM32L4/Middlewares/ST/STM32_Crypto_AccHw/Lib --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group

That is fed into the compiler. Is that enough? If not, where can I see the parameters that are fed into the linker?

waclawek.jan
Super User
May 5, 2020

In the first case, are there any other output lines before the error line?

In the second case, is this gcc from a package intended for the Cortex-M?

JW

SWink
SWinkAuthor
Associate II
June 9, 2020

Thank you, that was helpful for debugging. It was not. After getting the masked error I followed https://community.st.com/s/question/0D50X0000AAGtwq/how-to-include-crypto-library-in-system-workbench-project which helped me.