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.

MSPM0L1304: MSPM0L1304 Program Nomain issue

Part Number: MSPM0L1304
Other Parts Discussed in Thread: MSPM0L1306

I encountered an issue during the Program Nonmain process .
I'm able to successfully Erase Nonmain, but after executing the write commands as specified in the Reference Manual, I read the STATCMD register to check the current status of the IC,
and it returns 0x0000_0000. I would like to know how to resolve this situation.

  • Hello Monica,

    Maybe I think you can try to use the demo code in our SDK to program NONMIAN, and in the demo, you can add code to check the STATCMD value, using one variable to read it out directly, not read the register window in debug mode.

    MSPM0-SDK Software development kit (SDK) | TI.com

    mspm0_sdk\examples\nortos\LP_MSPM0L1306\driverlib\flashctl_nonmain_memory_write

    BR,

    Janz Bai

  • Hi Janz,

    I need to complete the programming of the non-main area on the L1304, so I have built a minimal system for this IC and am using SWD communication. Currently, I can program the flash area without any issues. However, I am encountering a problem with the non-main area. The erase operation works fine, but the program operation fails. In your CCS project, there is a function called `flashctl_nonmain_memory_write`. I implemented the same logic in our system, but the issue persists. After issuing a series of commands (including CMDTYPE, CMDWEPROTNM, CMDADDR, CMDBYTEN, CMDDATA, CMDEXEC, etc.), I read the STATCMD register to check the current status of the IC. The STATCMD register still reads `0x0000_0000`. Does anyone have a solution to this problem? (For reference, when programming the flash area, the STATCMD register typically reads `0x03` or `0x04`)

    Many thanks,
    Monica Pan