V
V
Vitaliy2017-08-09 10:53:58
Electronics
Vitaliy, 2017-08-09 10:53:58

Stm32 because of which an external interrupt may not be reset?

I am writing a rather large project. mk stm32f103c8. almost all peripherals are used. at some step, I began to notice that an external interrupt on the front (you need to fix both) works for no reason (the oscilloscope will not let you lie). fixed this case with a crutch (I store the previous value of the leg and if nothing has changed, then I skip working off). but now it has come to the point that when the interrupt is called constantly while the leg is at 3.3. MK spends almost all the time working out this false interrupt. it is logical to say that the rest of the code is to blame, but I can’t imagine how it can do it. maybe someone faced such a problem and found "the reason for the innocence of the bobbin and the guilt of the person in the cockpit)"?
PS disabling optimization does not solve the problem.
UPD! it turned out that the interrupt could not be reset.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sakhno, 2017-08-09
@Punk_Joker

Is the interrupt flag in the handler cleared?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question