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/TMS570LS0432: TMS570LSX42 Hercules Bootloader CAN

Part Number: TMS570LS0432


Tool/software: Code Composer Studio

I am trying the building the BIN file to pass to the bootloader however it is not working , can you advise what am i doing wrong

*** Build of configuration Debug for project V04268_v1 ****

"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 2 all -O

Building target: "V04268_v1.out"
Invoking: ARM Linker
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --abi=eabi -z -m"V04268_v1.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="V04268_v1_linkInfo.xml" --rom_model --be32 -o "V04268_v1.out" "./source/can.obj" "./source/dabort.obj" "./source/esm.obj" "./source/gio.obj" "./source/het.obj" "./source/notification.obj" "./source/os_croutine.obj" "./source/os_event_groups.obj" "./source/os_heap.obj" "./source/os_list.obj" "./source/os_mpu_wrappers.obj" "./source/os_port.obj" "./source/os_portasm.obj" "./source/os_queue.obj" "./source/os_tasks.obj" "./source/os_timer.obj" "./source/pinmux.obj" "./source/sys_core.obj" "./source/sys_intvecs.obj" "./source/sys_main.obj" "./source/sys_mpu.obj" "./source/sys_pcr.obj" "./source/sys_phantom.obj" "./source/sys_pmu.obj" "./source/sys_selftest.obj" "./source/sys_startup.obj" "./source/sys_vim.obj" "./source/system.obj" "./source/v4268_init.obj" "../source/sys_link.cmd" -llibc.a
<Linking>
Finished building target: "V04268_v1.out"

Building files: "V04268_v1.out"
Invoking: ARM Hex Utility
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armhex" --ti_txt -o "V04268_v1.bin" "V04268_v1.out"
Translating to TI-TXT format...
"V04268_v1.out" .intvecs ==> .intvecs
"V04268_v1.out" .kernelTEXT ==> .kernelTEXT
"V04268_v1.out" .cinit ==> .cinit
"V04268_v1.out" .text ==> .text
"V04268_v1.out" .const ==> .const
Finished building: "V04268_v1.out"

"C:/ti/ccsv8/utils/tiobj2bin/tiobj2bin.bat"
Usage: tiobj2bin file.out file.bin [ofd] [hex] [mkhex]
"V04268_v1.out" "V04268_v1.bin"
makefile:193: recipe for target 'post-build' failed
process_begin: CreateProcess(C:\Users\kganeshan\Desktop\V04268_v1\Debug\V04268_v1.out, V04268_v1.out V04268_v1.bin, ...) failed.
make (e=193): Error 193
gmake[2]: [post-build] Error 193 (ignored)
process_begin: CreateProcess(NULL, C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/ofd470.exe, ...) failed.

gmake[2]: [post-build] Error 2 (ignored)
process_begin: CreateProcess(NULL, C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/hex470.exe, ...) failed.

gmake[2]: [post-build] Error 2 (ignored)
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/ofd470.exe"
makefile:193: recipe for target 'post-build' failed
"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/hex470.exe"
makefile:193: recipe for target 'post-build' failed
"C:/ti/ccsv8/utils/tiobj2bin/mkhex4bin.exe"
makefile:193: recipe for target 'post-build' failed
Reading from stdin ...
File does not exist: at XML_TI_OFD.pm line 877.
gmake[2]: [post-build] Error 2 (ignored)

**** Build Finished ****

  • Hi Karthick,

    I have sent you the working bootloader and working application code (led blinking) in another thread and through BOX.
  • https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/1007.TMS570LS0432_5F00_CAN_5F00_Bootloader.7z

  • Hello Karthick,

    This is the VC++ project for CAN Bootloader for TMS570LS0432. 

    1.  Line 53: #define TMS570LS04  --> for TMS570LS0432 device

    2. Line 176: Baudrate = 125000;//500000;//250000;//125000;  --> Baudrate is 125 kbps

    3. Line 207: filename = "TMS570LS0432_Bootloader_AppTest.bin";   --> this is application image (binary file) which toggles gio pins (GIOA[3] and N2HET1[22]/[24]

    4. Line 335: ulAddress = 0x00010100; --> the Application image is programmed to the flash area starting at 0x10100

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/0640.TMS570LS_5F00_canBootloader_5F00_Test.7z

  • Hello Karthick,

    Attached is the application image used for CAN bootloader. This project is to blink LED on PCB board. For TI HDK, it is LED connected to GIOA[3]; for your PCB board, they are the LEDS connected to NeHET1[22] and NeHET1[24].

    The starting address is 0x10100.

    The binary format file is generated from CCS by setting Post-built steps under project property->Build->Steps->Post-Built steps:

    "${CCE_INSTALL_ROOT}/utils/tiobj2bin/tiobj2bin" "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin" "${CG_TOOL_ROOT}/bin/armofd" "${CG_TOOL_ROOT}/bin/armhex" "${CCE_INSTALL_ROOT}/utils/tiobj2bin/mkhex4bin"

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/2311.TMS570LS0432_5F00_Bootloader_5F00_AppTest.7z

  • Hello Karthick,

    Attached is the CAN Bootloader project. This project is tested on TI HDK. If you use this project on your board, the following should be modified:

    1. bl_config.h:  

    Line 66: #define CRYSTAL_FREQ            16        --> change to 10

    2. bl_led_demo.c and bl_led_demo.h: use the files I gave yesterday during conf call. The files in this project toggles LEDs connected to GIOA[3] and GIOA[2] while programming the data to flash

    3.  Line 153 in bl_main.c:    g_ulTransferAddress = (uint32_t)APP_START_ADDRESS;

       In the project I gave you before, this line uses 0x10100 rather than APP_START_ADDRESS; I modified code last week to test if the code is able to jump to 0x10100.

    All the projects attached here are tested today on TI HDK. They work pretty well.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/4743.TMS570LS0432_5F00_CAN_5F00_Bootloader.7z