Part Number: AM263P4-Q1
Other Parts Discussed in Thread: AM263P4
Hello,
my experience with microcontrollers so far is that if I start a new debug session everything is reset and registers have their default value, so basically like a POR.
With TI, or specifically this controller (?) and CCS20.4, it is different and I did not manage to achieve what I want and expect, yet.
The default way does some kind of reset, but does not reset the peripheral registers like EPWM what will result in half broken PWM signals and unexpected behaviour. Also, it is potentially dangerous in the context of power electronics, because the PWM signals will just continue, while the controller is halted and reprogrammed.
Setting "Apply NRESET/SRST Pin On Debug Header" to "Pulse this pin on debug probe startup" in the advanced settings of the target config does indeed issue a HW reset resulting in clean register, but the startup will get stuck at "GEL Expression: OnTargetConnect()". I can cancel the popup in CCS and it will continue with the log entry "Cortex_R5_0: GEL: Error while executing OnTargetConnect(): Evaluation cancelled", but this is annoying and I don't know if the cancelation causes other issues. Also, this reset pin option is not available with XDS110, only with XDS200.
What do I have to do that when I click “Start Debugging”, the controller is reset completely and a new debug session is started, no extra steps involved?
Best regards,
Frank