cancel
Showing results for 
Search instead for 
Did you mean: 

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)?

Aurelien1
Associate III

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

2 REPLIES 2
Bubbles
ST Employee

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
Associate III

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