Question
STM32H563ZI - IT based HASH HMAC calculation leads to ErrorCallback
HW: NUCLEO-H563ZI
Hello, can someone explain the following behavior to me? Is this a bug or am I using the HAL incorrectly?
Thanks a lot.
Code snippet
The result
The result is correct, but the behavior is strange. I receive two error callbacks also.
- First IRQ
- Second IRQ
- HAL_HASH_InCpltCallback
- Third IRQ
- Fourth IRQ
- HAL_HASH_DgstCpltCallback
- HAL_HASH_ErrorCallback
- HAL_HASH_ErrorCallback
My analysis
First HAL_HASH_ErrorCallback due to:
- state = READY
- calling WriteData_IT
READY state leads to ErrorCallback
Second HAL_HASH_ErrorCallback due to:
- With __HAL_HASH_ENABLE_IT starts the process described above (four IRQ’s)
- Then, calling WriteData_IT and the READY state leads to ErrorCallback again
