|
From: Fewell, E. <ef...@ti...> - 2017-05-31 12:53:15
|
I'm currently finishing up creating flash loader code for the Texas Instruments MSP432p4 device. One feature we want to implement is a factory reset. Triggering the factory reset involves a sequence of register writes to the device, but then debug must be shut down, the device power-cycled, and then debug can re-connect to the target. Is that possible from within the context of flash code within the OpenOCD structure? To disconnect debug, tell the user to power-cycle the device, and then re-connect debug? At the moment, all I can do is tell the user they need to power-cycle the device and force OpenOCD to exit. Then the user must restart OpenOCD manually. If I leave OpenOCD running, that causes multiple errors because the target is no longer in a debuggable state. Edward Fewell Texas Instruments, Inc |