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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 1:19 PM
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)
Solved! Go to Solution.
- Labels:
-
DEBUG
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 12:18 AM - edited ‎2023-11-20 6:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 2:10 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-06 3:51 PM
Thanks.
But oooops... I can't find this item. Where is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 12:18 AM - edited ‎2023-11-20 6:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 1:04 AM - edited ‎2023-11-20 6:15 AM
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.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 1:09 AM - edited ‎2023-11-20 6:15 AM
...The Tool Chain I have found also. And I don't know, does it need to be changed? :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 1:12 AM
Perhaps there is a setup guide (as pdf) - from STM ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 6:16 AM
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-07 7:40 AM
>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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-08 8:40 AM
Thank you colleagues!
I will study this.
