cancel
Showing results for 
Search instead for 
Did you mean: 

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?

THunn.1
Associate II

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3

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
Associate II

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
Associate II

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.