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.

TMS320F28032: Flash_Erase function will jump to flash area

Part Number: TMS320F28032
Other Parts Discussed in Thread: C2000WARE

Hi,

my customer is calling Flash_Erase() function in RAM (to be clear, Flash_Erase() function itself is in ROM, but the text calling Flash_Erase() is in RAM), by clicking "step into", we can observe that it will finally go to 0x3F702A, which resides in flash. Is it normal? What may cause such behavior?

Can we provide the original code of Flash_Erase()?

  • Hi Howard Zhou,

    Is there an issue the customer is experiencing when running their code without single stepping?

    I'd suggest looking at the flash_api example within c2000ware and comparing how the API functions are copied (from ROM or Flash, the example has build configs for both) and run from RAM. The original flash_api is used in the example.

    C:\ti\c2000\C2000Ware_2_00_00_02\libraries\flash_api\f2803x\example_ccsv5

    Should include MemCopy function in main():

        // We must also copy required user interface functions to RAM. 
        Example_MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

    Best,

    Kevin