Tool/software:
Hello,
Setup:
MSPFET USB programmer, in JTAG mode
MSP430FR5969, 4MHz xtal
Ubuntu 22.04.5 LTS
CSSSTUDIO version: 20.1.0.6__1.7.0
The TimerB uses outputs a PWM signal that controls the voltage output of a regulator. Its continuous function is critical, and a pause in the PWM can result in max voltage to be supplied to the output.
The debug clock settings specifically DONT stop TimerB clock. And don't stop interrupts from occuring.
Reproduce:
1) Upon a fresh start of css, The first start of the debugger runs the program, and pauses on main().
2) Hit continue, then TimerB is initialized, and starts to run.
3) If we hit pause, or hit a breakpoint, TimerB stops running.
Expected Behaviour: for step 3). TimerB should continue running.
To workaround this issue:
1) Debugger runs the program, and pauses on main().
2) we change the debug clock settings, and change the value of any peripheral we don't use, and toggle the state of the clock to be stopped or not. E.g. RTC clock is stopped, to RTC clock is not stopped.
3) Issue a Restart to enact the change in debug clock settings.
4) Now this session will allow the timerB clock to run as initially specified in the debug clock settings. This works until we stop the program.
I tried many things, changing TimerB clock types, looking to see if the CS__Clock_System bits are different, Timer config is different, Sys System Module registers are different, but can't seem to find any difference.
Seems the debug clock settings are not sent correctly to programmer possibly, unless they are changed.