Skip to main content
Pavel A.
Feb 15, 2021 6:38 PM UTC
Question

How to debug a makefile project in CubeIDE

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 */

This topic has been closed for replies.

5 replies

KnarfB
Super User
Feb 15, 2021 8:11 PM UTC

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

Pavel A.
Pavel A.Author
Feb 15, 2021 8:40 PM UTC

STM32H743 at 400 MHz

KnarfB
Super User
Feb 15, 2021 9:02 PM UTC

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

Andrew Neil
Super User
Feb 16, 2021 12:15 PM UTC
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.