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)

1 ACCEPTED SOLUTION

Accepted Solutions
11 REPLIES 11
Pavel A.
Evangelist III

Just select the needed toolchain version in the CubeIDE project properties.

When CubeIDE runs build, it automatically adds the toolchain and make to the PATH.

There is no need to tinker with PATH manually.

DM-SH
Associate II

Thanks.

But oooops... I can't find this item. Where is it?


_legacyfs_online_stmicro_images_0693W00000bjX9JQAU.png

DM-SH
Associate II

Thanks! It is realy will be useful for me, but at the next step.

I am at this point, with very simlpe test of STM32CubeIDE: only "Hell-O World" as oldschool C. Before MCU, before Discovery.....
_legacyfs_online_stmicro_images_0693W00000bjXBKQA2.png

DM-SH
Associate II

...The Tool Chain I have found also. And I don't know, does it need to be changed? :
_legacyfs_online_stmicro_images_0693W00000bjXBjQAM.png

DM-SH
Associate II

Perhaps there is a setup guide (as pdf) - from STM ?

There's no "Tool Chain Editor" in CubeIDE. If you don't have CubeIDE, you have some other toolchain, right? Then you know where you installed it.

If you have common Eclipse CDT with Embedded C/C++ add-on, here is the documentation: https://eclipse-embed-cdt.github.io/

AScha.3
Chief III

>does it need to be changed?

no.

 The Getting started with STM32 step-by-step guide

look here:

https://wiki.st.com/stm32mcu/wiki/Category:Getting_started_with_STM32_:_STM32_step_by_step

https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:Step2_Blink_LED

If you feel a post has answered your question, please click "Accept as Solution".
DM-SH
Associate II

Thank you colleagues!

I will study this.