MSPM0-SDK: MSPM0G3519: File Loader Exited with Flash Error While Loading .out File

Part Number: MSPM0-SDK
Other Parts Discussed in Thread: MSPM0G3519

Hello TI Team,

I am using the MSPM0G3519 LaunchPad with Code Composer Studio.

While downloading my application, CCS reports the following error:

File Loader: Memory write failed:
Flash loader exited with flash error.

GEL:
File:
C:\Users\Abhishek.Kumar\Downloads\Test_Packet_Transfer_mobileApp\
Test_Packet_Transfer_mobileApp\Debug\
Test_Packet_Transfer_mobileApp.out

Load failed.

The debugger successfully connects to the target, but programming the flash fails.

Board:
MSPM0G3519 LaunchPad

Debugger:
On-board XDS110

IDE:
Code Composer Studio (please specify version)

SDK:
(please specify version)

I have already tried:
- Clean and Rebuild
- Restart CCS
- Power cycle LaunchPad
- Different USB cable
- Different USB port
- Erase Flash

The issue still persists.

Could you please advise what could cause the flash loader to fail?

Thank you.

  • Hi Abhishek,

    Can you try a factory reset of the device?

    1. start projectless debug session from the .ccxml in the targetConfigs folder (right click the file)
    2. select the CORTEX_M0P from the Threads section of the debug view (Left click the core to highlight)
    3. Run the MSPM0_Mailbox_FactoryReset_Auto command from the scripts tab

    Additionally, are you modifying NONMAIN memory in your application?

    • If so, you will need to change the project settings because the default is for only main memory to be erased:
      • Go to Properties->Debug->Category: MSPM0 Flash Settings-> Erase Configuration

    Best Regards,
    Brian

**Attention** This is a public forum