EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: imk on March 12, 2021, 07:13:33 pm

Title: STM32Cube32 SWV Data/Time Line Trace Not Working
Post by: imk on March 12, 2021, 07:13:33 pm
Hello,
I am trying to get the SWV Data and Time Line trace working during and debug session and it just wont show the variable name or value, any idea please.
The program is a simply blinking LED where i read a port value LEDPinState = HAL_GPIO_ReadPin( GPIOC , GPIO_PIN_13 );
Test the state of LEDPinState  and set the opposite state, followed by a delay(100).
The program runs fine in the micro and during debug the value of  LEDPinState  can be seen toggling in Line Expressions View.
But no way can i seem to configure the system to display LEDPinState  in SWV Data and Time Line trace's.
I must have watched half a dozen how to videos and tried just about chk box, variable, clk speed etc , but ZERO results.
I am using a STLINKV3 in GDB server mode, SWD interface
Many thanks in advance imk
Title: Re: STM32Cube32 SWV Data/Time Line Trace Not Working
Post by: DavidAlfa on March 14, 2021, 09:53:14 pm
This might  help:
https://www.eevblog.com/forum/microcontrollers/stm-cube-ide-tracing-is-not-supported/ (https://www.eevblog.com/forum/microcontrollers/stm-cube-ide-tracing-is-not-supported/)