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.

TMS570LS0432: UART bootloader, unresolved symbol "api_load", etc.

Part Number: TMS570LS0432


I am having the same issue described in an earlier post: e2e.ti.com/.../265626.

In that post QJ Wang replied to:

Please check if you have cmd file activated. The section for API is defined in cmd file.

OK, forgive me if I'm new at this, but how do I check to see if the cmd file is activated? And if not how do I activate it?

Thanks,

        ken

  • Hello ken,

    I could not open the link at this moment. If you want to erase any sector of the flash and program the application code to flash, you have to execute the flash API related code from SRAM.

    In cmd file, define a memory area and section for API related code, then copy the code to SRAM in main().

    cmd file (example):

    MEMORY

    {

       VECTORS    (X)  : origin=0x00000000 length=0x00000020

       FLASH_API (RX)  : origin=0x00000020 length=0x000014E0

       FLASH0    (RX)  : origin=0x00001500 length=0x001FEAE0

       FLASH1    (RX)  : origin=0x00200000 length=0x00200000

       STACKS    (RW)  : origin=0x08000000 length=0x00001500

       RAM       (RW)  : origin=0x08001500 length=0x0007EB00

    }

    SECTIONS

    {

      .intvecs : {} > VECTORS

      flashAPI :

      {

        Fapi_UserDefinedFunctions.obj (.text)

        bl_flash.obj (.text)

        --library= ..\flash_api\lib\F021_API_CortexR4_BE.lib (.text)

      } load = FLASH_API, run = RAM, LOAD_START(api_load), RUN_START(api_run), SIZE(api_size)

       .text   align(32) : {} > FLASH0 | FLASH1

       .const  align(32) : {} > FLASH0 | FLASH1

       .cinit  align(32) : {} > FLASH0 | FLASH1

       .pinit  align(32) : {} > FLASH0 | FLASH1

       .bss     : {} > RAM

       .data    : {} > RAM

       .sysmem  : {} > RAM

    }

    In main() or sy_startup.c, to run _copyAPI2RAM_() --- refer to the TI bootloader example code.