medium10 pts · first answer countsconcurrencyinterrupts
Counter shared with an ISR
On a 32-bit MCU, main does counter++ on a volatile uint32_t that a timer ISR also increments. Why can counts be lost?
Discussion 0
Join free to post in the discussion.
Related questions
- Why use volatileEmbedded Systems Engineer
- Keeping ISRs shortEmbedded Systems Engineer
- The interrupt vector tableEmbedded Systems Engineer
- Priority inversionEmbedded Systems Engineer
- Buffering UART dataEmbedded Systems Engineer
- One press, many eventsEmbedded Systems Engineer
- Waking a task from an ISREmbedded Systems Engineer
- Stuck in Default_HandlerEmbedded Systems Engineer