Skip to main content
Pavel A.
February 15, 2021
Question

How to debug a makefile project in CubeIDE

  • February 15, 2021
  • 2 replies
  • 1854 views

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.

2 replies

KnarfB
Super User
February 15, 2021

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
February 15, 2021

STM32H743 at 400 MHz

KnarfB
Super User
February 15, 2021

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
February 16, 2021
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.