Skip to main content
LBode.1
Associate
March 16, 2020
Question

Is there any documentation on how to compile and flash the STM32CubeG0 MCU Firmware Package examples in STM32CubeIDE?

  • March 16, 2020
  • 2 replies
  • 2622 views

I haven't figured out how to get it to import an example in STM32CubeIDE and compile it. I tried to recreate the project based on one generated with STM32CubeMX, but had no luck.

I eventually tried SW4STM32 and at least got it to compile there, but then when it tries to flash it via openocd it errors out there, but that's a different issue.

This topic has been closed for replies.

2 replies

KnarfB
Super User
March 17, 2020

> I haven't figured out how to get it to import an example in STM32CubeIDE

File > Open Projects from file System...

will automatically convert.

> when it tries to flash it via openocd

Try to create a new debug configuration and use that.

LBode.1
LBode.1Author
Associate
March 17, 2020

MacOSX Mojave

STM32CubeIDE 1.3.0

Empty new workspace.

File -> Open projects from filesystem...

Directory...

STM32Cube_FW_G0_V1.3.0/Projects/NUCLEO-G071RB/Examples/DAC/DAC_SignalsGeneration

It has two items in the table:

DAC_SignalsGeneration Eclipse Project

DAC_SignalsGeneration/SW4STM32/DAC_SignalsGeneration Convert 'System Workbench for STM32' project to STM32CubeIDE project

Both are checked. Click Finish.

Click Debug.

The selection cannot be launched, and there are no recent launches.

Double-click on something in the project explorer. Click on Debug again. Something momentarily pops up and disappears. Nothing seemed to have happened.

In the Project dropdown most things are greyed out, so I don't know where to create a new debug configuration.

Under the run menu, there's a Debug Configurations... item. Clicking on that gives a dialog. In the left there's STM32 Cortex-M C/C++ Application. Double-clicking that gives DAC_SignalsGeneration. Should I do anything else in this dialog?

Then if I close it and hit Debug again I get a dialog that pops up and says 'Launching DAC_SignalsGeneration has encountered a problem'. Clicking on details says:

An internal error occurred during: "Launching DAC_SignalsGeneration".

java.lang.NullPointerException

What am I doing wrong? Is there instructions on how to use STM32CubeIDE somewhere? A getting started guide perhaps?

KnarfB
Super User
March 17, 2020