cancel
Showing results for 
Search instead for 
Did you mean: 

SWD - Trace: No synchronization

Omar Suárez
Senior
Posted on March 30, 2017 at 09:17

Hi,

I am trying to use the SWD to debug some code and use the Logic Analyzer.

The board I am using is the STM32F769I-DISC1 so the SWO is available for ST-Link.

I have configured the Debug (SYS) in the STM23CubeMX but after some tests the Logic Analyzer doesn't work. I followed this guide:

http://www.keil.com/support/man/docs/jlink/jLink_STM32F10xxx_SWT.htm

 

but the Logic Analyzer still doesn't work. I also checked the Clock Core but nothing happens.

In the Trace bar (Keil) the message is 'Trace: No synchonization'.

Making a review of the code generated by STM32CubeMX I can see that the pins SWDIO and SWCLK seem to be not initialized inside main.c file (unlike all the other pins used in this board) but they are defined in the main.h.

How can I initialize the functionality of SWD in those pins inside main.c file?

Thanks in advanced,

Omar

#trace #stm32f7 #keil #logic-analyzer
0 REPLIES 0