2021-12-01 07:05 PM
Hi, I would like to use cubeide (MX tool) to generate a project that use EXTI_13 but with IRQ disabled by default. I can choose Enable/Disable (generate all code or none), Create code on MSPInit function or in MX_NVIC_Init, call HAL_GPIO_EXTI_IRQHandler(EOC_MAG_Pin); on EXTI15_10_IRQHandler or doesn't but I can't choose that some IRQ have to start disabled on the generated code.
Thank
Solved! Go to Solution.
2021-12-01 09:30 PM
You can disable in the CubeMX, but then it doesn't generate the interrupt handler. It still does initialize the pin as EXTI though.
If you don't like that, you can call HAL_NVIC_DisableIRQ in the user code section after it's enabled.
Those are your options if you want to use CubeMX to generate the code.
2021-12-01 09:30 PM
You can disable in the CubeMX, but then it doesn't generate the interrupt handler. It still does initialize the pin as EXTI though.
If you don't like that, you can call HAL_NVIC_DisableIRQ in the user code section after it's enabled.
Those are your options if you want to use CubeMX to generate the code.
2021-12-02 08:33 AM
Ok, I thought so. Thank for the confirmation.