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.

CCS/MSP432E401Y: Flash loader error: Mass erase failed

Part Number: MSP432E401Y

Tool/software: Code Composer Studio

I am building two very similar SYS/BIOS apps with one difference:

App1:
int main() {
    int e = 27;
    System_printf("hello world %d\n", e);
    ….

App2:
int e = 27;
int main() {
    System_printf("hello world %d\n", e);
    ….

I can reload App1 as many times as I want without any errors, but for App2 I receive one of the errors below every other time I try to load App2:

CORTEX_M4_0: File Loader: Memory write failed: Flash Programmer: Mass erase failed
CORTEX_M4_0: GEL: File: C:\<path>\Debug\hello_MSP_EXP432E401Y_tirtos_ccs.out: Load failed.

or

CORTEX_M4_0: File Loader: Memory write failed: Flash loader programming timeout.
CORTEX_M4_0: GEL: File: C:\<path>\Debug\hello_MSP_EXP432E401Y_tirtos_ccs.out: Load failed.

Memory maps are similar except for one extra variable in .data for App1. The size of .data goes from 0x578 to 0x57c. What's the cause of the error? How can I debug further?

Thanks,
Sasha

  • Sasha,

    Could you send the base project or is it built upon an example code? 

    This way I could try to reproduce this here. 

    Regards,

    Rafael

  • Rafael,
    I have attached the project, but you'll need Simplelink SDK for MSP432E to be able to build it.

    Thanks,
    Sasha

    proj.zip

  • Sasha,

    Well, I don't have the same version of the SDK, but are you able to re-create this with the latest public version 3.30.00.22? To me it works fine, but I am pretty sure the variables are simply vanished (unless specified as volatile or used somewhere else). I don't see any changes in the .data memory section with either program - they all sit at 0x578. I tested both TI ARM compiler versions 18.12.3 and 19.6.0. 

    I also compared the .syscfg, .cfg and other files of your project with mine - they are all the same. 

    With this, I wonder if there is a specific setting on the newer SDK (the build options between the two projects are the same) or something different in the CCS itself or the XDS110 drivers in handling the code verification - I am using CCSv9.2.0.00013 with TI Emulators package 8.3.0.00003.

    Otherwise, you could perhaps send the two .out files so I could try to reproduce this here. 

    Regards,

    Rafael

  • 0410.hello.zip

    Rafael,
    I can't replicate the problem anymore. I was working on some other issue, loading and reloading different apps, and now when I came back to recreate the apps for you, both versions are reloading just fine. I am attaching the apps anyway in case you still want to try them. One is using 0x57c for .data section and another one 0x578.

    I have noticed that right now I am using only about half of 16GB memory on my PC, while yesterday it was much closer to 13 or 14GB. That might be completely unrelated, but I'll try these apps again when my memory usage gets high again.

    You can close this thread, and I'll just open a new one if the problem reappears.