2022-06-08 03:22 AM
We rely on QubeMX to generate our boilerplate and initialization code as much as possible. Currently we configure a Software interrupt programatically via
HAL_EXTI_SetConfigLine(...);
HAL_NVIC_SetPriority(...);
HAL_EXTI_RegisterCallback(...);
HAL_NVIC_EnableIRQ(...);
And later we invoke the code via
HAL_EXTI_GenerateSWI(...);
This is finde and it works. However I'm curious if this can be assisted by CubeMX? I see there are EXTI lines available in the NVIC section, but I can't enable them.
2022-06-08 03:35 AM
Hello @MGeri.1 ,
Yes, it is possible to configure the interrupts by CubeMX.
Take a look at this video, it might help you.
BeST Regards,
Walid
2022-06-08 05:46 AM
Hi @Walid ZRELLI
thank you for the video. Unfortunaltely this only covers External Interrupts triggered by GPIO. What I want to achieve is to configure a Software Interrupt, that does not need a GPIO pin.
2022-06-08 06:50 AM
Hello @MGeri.1 ,
Unfortunately, you have to configure the software interrupts manually. It is not supported by CubeMX.
BeST Regards,
Walid