Error using External Mode after flashing with STM32CubeIDE

Hey, I just started using STM32CubeIDE.

I flashed the a model (edit: can’t attach models) to my Nucleo-G474RE through STM32CubeIDE.

When want to connect to the External Mode, the Code Options give me this error.

Communication error for system ‘nap-test’: Unable to obtain symbol handle: Unable to read data. Unsupported DWARF version = 5.

I tried this to set the dwarf version, but it didn’t work.

I can build the model directly in PLECS but I need this step with CubeIDE for another model.

Has anyone else this error and can help me solving this?

Thank you in advance.
Lukas

Hi Lukas, Can you share your STM32CubeIDE version and toolchain version (Properties of CubeIDE project → MCU Toolchain)?

Hey Bryan,
my STM32CubeIDE version is: 1.16.1 (Build: 22882_20240916_0822 (UTC))

and the toolchain version is GNU Tools for STM32 (12.3.rel1)

Thank you for your help.

Hey Bryan,
do you have an update on that manner?

I really would appreciate to use the PLECS External Mode but flash the STM directly from CubeIDE.

Thank you.

Hi Lukas,

Thank you for your inquiry!

It appears that the default DWARF version has changed in recent versions of the STM32CubeIDE. To use External Mode we need to compile with DWARF version 4. This can be set explicitly by adding a flag to the build settings. Please let me know if making the following changes to the build settings of your project solves the issue:

Thank you for contacting us regarding this bug. We will include this fix in the next STM32 TSP release!

1 Like