Hello Riccardo
To workaround the problem, you may use compiler pragma to disable the optimization locally for this ISR.
To dig into the problem, we need to know the CodeWarrior version you're using.
For Classic CodeWarrior, please:
1)Start the IDE and click on Help | About Freescale(Metrowerks) CodeWarrior.
2)Click on Installed Products
3)Provide us all info displayed. Or you can save them in a txt file.
For Eclipse CodeWarrior, please:
1)Start the IDE and click on Help | About CodeWarrior Development Studio.
2)Provide us the info displayed.
And an example project will be greatly appreciated.
Best Regards
Fiona Kuang
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------