cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F401 HardFault when run the AES encryption

gillbike
Associate II
Posted on July 20, 2015 at 09:48

I would like to use the driver of AES encryption, 

but every time the  CRYP->CR run, it will go to hardfault.

I have no idea the reason.

Thanks!
3 REPLIES 3
tm3341
Associate II
Posted on July 20, 2015 at 10:03

Have you checked if F401 has this peripheral?

You probably didn't, so I will tell you. It does not have it.

Only F415, F417, F437 and F439 have it.

gillbike
Associate II
Posted on July 20, 2015 at 10:21

Thanks,

 I did not expect  the peripheral lib have it but actually it not.

Posted on July 20, 2015 at 18:51

The standard parts don't have the CRYP/HASH peripheral due to export controls. There are specific part# which have them.

ST has a crypto library that supports software and hardware implementations. You have to meet specific requirements to order it.

http://www.st.com/web/en/catalog/tools/PF259409

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