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.
I've set the CN2 jumpers OFF and my actual question is in the pinouts of SWO (CN2). How I proceed on this is as follows:
- PIN 1 (of SWO) is VDD_Target
- PIN 2 is SWCLK
- PIN 3 is GND
- PIN 4 is SWDIO
- PIN 5 is NRST
- PIN 6 is SWO
To the best of my knowledge, I shouldn't use all these pins above. As in, I've connected
- PIN 2 to PIN 37 (or PA14) in MCU
- PIN 3 to GND
- PIN 4 to PIN 34 (or PA13)
- PIN 5 to PIN 7 or (RESET) in target MCU.
Not sure if I should connect SWO pin as it's set as "reserved" (Why?). 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).
Please refer to this table I've taken from the official datasheet:
Here's the general pinout configuration of the MCU here:
I've tested "almost" everything with oscilloscope and tester and everything seems okay. What else I'm missing here? Should I do anything with BOOT0 or BOOT1 pins?