cancel
Showing results for 
Search instead for 
Did you mean: 

How to use USB peripheral with TrustZone enabled on the STM32U545

KMak
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions
FBL
ST Employee

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.

View solution in original post

1 REPLY 1
FBL
ST Employee

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.