Skip to main content
KMak
Visitor II
July 5, 2024
Solved

How to use USB peripheral with TrustZone enabled on the STM32U545

  • July 5, 2024
  • 1 reply
  • 938 views

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?

Best answer by FBL

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 

FBL_1-1721834643326.jpeg

There might be an issue in configuring trust zone.

1 reply

FBLBest answer
Technical Moderator
July 24, 2024

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 

FBL_1-1721834643326.jpeg

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.Best regards,FBL