cancel
Showing results for 
Search instead for 
Did you mean: 

SWO not available on STM32U5G9VJT6Q

Ricko
Senior II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

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.

View solution in original post

3 REPLIES 3
STTwo-32
ST Employee

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.

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

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.