2020-02-15 01:49 AM
I want to bink a led on NUCLEO-G474RE, I used CubeMX and CudeIDE.
Since I don' t want to use IAR or Keil, so I select CubeIDE toolchain in CudeMX.
The code generated and has been opened as project in CubeDE, and the two lines has been added in main():
HAL_GPIO_TogglePin (GPIOB, GPIO_PIN_11);
HAL_Delay (100);
While, when I start to build, this info prompted:
Building in: E:\Blink_G474RE\build\default
make -f ..\..\Makefile
Error: build command 'make' not foundError:
What's wrong with it ?
Should I set the gcc environment variable manually?
I have heard gcc is the default build tool for CubeIDE, is there something I misunderstand ?
2020-02-15 04:40 AM
STMCubeIDE comes with all tools needed to build a STM32 project.
Check Project > Properties > C/C++ Build. It should look like:
and Project > Properties > C/C++ Build > Environment contains the path to all tools neded:
The paths are, among others:
C:\ST\STM32CubeIDE_1.1.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.7-2018-q2-update.win32_1.0.0.201904181610\tools\bin;
C:\ST\STM32CubeIDE_1.1.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.make.win32_1.1.0.201910081157\tools\bin;
Your settings may vary depending on your version and install options, but they should point to the existing tools installed by STMCubeIDE.
hth
KnarfB
2020-02-15 07:22 AM
Try Internal builder.
If your computer is managed by IT at work, ask them to stop tampering with your applications.
-- pa
2020-02-16 08:24 PM
My fold is empty.
2020-02-16 10:31 PM
This doesn't look like a STM32 Project at all. Try again creating a new STM32 Project in a new folder from scratch. Follow "How to use STM32CubeIDE" video https://www.youtube.com/watch?v=imXauCiwEfs as close as possible.
2020-02-16 11:05 PM
Do not create c/c++ project try to create a new stm32 project. As far as i know if you are using STMCUBE IDE you don't need Cube mx separately.
make a new project from the ide. Most things are configured automatically.
2020-02-17 05:15 PM
I used CubeMX first, then I imported the MX project into IDE, I wanted to build a project in the imported project from MX.
2020-02-17 09:14 PM
If you used New->STM32 Project From STM32CubeMX .ioc File, all must work fine. Recently I converted one old fat project from CubeMX + Workbench. But tryouts with old IDE versions had problems. I have 1.21 version now.
2020-02-17 09:25 PM
Check that in you have set Toolchain/IDE to "STM32CubeIDE" in STM32CubeMX Project Manager before generating code.
2020-02-18 06:20 PM
This option, I have selected.