Using SWD and SWV with STM32 uControllers – Printf and Logic Analyzer into Debbug Mode

In this post I will talk about SWV. How to set up SWV function and how to use printf and logic analyzer.

This week a friend send me a video[1] where a guy uses printf directly inside uVision debugger without VPC or UART. This is called SWV(serial wire viwer),  a real-time trace technology that uses SWD(serial wire debug) port and the SWO(serial wire output) pin. Serial Wire Viewer provides advanced system analysis and real-time tracing without the need to halt the processor to extract certain types of debug information. You can read more in [2][3]. Besides the printf, what caught my attention was the logic analyzer built in the SWV debugger[4].

pic0_
Figure 1. Logic Analyzer View

Continue Lendo “Using SWD and SWV with STM32 uControllers – Printf and Logic Analyzer into Debbug Mode”

STM32 Workbench

This article will show some of the software that you should use to work with the ST’s Microcotrollers.

First of all, STM32CUBEMX is an initialization code generator used to reduce development efforts and time. It has a nice and straightforward interface that allows users to configure and select the microcontroller’s properties. You can select the clock speed of the peripherals, USB, ADC properties. Select the function that each pin will have, just with some clicks.

pic_0.png

 

Continue Lendo “STM32 Workbench”