Giovanni wrote:This should mean that the front is detected after the call to extStart(), there is no interrupt pending at that point.
Giovanni
I dont understand what you mean ?
All i know is that if a pin is high when you call extStart and you have it set for both edges, you will get a callback, which to me is wrong, as there have never be any transisitions, the pin has only ever been high.
If a pin is configured to input and floating, and it is pulled high with an external resistor, thus before any code is running the pin is high. If you now go and call extStart and you have it set for both edges/Auto start, you will get a callback............ yet there has been no transisition
Giovanni wrote:I am out of ideas. Resetting the PR registers makes sure that transitions happened before that moment are discarded.
You may try to not autostart the channels.
Giovanni
I've tried that too as soon as extChannelEnable is called, callback is triggered, the only why i can stop this is to configure the transition as EXT_CH_MODE_FALLING_EDGE's, but then i cant detect both edges...
ive got a work around but its dirty, and dont really like doing it...... but putting a flag around the callbacks to mask them out, and then clear the mask on a Virtual timer.
i.e. Whist triggermask is FALSE ignore the callback.
I already verified the errata, nothing apparently. I still think you are getting some kind of glitch on those inputs, you should verify with a scope, also try a stronger pullup.
Giovanni wrote:I already verified the errata, nothing apparently. I still think you are getting some kind of glitch on those inputs, you should verify with a scope, also try a stronger pullup.
Giovanni
Same software on and same hardware input circuitry on an F103 works ok, so the only real difference is MCU, begin to this there is a silicon issue here.
If you have a discoveryF4 i would be interested to see what you get if you tie a pin to VCC, and set it up as EXTI, i think you'll see the same as me, i.e interrupt is triggered as soon as you setup the EXTI