cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with software interrupt on STM32H563

lozzz
Associate II

Hello the comminity.

I try to use a software interrupt with no secure and no privilege.
when I set a bit in EXTI_SWIER1 And re-read the register, the value stay to 0.

When the interrupt was fired, It's impossible to distinguish the software interrupt  from external input.

On the F4 series the EXTI_SWIER1 contained the bit who call the interrupt.

Is it another methode to do that ?

Regards

5 REPLIES 5
SofLit
ST Employee

Hello @lozzz and welcome to the community,

This is what the reference manual of the product says for SWI bits in EXTI_SWIER register:

SofLit_0-1734017949304.png

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello, SofLit

Sorry I'am not seen !!

In that case, how can distinguish the software interrupt from external input in the EXTI handler ?
Regards

Maybe try to read EXTI_RPR and EXTI_FPR registers and check if one of the bits for a given EXTI line is set. If none of them are not set it came from software.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

The thing is on the EXTI_RPR the bit is set on software interrupt, like the external input.


oups missing