Skip to main content
Aurelien1
Associate III
February 13, 2023
Question

How to properly configure STM32U585 to use DMA in secure mode (TZEN = 1) to send data from internal Flash (non secure zone) to Hash (in secure mode)?

  • February 13, 2023
  • 2 replies
  • 1383 views

Hi,

I want to know a properly way do to that.

If i use standard configuration I run hard fault as soon as DMA start (linklist mode) (HAL_HASHEx_SHA256_Start_DMA).

I put Fault Analyser details

0693W00000YAa7YQAT.pngSource/Destination secure bit are set before calling this function.

Can someone help me?

Thanks

Have a good day.

Aurélien

This topic has been closed for replies.

2 replies

Bubbles
ST Employee
March 6, 2023

Hi @Aurelien​,

the DMA channel has to be configured secure, then for the transfer itself the SSEC attribute must be zero and DSEC attribute set to 1.

BR,

J

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.
Aurelien1
Aurelien1Author
Associate III
March 20, 2023

HI, I don't see your return I will test it.