Interrupt priority/premption.

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Interrupt priority/premption.

Post by Giovanni »

If you trigger the ADC with a GPT then you can stop and restart the triggering, the ADC would wait.

It would not suspend the current conversion however, you may have to check the ADRDY bit.

Giovanni
rew
Posts: 383
Joined: Sat Jul 19, 2014 12:59 pm
Has thanked: 2 times
Been thanked: 14 times

Re: Interrupt priority/premption.

Post by rew »

OK. Disabling the NVIC works. WIth the proper NVIC_DisableIRQ (9); call. When it didn't work, I must have done something stupid like run old code without the disable in there, or having "#if 0" around the active code.... :-(

The "trigger from GPT" is on my todo list. Starting that now. :-)

This will reduce the number of ADC interrupts enormously. But now with the high number of those interrupts I can check for "no corruption". Debugging this when there is a problem once every 10000 transactions is way more difficult. On the other hand, I have the impression that my system can handle the higher number of interrupts just fine. Maybe I'll keep it like this.
Post Reply