2024-07-04 07:03 PM
I am using USB peripheral on the STM32U5 with TrustZone enabled. I met a problem.
In Non-Secure area, USB_DRD_FS->CNTR, USB_DRD_FS->CHEP0R can be set correctly.
In Secure area, I can set "USB_DRD_FS->CNTR = 0x9D00;".
But I can not set the "USB_DRD_FS->CHEP0R = 0x8280;". The register value remains at 0.
How can I use the USB peripheral in Secure area?
Solved! Go to Solution.
2024-07-24 08:29 AM
Hi @KMak
Could you share a minimum project to reproduce? It's strange to see such an issue!
You should be able to access secure mode without issues using LTDCUSBSEC in GTZC1_TZSC_SECCFGR2
There might be an issue in configuring trust zone.
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-07-24 08:29 AM
Hi @KMak
Could you share a minimum project to reproduce? It's strange to see such an issue!
You should be able to access secure mode without issues using LTDCUSBSEC in GTZC1_TZSC_SECCFGR2
There might be an issue in configuring trust zone.
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.