2024-12-12 05:41 AM
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
2024-12-12 07:52 AM
Hello @lozzz and welcome to the community,
This is what the reference manual of the product says for SWI bits in EXTI_SWIER register:
2024-12-12 08:03 AM
Hello, SofLit
Sorry I'am not seen !!
In that case, how can distinguish the software interrupt from external input in the EXTI handler ?
Regards
2024-12-12 08:06 AM - edited 2024-12-12 08:07 AM
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.
2024-12-12 08:20 AM
The thing is on the EXTI_RPR the bit is set on software interrupt, like the external input.
2024-12-12 08:23 AM