Skip to main content
THunn.1
Associate II
July 5, 2021
Solved

I was trying to debug USART2 code on a Nucleo-G0B1RE development board. Unfortunately the ST-LINK was on the same pins. I assumed that I couldn't use the STM32CubeIDE debug while the pins were in USART2 mode ... but I tried it and it worked. How?

This is not a priority question. I'm just curious as to how USART2 and debugging can operate at the same time but I'm happy that it does.

This topic has been closed for replies.
waclawek.jan
waclawek.janBest answer
Super User
July 5, 2021

I guess you are talking about USART2 on PA2/PA3 while the debug pins (SWCLK/SWDIO) are on PA13/PA14.

Review the Nucleo's User Manual and schematics.

JW

3 replies

waclawek.jan
waclawek.janBest answer
Super User
July 5, 2021

I guess you are talking about USART2 on PA2/PA3 while the debug pins (SWCLK/SWDIO) are on PA13/PA14.

Review the Nucleo's User Manual and schematics.

JW

THunn.1
THunn.1Author
Associate II
July 6, 2021

Thank you for clearing that up for me. Sorry, I had it in my mind that it was ST-LINK that carried debugging information.

THunn.1
THunn.1Author
Associate II
July 8, 2021

I suppose that means the USB cable is carrying more than one channel of data ... the usart from usart2/stlink and the debug data from SWCLK/SWDIO. I suppose that shouldn't really surprise me because after all a USB cable can carry multiple channels from a USB hub.