Hi @Chenxu1,
Glad to hear the second issue has been resolved.
For future cases, please create a separate thread for each issue to help maintain clarity and traceability.
Regarding the first issue, it is likely caused by an incorrect period configured for Gpt_StartTimer. This could be the reason why Switch_TimeOut() is never called. Please verify the timer configuration to ensure it aligns with the expected timeout behavior.
Refer to the attached screenshots.
Regards,
Daniel
Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law. NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.