Question
MX_MCE2_Init crashes when no context is selected
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.