cancel
Showing results for 
Search instead for 
Did you mean: 

How to debug a makefile project in CubeIDE

Pavel A.
Evangelist III

When I try to open debug configurations for a makefile based project, CubeIDE throws an error popup - Java null something.

So I cannot create new debug config for the project.

Workaround: created a small dummy project for the same target, created a debug config for it,

then added the binary from the makefile project to load.

Edited it, selected not to build, only load with symbols. And the "donor" project binary - not anything.

This way I've managed to debug it.

By the way, cannot make ITM_send_char working in CubeIDE. In Atollic it (mostly) works.

Indeed there's some bug...

/* After a long affair with Atollic I'm forced to use CubeIDE because customer wants it.

Unfortunately it still feels very beta vs. the Atollic */

5 REPLIES 5
KnarfB
Principal III

Hi Pavel,

> cannot make ITM_send_char working

ITM_SendChar

What MCU? Even if you set the correct core + SWD clock in the debug tab? Works here.

KnarfB

STM32H743 at 400 MHz

Hmm. I don't have a H7 board. F4 F7 L4 G4 do work, if one follows AN4989 "STM32 microcontroller debug toolbox", strange.

Update on the ITM prints:

I'm doing the following for the test:

ITM_SendChar('\n');
  ITM_SendChar('a');
  ITM_SendChar('\n');

Of course enabled the ITM output at the main() breakpoint.

After running thru these 3 lines nothing appears in the ITM data console.

Then I close "Port 0" tab, click on configure, enable Port 0 again and close configure dialog.

Then Port 0 tab opens again and... my character "a" is right there. So it has been received, it's the IDE not wanting to show it for unknown reason.

Weird!

-- pa