Skip to main content
MQi.1
Senior II
February 15, 2020
Question

Should I set gcc in CubdIDE ?

  • February 15, 2020
  • 14 replies
  • 3201 views

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 ?

This topic has been closed for replies.

14 replies

MQi.1
MQi.1Author
Senior II
February 19, 2020

How to download the code from PC to board, should I use CubeProg ?

KnarfB
Super User
February 19, 2020

Many options.

STM32CubeIDE can do it, follow

  1. Video "How to use STM32CubeIDE" and STM32 youtube channel
  2. Read the docs, especially

STM32CubeProg can do it: use the STM32CubeIDE generated .elf file

A Nucleo board also appears as "USB Stick" on you PC. You may drag STM32CubeIDE generated .bin file for programming (flashing), not debugging.

MQi.1
MQi.1Author
Senior II
February 19, 2020

When I clicked this button,

0690X00000DBsJpQAL.png

this error prompted.

0690X00000DBsJuQAL.png

How to fix it?

MQi.1
MQi.1Author
Senior II
February 20, 2020

What's the difference between cproject file and project file ?