When configuring GPIO's as external interrupts, CubeMX is generating code to enable interrupts immediately. This can be annoying if the interrupt fires before the software is fully initialized.
Using an operating system such as free-rtos, it is common to send a message from the interrupt to a thread, but if the handle to the thread is not yet created - a hard-fault is usually seen. Testing a flag in the interrupt routine activated when the system is initialized can be used, but the best solution would be to let the user code take care of the NVIC enable instead of Cube-MX. Is there a way I can achive this?
Brg
Mads-l
