Hello,
When I ran your project from the debug session even if I use free run I could reproduce the behavior you mentioned. However, once I stopped/exited the debug session completely and restart the board the behavior was gone and the program was running as expected. I couldn’t reproduce the behavior while running your project without an open debug session. The behavior you are facing is due to the debug session of code warrior, not the MCU, so there are not available errata for this since the problem is not from the MCU. I’m still investigating how the debug session is messing with the time of the peripheral TPM.
Hope it helps!
Victor.
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------