cancel
Showing results for 
Search instead for 
Did you mean: 

Where to find the gcc in STM32 directory? How (and in what place) is it correct to specify the path to gcc files? I changed the PATH for make and gcc separately

DM-SH
Associate II

22:39:03 **** Incremental Build of configuration Debug for project c1 ****

make all

Building file: ../src/c1.c

Invoking: Cross GCC Compiler

gcc -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/c1.d" -MT"src/c1.o" -o "src/c1.o" "../src/c1.c"

c:/st/stm32cubeide_1.12.1/stm32cubeide/plugins/com.st.stm32cube.ide.mcu.externaltools.make.win32_2.0.200.202301161003/tools/bin/sh: gcc: not found

make: *** [src/subdir.mk:20: src/c1.o] Error 127

"make all" terminated with exit code 2. Build might be incomplete.

22:39:04 Build Failed. 1 errors, 0 warnings. (took 789ms)

11 REPLIES 11

**Fault found, no reply required**

Hi there,

My project has ended up in the same state. As can be seen in the attached screenshot;

* it is stm32cubeide

* it does have the toolchain editor

* it cannot find gcc.exe.

ScottH_0-1710134888180.png

Any advice before I start reinstalling everything from ST?

...For anyone that gets into the same state: somehow or other, the project had been imported to stm32cubeide as a standard eclipse project. Importing it as an stm32cube project brought back full functionality.