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/TMS570LC4357: Question about Flash ECC Selftest function

Part Number: TMS570LC4357

Tool/software: Code Composer Studio

hello

now i have a problem i can't resolve.... I try to use SL_SelfTest_Flash.

When i try to call above function only one time. The test result is returned as ST_PASS

but, if i continuously call above function, The test results are always returned as ST_FAIL after first call.

i used USB Jtag debugger and monitoring register value changes at Esm1, Epc, and FlashWrapper.

and i can't find any difference. Just i can only monitor there is no esm signalling.

could you explain why is this phenomenon is generated?

thanks

  • Please indicate the parameters/arguments used with the SL_SelfTest_Flash when you invoke it repeatedly.  The SL_SelfTest_Flash can only fail under following conditions. 

    1. There is uncorrectable errors on flash. Flash Register indicates uncorrectable error status

    2.There is ESM Bus error

    3. Flash Error address reports 0x0

    One way to narrow down the issue would be setup a break point at all source that has the following statement in the test to see what condition triggers the error.

    *flash_stResult = ST_FAIL;

    The example_safetyLib test case that we provide does have two subsequent calls to SL_selfTest_flash.

     /* Run 1Bit ECC test on Flash */
        retVal = SL_SelfTest_Flash(FLASH_ECC_TEST_MODE_1BIT, TRUE, &failInfoFlash);
        if(retVal == FALSE) while(1);
    
        /* Run 2Bit ECC test on Flash */
       retVal = SL_SelfTest_Flash(FLASH_ECC_TEST_MODE_2BIT, TRUE, &failInfoFlash);
       if(retVal == FALSE) while(1);

    I am also wondering if you have to reset/reinitialize Flash (using SL_init_ECCFlash)  before you re-run the test as it may be left in a unclean state(fault injected state) from the previous run.

     

    Regards,

    Rahul

  • sorry this is just my mistake

    i have found what i did mistake.

    i changed my MPU configuration code before

    therefore, i just recover original's one, then a problem has been resolved.

     

    thanks