Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to trace the data in SWV using STM32F303RE Nucleo board?

Status
Not open for further replies.

PRABAKARDEVA

Full Member level 2
Joined
Sep 16, 2013
Messages
127
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Chennai
Activity points
2,168
Actually, I could able to debug the STM32F303RE Nucleo board and could see the value of the variables by keeping the breakpoint while debugging.

Instead of keeping the breakpoint, I want to trace the value of the variable using SWV and also I want to print the logs which need to be displayed in the SWO console.

But I am blocking somewhere else after tried the below steps

I am using the Atollic TRUE Studio and Configured the Debug options for the project. Used the ST-Link-V2 Incircuit Programmer/debugger for debugging

I set the Core Clock as 72MHz(which I referred from STM32Cube IDE for STM32F303RE Nucleo) and SWO clock as 2000 KHz.

I used the ITM related functions(ITM_SendChar) to print the log or single character in the SWO console and enabled the port "0" in the SWO settings.

But nothing displayed in the SWO console.

I don't know what I need to do exactly. Do I need to use the SWD port which present in the Nucleo board to print the log in SWO console.

Kindly help on this.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top