cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F429ZI – HASH Peripheral Not Available in STM32CubeMX

kotteswaran
Associate

Hi ST Community,

I'm currently working on a project using the STM32F429ZI and trying to use the HASH peripheral for SHA1/SHA256 operations. However, I’m facing two issues:

  1. HASH peripheral not visible in STM32CubeMX:

    • I expected to find the HASH peripheral under "Cryptography" or similar in the Peripherals tab, but it doesn't appear as an option in the CubeMX interface.
    • I’ve verified that I’m using the latest STM32CubeMX v6.14.1 and firmware package for STM32F4 v1.28.2.

I believe HASH support is available for STM32F429ZI and if yes, is there any option to enable it using CubeMX and when I added it manually, facing below issue.

2 .Unknown error when using HASH_HandleTypeDef:

  • I manually included the following headers in my code

    #include "stm32f4xx_hal.h"
    #include "stm32f4xx_hal_hash.h"

    When I try to declare, HASH_HandleTypeDef hhashI get an 
    Error[Pe020]: identifier "HASH_HandleTypeDef" is undefined 
     during compilation. The error message is vague and doesn’t point to a specific issue. Also tried enabling  USE_HAL_HASH_REGISTER_CALLBACKS. 

I’ve already confirmed that the HAL drivers are included in the project. Has anyone encountered this issue before? Is there a workaround to enable HASH support manually if it’s not exposed in CubeMX?

Any help or guidance would be greatly appreciated!

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Souhaib MAZHOUD
ST Employee

Hello @kotteswaran 

As per RM0090, HASH peripheral is only available on STM32F415/417xx and STM32F43xxx devices.

There is no mention to STM32F429ZI.

KR,

Souhaib

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.

View solution in original post

1 REPLY 1
Souhaib MAZHOUD
ST Employee

Hello @kotteswaran 

As per RM0090, HASH peripheral is only available on STM32F415/417xx and STM32F43xxx devices.

There is no mention to STM32F429ZI.

KR,

Souhaib

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.