STM32F429ZI – HASH Peripheral Not Available in STM32CubeMX
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:
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 hhash; I get an
Error[Pe020]: identifier "HASH_HandleTypeDef" is undefinedduring 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.
