Skip to main content
kaka.zhuo
Associate
November 22, 2022
Solved

How to solve STM32CubeIDE compile error?

  • November 22, 2022
  • 5 replies
  • 8091 views

After re-install the OS(win10), and install the cube IDE to 1.10, I can't compile pass the project which work well before.

Could you kindly show me why and how to solve this questions?

Thanks!

d:\program files (x86)\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: cannot find crti.o: No such file or directory

d:\program files (x86)\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: cannot find crtbegin.o: No such file or directory

d:\program files (x86)\st\stm32cubeide_1.10.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: cannot find crt0.o: No such file or directory

collect2.exe: error: ld returned 1 exit status

STM32CubeIDE

Version: 1.10.0

Build: 12671_20220627_1643 (UTC)

0693W00000WJCqAQAX.png

This topic has been closed for replies.
Best answer by kaka.zhuo

Thanks for your help! I roll back the STM32CubeIDE to 1.9.0, the problem disappeared.

5 replies

Wijeden RHIMI
ST Employee
November 22, 2022

Hello kaka.zhuo,

It seems the include paths are not properly set up.

Please make sure to configure the include paths and check the path of the crti.o, crtbegin.o, crt0.o . Maybe that object files were not in the include folder list.

Wijeden,

kaka.zhuo
kaka.zhuoAuthorBest answer
Associate
November 23, 2022

Thanks for your help! I roll back the STM32CubeIDE to 1.9.0, the problem disappeared.

Wijeden RHIMI
ST Employee
November 23, 2022

Hi again  kaka.zhuo,

I'm so happy that your problem was resolved but I 'm stilling curious about the cause of this error, can you please inform me those 3 stuffs:

  1. Did you install cube ide 1.9 and where did you install this version on which directory exactly?
  2. which toolchain do you use: GCC toolchain or ST toolchain, and which version of the toolchain used?
  3. if you can also upload your project as a zip file?

Wijeden,

S.Ma
Principal
November 22, 2022

Could be o missing becausd source file was not compiled because not added a source file, or project in release instead of debug, so do a project clean and rebuild.

Eclipsd may have great modularity that intuitivity is lost.

Visitor II
October 7, 2023

I ran into the exactly same error. But the trigger of the problem was I copied a project and rename the IOC file. and after I rebuilt the new project, I got the same error: can not find crti.o, crtbegin.o and crt0.o. I checked the include path and no issue. Please give your input. Thanks.