cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to configure Software interrupts in QubeMX?

MGeri.1
Associate II

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.

3 REPLIES 3

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

MGeri.1
Associate II

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.

Hello @MGeri.1​ ,

Unfortunately, you have to configure the software interrupts manually. It is not supported by CubeMX.

BeST Regards,

Walid