AnsweredAssumed Answered

Return from Interrupt routine

Question asked by Pierre Lebas on Jun 17, 2016
Latest reply on Jun 20, 2016 by Radek Sestak


I'm using a MC9S12XF512 microcontroller for a FlexRay application.

When I receive a FlexRay frame, I have an interrupt routine which store in variable the payload of the frame. I would like to use this variable in my main() program but it is like nothing have been doing. I think it is due to a restoration of the context when I go out from the Interrupt routine but there is nothing in my code which can do something like that. So I have two questions :

1. Is it the microcontroller which does by itself the storage and the restoration of the context ?

2. Is it possible to bypass this procedure to allow me to reuse my variable in the main() after the modification in the interrupt routine ?


Thank you.