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.

MSP-GANG: Error 23 - Device lockout after writing to NONMAIN

Part Number: MSP-GANG
Other Parts Discussed in Thread: MSPM0G1507

Tool/software:

Hello,

While preparing for production with the MSPM0G1507 we discovered that when programming with the MSP-GANG programmer, devices would get permanently locked after a single programming. The loaded firmware would run as intended, but any further attempts to reprogram with the MSP-GANG would result in an Error 23, and a DSSM factory reset could not be performed with a debug probe to wipe the MCU and reprogram. Loading the same firmware using an XDS110 debug probe does not lockout the device and runs as intended, which seems to indicate an issue with the configuration of the MSP-GANG.

While the firmware does modify non-main memory to disable BSL, it is not configured to disable debug access. We've confirmed that the values listed in the NonMain Memory Options window match those in the code file and that writing to non-main is enabled. In addition, the output text in the MSP-GANG software does confirm a successful write to non-main when initially programming the device. We have also tried setting the memory erase/program/verify address range to All Memory, Main Memory, and Used by Code File with the same results each time.

After doing some research it seems that the lockout is most likely due to the CRC in non-main not matching what is expected. Since the device programs fine using other programmers, is it possible that a configuration setting in the MSP-GANG software is corrupting non-main when programming the device for the first time?

**Attention** This is a public forum