If you have access to the DAP, you can reset the device to factory default. The link I sent talks about an Invalid device ID error, which has posts that show how to do that.
I have been through this before.
I have tried to factory reset the device multiple times but it yields an error, I will show you what I mean:
In the image below, you can see clearly that I have successfully connected to the DAP:
After going to Scrips - > default -> MSP432_Factory_Reset, I receive an error of:
"
Trouble Writing Register DP_RESET:
(Error -1170 @ 0x2)
Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK).
(Emulation package 7.0.48.0)
No connection possible. This could be caused by the device having gone to low power mode and disabling JTAG PINs.
You have the option to either toggle reset or try to use SWD instead.
"
This is with JTAG clock at 500kHz, toggling the reset line multiple times does not do anything. Could it be that I have an incorrect JTAG setting? Or do you think its a driver conflict?
After messing around with restarting device/debugger, I get this error:
"
CS_DAP_0: Trouble Writing Register DP_RESET: (Error -1170 @ 0x2) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 7.0.48.0) No connection possible. This could be caused by the device having gone to low power mode and disabling JTAG PINs. You have the option to either toggle reset or try to use SWD instead.
MSP432_Factory_Reset() cannot be evaluated.
Target failed to write register DP_RESET
at DP_RESET=1 [msp432_factory_reset.gel:44]
at MSP432_Factory_Reset()CS_DAP_0: Error: (Error -261 @ 0x0) Invalid response was received from the XDS110. (Emulation package 7.0.48.0)
CS_DAP_0: Error: (Error -122 @ 0x0) A bad parameter value was detected within a function. It is likely a problem with `SC_ARGS' in SMG_call(). (Emulation package 7.0.48.0)
CS_DAP_0: Unable to determine target status after 20 attempts
CS_DAP_0: Failed to remove the debug state from the target before disconnecting. There may still be breakpoint op-codes embedded in program memory. It is recommended that you reset the emulator before you connect and reload your program before you continue debugging
MSP432_Factory_Reset() cannot be evaluated.
Could not write register DP_RESET: target is not connected
at DP_RESET=1 [msp432_factory_reset.gel:44]
at MSP432_Factory_Reset()MSP432_Factory_Reset() cannot be evaluated.
Could not write register DP_RESET: target is not connected
at DP_RESET=1 [msp432_factory_reset.gel:44]
at MSP432_Factory_Reset()
"
This leads me to belive this acutally could be a driver/CCS/XDS110 software conflict? I will attempt to update the debugger to the latest firmware and to re install CCSv7
EDIT: After trying to perform a boundary scan in 2-Wire advanced JTAG mode, I recieve an error of:
"
The value is '-233' (0xffffff17).
The title is 'SC_ERR_PATH_BROKEN'.
"
Which is odd since the 4 wire JTAG passes a boundary scan, and all of the pins are used in the process. Would anyone know why this occurs? Is it a hardware/layout issue?