Skip to main content
MGeri.1
Associate II
June 8, 2022
Question

Is it possible to configure Software interrupts in QubeMX?

  • June 8, 2022
  • 3 replies
  • 1487 views

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.

This topic has been closed for replies.

3 replies

Walid ZRELLI
Visitor II
June 8, 2022

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
MGeri.1Author
Associate II
June 8, 2022

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.

Walid ZRELLI
Visitor II
June 8, 2022

Hello @MGeri.1​ ,

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

BeST Regards,

Walid