2024-10-29 03:19 PM - edited 2024-10-29 03:22 PM
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
Solved! Go to Solution.
2024-10-29 03:41 PM
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.
2024-10-29 03:41 PM
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.
2024-10-29 03:46 PM
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
2024-10-29 04:04 PM
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.