This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi guys,
I got really silly with my launchpad. I couldn't connect to my 2 MSP432 launchpads anymore. I tried the reset of the firmware with the xdsdfu tool that worked fine and also the test connection always succeeded. Than I want to run the factory reset with the file. The half of the time I couldn't connect to the dsap but when I plug off and plug in again its able to connect. But when I want to use the factory reset I got this message:
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 6.0.83.1)
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()
Does anybody know how to fix this?
Hi Christoph,
According to the Debugging JTAG Connectivity Problems wiki page, this error is caused by the inability of the JTAG debugger to access the DAP or one of its ARM subcores. This is usually caused by either a hardware failure on the board or invalid code on the subcore that causes it to reset itself continuously. If this error is originated in software, it can potentially be recovered by accessing the DAP directly and trying to either reset the offending core, lock it or erase its flash memory via a GEL script (some microcontrollers have pre-loaded routines to allow that).
For detailed factory reset instructions, take a look at Section 8 in the Code Composer Studio 6.1 for MSP432 User's Guide. I've summarized these steps below. Are these the steps you've been following?
Another approach may be to perform the factory reset using an external debugger (e.g. XDS200), related to this thread.
MSP432 LaunchPad: Debugging fails with 'Unable to connect to the target' error - MSP low-power microcontroller...
Hope this helps!
Regards,
James
MSP Customer Applications
Hi Christoph,
Christoph Marko said:I got really silly with my launchpad. I couldn't connect to my 2 MSP432 launchpads anymore.
Could you provide more details about any changes that you made before you encountered this issue? Did you perform any updates in CCS?
In the meantime, can you take a look at this thread to see if it helps resolve your issue?
CORTEX_M4_0: Error connecting to the target: (Error -1063 @ 0x0) Device ID is not recognized or is not...
Regards,
James
MSP Customer Applications
Hi Christoph,
Yes it is possible. You will have to use the Flash Mailbox, please take a look at section 3 of this document Configuring Security and Bootloader (BSL) on MSP432P4xx (Rev. A)
Did you try the running the Factory Reset using the SWD interface (2-pin Serial Wire Debug)??
Regards,
David
hi david,
i tried to follow the instruction but I got the following error
Error connecting to the target:
(Error -615 @ 0x0)
The target failed to see a correctly formatted SWD header. The
connection to the target may be unreliable. Try lowering the
TCLK setting before trying again.
(Emulation package 6.0.83.1)
hi david,
I read the document but I don't know I should update the code, when the board isn't found by the CCS.
I tested various methods (see posts above) but It wasn't possible to access to the board.
Do you have some hints?
Hi Christop,
Could you please send me the code that you used to break/brick your Launchpad's??
Thanks,
David
hi david,
i use the MSPWare Version 3.30.0.18.
I tried it again to get a connection to the board and now I got this error :
CS_DAP_0: Trouble Writing Register DP_RESET: (Error -261 @ 0x0) Invalid response was received from the XDS110. (Emulation package 6.0.83.1)
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()
Hi Christoph,
For your board that's encountering "Error connecting to the target: Error -613", can you try the following steps? Using a project that intentionally bricked the MSP432 (thanks DavidL), I encountered this error but was able to successfully complete the Factory Reset.
Please let me know if you have any questions about these instructions and if they help reset your boards.
Regards,
James
MSP Customer Applications
hi james,
thank you for your advice.
I tried it like you suggested, but it didn't work.
I got this message:
CS_DAP_0: Error connecting to the target: (Error -613 @ 0x0) The target indicates that it is busy. Either try the SWD request again, or abort the transaction. (Emulation package 6.0.83.1)
When I executed the test connection or tried to update the firmware it was successful.
But I couldn't run the factory reset ...
Hi Christoph,
Thanks for trying my recommendations and providing feedback.
Since our factory reset process doesn't seem to be working for you so far, we'd like to know more about your setup and what may have caused the boards to become unresponsive (code, power, etc.). Could you please provide more background information?
If we can figure out what may have caused the issue, it will help point us in the right direction and hopefully towards a solution for you.
Regards,
James
MSP Customer Applications
Hi James,
It is very hard to read, but under the microscope I can tell it is labeled as MSP432P401R Rev C. I have one of the XMSP432's here to compare it to. Is there a bug in the error messages? Is this board just fried? Did the chip recyclers put a relabeled XMSP432 on the board? What is the story? Here is my photo.
Thanks,
Hi David,
Thanks for the reply on this. Reading the wiki above indicates that I need to purchase new launchpad boards for the black ones I am running. The red one I have that says it is a Rev C device is still puzzling me. Everything I read says the boards that are working should not, and the one that the one that is not working should. :-) I am using Code Composer Studio Version: 7.1.0.00016.
Here is the console output when connected to the March 2017 red launchpad pictured above (that I bricked without the wait states).
CORTEX_M4_0: * WARNING *: The connected device is not MSP432P401R
CORTEX_M4_0: GEL Output: Memory Map Initialization Complete
CORTEX_M4_0: GEL Output: Halting Watchdog Timer
CORTEX_M4_0: Flash Programmer: Reading device TLV failed.
CORTEX_M4_0: Your XMS432P401R material is no longer supported. We recommend you moving to production-quality MSP432P401R/M silicon by ordering samples at www.ti.com/product/MSP432P401R.
CORTEX_M4_0: Flash Programmer: Device not recognized
CORTEX_M4_0: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.
CORTEX_M4_0: File Loader: Verification failed: Values at address 0x00001938 do not match Please verify target memory and memory map.
CORTEX_M4_0: GEL: File: /home/frohro/workspace_v7/ADC14_BareMetal/Debug/ADC14_BareMetal.out: a data verification error occurred, file load failed.
Thanks,
Rob
**Attention** This is a public forum