Skip to main content
gillbike
Associate II
July 20, 2015
Question

STM32F401 HardFault when run the AES encryption

  • July 20, 2015
  • 3 replies
  • 983 views
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!
    This topic has been closed for replies.

    3 replies

    tm3341
    Associate III
    July 20, 2015
    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
    gillbikeAuthor
    Associate II
    July 20, 2015
    Posted on July 20, 2015 at 10:21

    Thanks,

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

    Tesla DeLorean
    Guru
    July 20, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..