Skip to main content
EBlot.2
Associate
May 26, 2021
Question

I saw your "STM32CubeIDE Advanced Debug Features: Part 2" youtube video for SWD debugging, I tryed to create similar project but I got stuck in the compilation process

  • May 26, 2021
  • 2 replies
  • 1260 views

Hi, I just followed your instructions in my discovery disc1 board, first by generating code automatically from stm32cubeide v1.6.1, and then by appending additional debug code (define itm_port, _write function, etc), but in the compilation process the _write function in main.c is not reached by the compiler ('_write' defined but not used). So, I got stuck in the 1st pass. Could you help me?

This topic has been closed for replies.

2 replies

EBlot.2
EBlot.2Author
Associate
May 26, 2021

I could compile sucesfully by changing _write function order. Now I can debug trace but only show data in data console and so on by stepping the program. Any clue?

Markus GIRDLAND
ST Employee
May 27, 2021

What additional kind of information/data are you looking to see? Perhaps you need to activate additional debug features, depending on what you're looking for?

EBlot.2
EBlot.2Author
Associate
May 27, 2021

Hi Markus, may be I wasn´t very clear (:>). The problem is that in my debugging session the data is not traced when the program is running. For example output to the swv data console. Only works when I step the printf function. I actived all the features I need but is not working as I saw in the demo.

Markus GIRDLAND
ST Employee
May 28, 2021

Hello again!

I believe that perhaps you're mixing up some terminology. In the part 2 YouTube video Bruno is demonstrating Live Expressions. Any data you would get would come from the Live Expressions view. So if you've only made it to part 2 yet then there shouldn't be any data in the swv views since it has not been configured yet.

Part 3 demonstrates SWV and how to set that up.

Part 4 demonstrates ITM/printf.