cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve STM32CubeIDE compile error?

kaka.zhuo
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

5 REPLIES 5
Wijeden RHIMI
ST Employee

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,

S.Ma
Principal

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.

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

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,

YW4
Associate

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.