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/TMS570LS3137: TMS570LS3137 cannot download application to Flash Bank 1 through Bootloader

Part Number: TMS570LS3137

Tool/software: Code Composer Studio

Hi,

I'm using Code Composer Studio(CCS) 9.3.0.00012, the hardware I use is TMS570LS31x HDK board.
I used the UART Bootloader project to update the application into Flash memory.
For the memory information of TMS570LS3137, I refer to the "TMS570LS3137 16- and 32-Bit RISC Flash Microcontroller datasheet (Rev. C)" manual.
The TMS570LS3137 has 3MB of available flash space and is divided into two flash blocks bank0 (1.5MB) and bank1 (1.5MB).
When using Bootloader to download applications to Flash, the space of bank1 can be used normally, and applications can be written to the space within 0x0017FFFF.
However, I found that the application cannot be downloaded to the flash space within bank1 (0x0018_0000 to 0x002F_FFFF).

I have tried to modify the memory map setting of the Bootloader and change the Flash1 setting in sys_link.cmd :
MEMORY
{
VECTORS (X) : ....
FLASH0 (RX) : ....
FLASH1 (RX) : origin=0x0018_0000 length=0x002F_FFFF-0x0018_0000 ...

However, it still cannot be used after modification.
Does this mean that Bank1 is not enabled properly or Bank1 cannot be used?


Thanks for your help!

Best Regards, Chen Yan-Li

  • Hello Yan-Li,

    You can use either Bank0 or Bank1 for your application.

    If the APP_START_ADDR in your bootload is a location in Flash Bank1, the application should be uploaded to Bank1.

    When you call flash API, please specify the bank number:

    oReturnCheck = Fapi_BlockProgram( ucBank, g_ulUpdateStatusAddr, (unsigned long)&g_pulUpdateSuccess, g_ulUpdateBufferSize);

    where uvBank=1