Other Parts Discussed in Thread: SEGGER
Tool/software:
When performing some initial IWDT testing with the MSPM03519 Launchpad development kit, we noticed that if the watchdog expires on device, we're unable to reprogram/debug the MCU via SWD. To verify this wasn't specific to our code we implemented the iwdt_periodic_reset_LP_MSPM0G319_nortos_ticlang project. There was no issue compiling and/or debugging the test project as it, however when we commented out line 69: DL_IWDT_restart(IWDT_INST); the SWD disconnected from the MCU and we were no longer able to debug.
Using Segger Jflash 8.62 we could attach the debugger, erase the main memory, and we were able to recompile, re-download, and debug without the IWDT enabled. I believe this maybe a similar issue to what is has been confirmed with the L2228 device. We would like to confirm if this is an issue with the MSPM03519 and if there is a recommended workaround, as we’re currently just disabling the IWDT during development. Additionally, if there is a way for the firmware to detect if the SWD connector is attached via MCU registers (or other technique) it would be helpful to allow us to disable the watchdog during debugging only.