cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the board support setting on an existing project? (CubeIDE fails to build STM32Cube_FW_G4_V1.1.0 examples)

carl3
Associate II

I have been trying to figure out why I cannot open and build the STM32Cube_FW_G4_V1.1.0/Projects for the B-G474E-DPOW1 discovery board in STM32CubeIDE. (There are missing BSP driver includes and API source when generating code.) I think the problem is that the board=custom in the .ioc file, since if I create a new project and select my board, then the setting is board=B-G474E-DPOW1.

The main.c for ADC_GainCompensation has "BSP_LED_Init(LED4)". The main.h has #include "b_g474e_dpow1.h" How does CubeMX figure out where the LED4 and b_g474e_dpow1.h definitions are found? The build fails initially when b_g474e_dpow1.h is missing.

Is there a way to specify or change the board for a project? If not, what is the correct way to create a new project and copy the source files from the STM examples?

Is anyone able to open the standard en.stm32cubeg4.zip STM32Cube_FW_G4_V1.1.0 and successfully generate code, e.g. with STM32Cube_FW_G4_V1.1.0/Projects/B-G474E-DPOW1/Examples/ADC/ADC_GainCompensation?

0 REPLIES 0