Skip to main content
Senior
October 29, 2024
Solved

SWO not available on STM32U5G9VJT6Q

  • October 29, 2024
  • 3 replies
  • 909 views

Hi,

I configured the STM32U5G9VJT6Q but it looks like that, because I am using the SDMMC2 then the SWO pin is not available. Are there any practical workaround?

One obvious one is to disable SDMMC while using SWO. Any other ones?

Thank you

 

This topic has been closed for replies.
Best answer by STTwo-32

Hello @Ricko 

To be able to use the SWO, you need to set PB3 alternate function to JTDO/ TRACESWO. So, you can't set it to any other alternate function such as SDMMC2_D2. So, you can't use both alternate function on the same pin.

Best Regards.

STTwo-32 

3 replies

STTwo-32
STTwo-32Best answer
ST Technical Moderator
October 29, 2024

Hello @Ricko 

To be able to use the SWO, you need to set PB3 alternate function to JTDO/ TRACESWO. So, you can't set it to any other alternate function such as SDMMC2_D2. So, you can't use both alternate function on the same pin.

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
RickoAuthor
Senior
October 29, 2024

Thank you @STTwo-32 

can I configure the the whole software for SDMMC in CubeMX and then at runtime set the SWO to alternate function (SWO) without changing anything else on the SDMMC configuration (and obviously not using the SDMMC while using the SWO)?

Or do I need to also disable the entire SDMMC module and recompile?

Thank you

STTwo-32
ST Technical Moderator
October 29, 2024

I didn't tested this but i think it may work if you disable SDMMC, configure the pin to SWO, use it for trace, disable this mode, reconfigure the pin for SDMMC and enable your SDMMC to use it.

Best Regards.

STTwo-32 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.