2026-05-12 7:34 AM
When enabling MCE2 for the STM32N6 with the following settings:
the generated MX_MCE2_Init crashes here:
ContextAESConfig.KeySize and ContextAESConfig.Cipher_Mode are not initialized to any value. After adding:
ContextAESConfig.KeySize = MCE_AES_256;
ContextAESConfig.Cipher_Mode = MCE_CONTEXT_BLOCK_CIPHER;
the function crashes to:
HAL_MCE_EnableAESContext cannot be called with MCE_NO_CONTEXT.
2026-05-13 12:27 AM
Hello @Tuomas95
It would be useful if you could provide your IOC.
THX
Ghofrane
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.