Other Parts Discussed in Thread: LP-MSPM0L1306, UNIFLASH, MSPM0L1306
Tool/software:
Hello,
I have encountered a problem in the MSPM0L1105 on a custom board that didn't appear while using the evaluation board (LP-MSPM0L1306). Already affected 2 custom boards.
The problem is that I'm the debugging the firmware without any problems at all but, after stopping debugging and trying to program the board again, it's not programming, though the firmware programmed before is still working. The J-Link programmer returns the error "Error: Failed to initialized DAP".
Also tried connecting the MSPM0L1105 to the XDS110 Debug Probe that comes in the evaluation board using UniFlash to program or factory reset, but I get the error "[ERROR] CS_DAP_0: Error connecting to the target: DAP Connection Error. This could be caused by the device having gone to low power mode. Try forcing an external reset.If the error persists, try forcing BSL, a Mass erase or a Factory Reset. Check device FAQs for more information."
I followed this guide: /cfs-file/__key/communityserver-discussions-components-files/908/1220.Unlock-MSPM0-instructions.pdf but I'm stuck at method 1: step 5. This step lead me to method 2, which works correctly since i get the message "Send firmware successfully" and "Download complete" in green (like in the image shown in the PDF), but the MCU is in the same state as before, not programming and stuck at method 1: step 5 when trying to unlock it.
I'm not trying to write on the NVM or NONMAIN (I read that it may be the cause of the lock, though I'm not using it), it's just a simple firmware that read and write the IO and SPI pins to test that the components on the custom board are working correctly.
Note: I'm using vscode with cmake to build the firmware and J-Link via SWD to program/debug.
Thanks in advance.