STM32CubeIde: plotting data using SWV.
ฝัง
- เผยแพร่เมื่อ 12 มิ.ย. 2024
- A short description how to plot variables using SWV Data timeline graph .
The board I am using (NUCLEO-L476RG):
www.st.com/en/evaluation-tool...
Configuring SWV for printf function:
• This makes your life s...
Please check the website to get more detailed insights about programming STM32 microcontrollers:
www.steppeschool.com/courses/...
0:00 General description
0:59 Opening SWV Data Trace Timeline graph and configuring it
1:36 Resuming the code and plotting data in real time
2:00 Using the Timer Update Interrupt to sample data at higher rate
3:03 Final demonstration
Nice work!
Thanks!
The terminology Data Trace Comparator 0-3 is kind of strange.. what is comparing? And what are the 32 ITM Stimulus ports for?
I thought Trace Streaming requires dedicated 1-4 TPIU Trace pins.. but here it looks like those signals are routed to the single SWV/SWO pin? For example, isn't SWV also used for ITM_SendChar()?
To be honest, I do not know how SWV works at a hardware level. I know it is responsible for ITM_SendCHar and plotting data(Data trace comparator).
when i press the config trace nothing happenned is there any suggesstions
Hi Alihan,
Did you enable SWV within debug configurations?
@@steppeschool3629 thanks, it is working
Trace become disable while debugging , what to do?
Hi, I do not get your question fully. What is the problem?
I debug the code and open window panel and click on swv viewer and ticket the Bo bit ,then click on ok , then click on trace button and click on resume run code but " trace button gets disabled" and program shut down unexpectedly what to do