I have the same problem like @URaic in a MxCube4.27 generated project for a STM32L46VET6.At the beginning of main() FLASH.SR.OPTVERR is already high :(.
Using MXCube 5.0.1 is it possible to configure the _Error_Handler prototypes from MxCube? i.e. using customized Templates?The 2 parameters were essential to print out the source module and line that caused the trap... or we have to use the workaround...