

So I can recommend you to connect SWO as well, can be useful later. The Printf via SWO Viewer displays the printf data sent from the target through SWO. I have created a new project and used default setup for the nucleo board. The additional SWO pin is used for debug purposes, you can access printed data with the printf function through this pin with ST-Link Utility. Especially the part where the ST-Link is connected to the controller on the board.īy ST Microelectronics, SWCLK, SWDIO, NRST and SWO (and GND of course) are connected to the target MCU.
Debugging a nucleo board manual#
The second thing I would recommend you is to open the STM32F411 Nucleo board's reference manual and look at the schematics. What else I'm missing here? Should I do anything with BOOT0 or BOOT1 pins?įirst of all, you are right, if your board has already got a supply voltage source you do not have to connect ST-Link's VDD pin. I've tested "almost" everything with oscilloscope and tester and everything seems okay. Here's the general pinout configuration of the MCU here: In the schematic, it is clear that TSWO line is connected to the pin PA10 (31) on the STM32F103 chip. Under the tab CAD Resources of the page for the Nucleo-F103 board on ST’s site, the schematic is nucleo64pinssch.zip. Please refer to this table I've taken from the official datasheet: The original boards from ST always come with a schematic. I have used them on breakout boards for various other chis including other brands. I would not say there is a 100 expectation of success, but it is well above zero. Also I'm giving 3.3 V to VIN pin of MCU, means that I don't need to connect VDD (PIN 1 of stlink). yes you can use the debug end of a nucleo board for other boards even for other chip vendors. Not sure if I should connect SWO pin as it's set as "reserved" (Why?). PIN 5 to PIN 7 or (RESET) in target MCU. STM32 microcontroller debug toolbox Introduction STM32 end-users are sometimes confronted with non- or partially-functional systems during product development.


To the best of my knowledge, I shouldn't use all these pins above. I've set the CN2 jumpers OFF and my actual question is in the pinouts of SWO (CN2). I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes.
