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.

TMS570LS3137 UART bootloader

"../src/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"
"../src/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\bl_flash.obj"
fatal error #16001: object files have incompatible byte orderings ("E:/CCS_Workspace/TMS570LS31xx/uart_test/uart_boot/test_pro/lib/F021_API_CortexR4_LE.lib<Async.WithAddress.obj>" = little endian, "./src/Fapi_UserDefinedFunctions.obj" = big endian)

Because of these errors, the project can not be compiled. How to resolve them?

Is there a demo that I can use?

Here is there project: 3755.uart_boot.rar

Thanks and Regards,

Caven

  • Caven,

    Apparently, you have modified the directory structure for this project. This is the reason why you are facing problem.

    Based on your attached project, here are the modification you have to do in order to compile and link your code.

    1] The linker command file you are using was defined for a "release" version of the code. Your project compiles the "debug" version.
    So you can change that by right clicking on the project name and select "Build Configuration-> Set Active" and select Release.
    You will then have to update the compile include path. (check the way it is define for the debug version)

    2] Because you have changed the directory structure, (C code is now in SRC directory) all obj will be created in "Release/SRC" or "DEBUG/SRC" depending on the active release you have selected.
    Edit the bl_link.cmd and change:

        ..\Release\Fapi_UserDefinedFunctions.obj (.text)
        ..\Release\bl_flash.obj (.text)

        ..\Release\src\Fapi_UserDefinedFunctions.obj (.text)
        ..\Release\src\bl_flash.obj (.text)

    The bl_link,cmd you are using was targeting an RM device (Little Endian) so you have to change:

        --library= F021_API_CortexR4_LE.lib <

        --library= F021_API_CortexR4_BE.lib <

    Last, in the project properties, under "ARM linker" File Search Path, you have to add the path to the Flash API directory. If the Flash API was installed to the default directory, it should be:

    "C:\ti\Hercules\F021 Flash API\02.01.00"

    After all these modification, I was able to compile and link your project.

    Please have a try and let me know the result.

  • Jean-Marc,

    Thanks for your answer. Following your steps, I have compiled my project successfully.
    Thank you!

    Best Regards,
    Caven