This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why is a received CAN message processed in a while loop and not during the interrupt?

I'm new to microcontroller programming, and I'm learning using the Tiva Launchpad.  The examples I'm looking at 'simple_rx.c' sets a receive flag during the CAN interrupt, then process the message during a while loop.  Why not process the message during the interrupt?  Is this bad practice?