I'm working with STM32 BluePill in a like PLC board, and I use 6 GPIOs as user Inputs.
4 are tact switches for menu navigation conected to PA6, PA7, PB10, PB11
2 are for Start and Stop commands in PA4 and PA5.
I use TMR2 INT every 1 ms to make various functions and one of them are debounce for switches.
I use PlatformIO with Arduino framework, with last 11 platform that uses stm32duino 1.9.0
In some parts of menu, I attach and detach EXT INT for just check or Menu switches and/or Start, or Stop
For menu switches is working well, but with Start and Stop it doesn't work detachInterrupt(pin).
I see in other theard that it has to use after calling this function:
Code: Select all
__DSB();
__ISB();
Any help? maybe it's an Arduino core bug or maybe I'm making something wrong.
I read microcontroller Reference Manual but didn't find anything special about this GPIO's
Thanks