cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L082 (CMWX1ZZABZ-078) hardfaults while running HAL's CRYP_ProcessData()

ulissestpBR
Associate III

I've been trying to cypher a plain text using HAL_CRYP_AESECB_Encrypt(), but everytime I call this function, it gets stuck in a while loop inside CRYP_ProcessData().

Here's a screenshot of the exact code snippet where everything get's ruined:

0693W00000Sw8aZQAR.pngThe fact is that AES_SR_CCF bit is clear forever. The AES peripheral seems never to complete the task.

After some time inside the loop, a hardfault is generated.

Can anyone help me to figure out what could be going on?

Thank you!

1 REPLY 1

Not clear how the loop would lead to a Hard Fault, some where else.

Hard Fault's where exactly? And with what registers?

Have a Handler that outputs actionable data.

Does the unit for sure have the L082 ?

Is the clock on the CRYP enabled ?

Are all registers ZERO ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..