Restarting Sessions
Swappable Partitions Multi-core devicesRestarting Debug Sessions
You may need to re-start a debugging session without re-programming the target chip. You can do this by using Debug Info objects. The Debug Info object contains information on how the chip was programmed for debug.
To obtain a Debug Info object, you need to program your device for debug and then retrieve the Debug Info object from the Debug Session object:
NSDSP.create(serial)
Session = NSDSP.startProgSession(mcu, readOnly = false)
Session.checkId(adjustRate = true)
debugSession = Session.programForDebug(hexMap, tcy)
debugInfo = debugSession.getInfo
// Debugging here
NSDSP.endSession
NSDSP.free
When you need to start a new debug session with the same chip, you can skip programming and use the Debug Info object instead:
NSDSP.create(serial)
debugSession = NSDSP.startDebugSession(debugInfo)
// Debugging here
NSDSP.endSession
NSDSP.free
You can re-use the Debug Info as many times as you need, however, if you re-program the chip, you must free all the old Debug Info object and obtain a new one.
© 2007-2025 Northern Software Inc. All Rights Reserved.