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.

MSP430: File Loader: Data verification failed at address 0x00001080 Please verify target memory and memory map.

Other Parts Discussed in Thread: MSP430FE4252

Hi, 

I am using CCS ver. 5.2.1.00018 and I have been trying to modify the watthour meter demo (slaa203c) using the MSP430FE4252.

I had no problems programming the chip but now I get this error:

MSP430: File Loader: Data verification failed at address 0x00001080 Please verify target memory and memory map.
MSP430: GEL: File: C:\Users\MogajaneK\workspace_v5_2\slaa23c\Release\slaa23c.out: a data verification error occurred, file load failed.

I have tried using this code to try and erase that specified address using this code:

volatile int *CSM=(volatile int *)0x00001080;
volatile int *PWL=(volatile int *)0x003F7FF8;
volatile int tmp;
int I;
main()
{for(I=0;I<8;I++) tmp=*PWL++;
asm("EALLOW");
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
*CSM++=0xFFFF;
asm("EDIS");
}

which compiles and runs on the chip but as for my project code; I get that error.

Now I do not know what I was trying to do but isnt there a way to disassemble/debug code without writing to the chip? Maybe it can help me to see what is "written" to the ram

Thanks in advanced.

  • I did some commenting out of the code and it seems like the error pops up when I do anything with the ESP. I used the same "emeter.c" file and when ever I use "init_esp(unsigned char flashvars)" or "start_measurement(void)" in my "main()" I cannot program the chip. Could it be that the ESP is dead?

    Any ideas what might be wrong?

  • I found that the problem is with "s_parameters" struct.

    1. void init_esp(unsigned char flashvars)
    2. {
    3.        volatile unsigned int timeout;
    4.        // /\ Prevent variable from being "optimized".

    5.        // copy predevined init values to RAM

    6.        if (flashvars) s_parameters = s_parameters_flash;

    If I just use "s_parameters_flash" in place of  "s_parameters", it works fine but when I use line 6 or "s_parameters" anywhere in the code, The program will not load.

    where:

    struct ts_parameters s_parameters;

    const struct ts_parameters s_parameters_flash =
    {
    defVRatio,
    defIRatio,
    defEnergyRatio,
    defSET_PHASECORR1,
    defSET_PHASECORR2,
    defSET_GAINCORR1,
    defSET_GAINCORR2,
    defSET_V1OFFSET,
    defSET_I1OFFSET,
    defSET_I2OFFSET,
    defSET_ADAPTI1,
    defSET_ADAPTI2,
    defSET_STARTCURR_INT,
    defSET_STARTCURR_FRAC,
    {defSET_INTRPTLEVL_LO,
    defSET_INTRPTLEVL_HI},
    defTempGain,
    defTempOffset,
    0, // P1Offset
    0, // P2Offset
    #ifdef ESP_V2
    0 // CORRCOMP CMRR
    #endif
    };

**Attention** This is a public forum