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.

flash erasing

Other Parts Discussed in Thread: TMS570LS3137

Hi I am looking to erase a internal flash of TMS570LS3137 from application . I have seen the bootloader code and tried to erase the flash by taking F021_api to RAM . My sys_link_cmd  file looks like this.

MEMORY
{
VECTORS (X) : origin=0x00000000 length=0x00000020
FLASH_API (RX) : origin=0x00000020 length=0x000014E0
FLASHBOOT (RX) : origin=0x00001500 length=0x0007EB00
STACKS (RW) : origin=0x08000000 length=0x00002000
RAM (RW) : origin=0x08002000 length=0x0003E000

}

SECTIONS

{

.intvecs : {} > VECTORS
flashAPI :                                           --------------> here is a error.
{
    ..\Debug\Fapi_UserDefinedFunctions.obj (.text)
    ..\Debug\bl_flash.obj (.text)
    --library= F021_API_CortexR4_BE.lib (.text)
} load = FLASH_API, run = RAM, LOAD_START(api_load), RUN_START(api_run), SIZE(api_size)
.text : {} > FLASHBOOT
.const : {} > FLASHBOOT
.cinit : {} > FLASHBOOT
.pinit : {} > FLASHBOOT
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM

}

This is as similar to the sys_link_cmd  in Ethernet Boot loader file. But i am getting errpr in this file the error is

Description Resource Path Location Type
#10008-D cannot find file "flashAPI" sys_link.cmd /led/source line 81 C/C++ Problem

What might be the reason for this ?

Thanks and Regards 

Abhijith R