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

ok I got it to configure however, -

"flash_defines.h" missing  where is the file ??????

**** Build of configuration Debug for project hysterYales ****

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

Building file: "../SafetyMCU_Bootloader/src/bl_flash.c"

Invoking: ARM Compiler

"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -mv7R4 --code_state=32 --include_path="C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/inc/F021_API" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/TMS570LS04x/boot_can" --include_path="C:/Users/kganeshan/Desktop/hysterYale" --include_path="C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/inc" --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --preinclude="C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/TMS570LS04x/boot_can/bl_config.h" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="SafetyMCU_Bootloader/src/bl_flash.d_raw" --obj_directory="SafetyMCU_Bootloader/src" "../SafetyMCU_Bootloader/src/bl_flash.c"

>> Compilation failure

SafetyMCU_Bootloader/src/subdir_rules.mk:30: recipe for target 'SafetyMCU_Bootloader/src/bl_flash.obj' failed

"C:\Users\kganeshan\Desktop\hysterYale\SafetyMCU_Bootloader\inc\F021_API\Types.h", line 86: warning #303-D: typedef name has already been declared (with same type)

"../SafetyMCU_Bootloader/src/bl_flash.c", line 29: fatal error #1965: cannot open source file "flash_defines.h"

1 catastrophic error detected in the compilation of "../SafetyMCU_Bootloader/src/bl_flash.c".

Compilation terminated.

gmake: *** [SafetyMCU_Bootloader/src/bl_flash.obj] Error 1

gmake: Target 'all' not remade because of errors.

  • The flash_defines.h file is under the {Your install path}\SafetyMCU_Bootloader\TMS570LS04x folder for me.

    Regards,
    Sunil
  • hi Sunil.,
    I am using CCS 8 version and SPNA185, can you let me know if you have procedure for setup? I have tried to get this up in running but not able to get it to compile successfully. I would appreciate if you can test it on your end and let me know if this is compatible with CCS 8 version as the original code is designed for CCS 5.2 .
  • Hi Karthik,

    I am not in the office right now, so cannot compile the project on my end. One thing I noticed is that the project uses several hard coded path names for include directories. These need to be updated to be relative to the install directory for the project to be compiled correctly. It is fairly easy to do tithing CCS if you know where all the include files are.

    I will try to compile the project and make the required updates tomorrow.

    Regards,
    Sunil
  • Hi Karthik,

    I see several issues while trying to compile the bootloader projects as well. I will ask for the project author to update the projects to make them portable so that the include options do not need to be updated.

    I will ask him to also comment on when these updates can be provided.

    Regards,
    Sunil
  • We are a little time pressed, i would appreciate if you can provide an estimated time  for the new sample thanks

  • hi Sunil ???

    Any luck with the revised code

  • Hello,

    I just compiled the project without any problem. I will post the whole project for you:

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

  • do you have a step by step procedure? 

    i am getting the below error once i import LS04_can_boot , .... 


    **** Build of configuration Debug for project ls04_can_boot ****

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

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/Fapi_UserDefinedFunctions.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="Fapi_UserDefinedFunctions.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/Fapi_UserDefinedFunctions.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'Fapi_UserDefinedFunctions.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/Fapi_UserDefinedFunctions.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_check.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_check.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_check.c"

    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'bl_check.obj' failed
    gmake: *** [Fapi_UserDefinedFunctions.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_check.c".
    gmake: *** [bl_check.obj] Error 1
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_dcan.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_dcan.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_dcan.c"

    >> Compilation failure
    subdir_rules.mk:23: recipe for target 'bl_dcan.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_dcan.c", line 744: warning #112-D: statement is unreachable
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_dcan.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_flash.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_flash.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_flash.c"

    >> Compilation failure
    subdir_rules.mk:30: recipe for target 'bl_flash.obj' failed
    gmake: *** [bl_dcan.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_flash.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_led_demo.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_led_demo.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_led_demo.c"

    >> Compilation failure
    subdir_rules.mk:37: recipe for target 'bl_led_demo.obj' failed
    gmake: *** [bl_flash.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_led_demo.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_main.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_main.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_main.c"

    >> Compilation failure
    subdir_rules.mk:44: recipe for target 'bl_main.obj' failed
    gmake: *** [bl_led_demo.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_main.c", line 128: warning #225-D: function "Fapi_BlockErase" declared implicitly
    "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_main.c", line 126: warning #552-D: variable "status" was set but never used
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_main.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_spi.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi.c"
    gmake: *** [bl_main.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi_packet.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_spi_packet.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi_packet.c"

    >> Compilation failure
    subdir_rules.mk:58: recipe for target 'bl_spi_packet.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_spi_packet.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_uart.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_uart.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_uart.c"
    gmake: *** [bl_spi_packet.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_uart.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_ymodem.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="bl_ymodem.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_ymodem.c"
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/bl_ymodem.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_dcan.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_dcan.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_dcan.c"

    >> Compilation failure
    subdir_rules.mk:79: recipe for target 'hw_dcan.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_dcan.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_esm.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_esm.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_esm.c"

    >> Compilation failure
    subdir_rules.mk:86: recipe for target 'hw_esm.obj' failed
    gmake: *** [hw_dcan.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_esm.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_gio.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_gio.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_gio.c"

    >> Compilation failure
    subdir_rules.mk:93: recipe for target 'hw_gio.obj' failed
    gmake: *** [hw_esm.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_gio.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_pinmux.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_pinmux.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_pinmux.c"
    gmake: *** [hw_gio.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_pinmux.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_sci.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_sci.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_sci.c"

    >> Compilation failure
    subdir_rules.mk:107: recipe for target 'hw_sci.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_sci.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_spi.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="hw_spi.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_spi.c"
    gmake: *** [hw_sci.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/hw_spi.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/notification.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="notification.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/notification.c"

    >> Compilation failure
    subdir_rules.mk:121: recipe for target 'notification.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/notification.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sci_common.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sci_common.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sci_common.c"

    >> Compilation failure
    subdir_rules.mk:128: recipe for target 'sci_common.obj' failed
    gmake: *** [notification.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sci_common.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sw_hw_ver.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sw_hw_ver.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sw_hw_ver.c"
    gmake: *** [sci_common.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sw_hw_ver.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_core.asm"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sys_core.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_core.asm"
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_core.asm"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_intvecs.asm"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sys_intvecs.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_intvecs.asm"
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_intvecs.asm"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_phantom.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sys_phantom.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_phantom.c"
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_phantom.c"

    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_startup.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="sys_startup.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_startup.c"

    >> Compilation failure
    subdir_rules.mk:163: recipe for target 'sys_startup.obj' failed
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/sys_startup.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/system.c"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="system.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/system.c"

    >> Compilation failure
    subdir_rules.mk:170: recipe for target 'system.obj' failed
    gmake: *** [sys_startup.obj] Error 1
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include/sys/_stdint.h", line 56: error #258: invalid redeclaration of type name "uint8_t" (declared at line 36)
    1 error detected in the compilation of "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/system.c".
    Building file: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/ymodem_crc16.asm"
    Invoking: ARM Compiler
    "C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7R4 --code_state=32 --abi=eabi --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --include_path="C:/ti/Hercules/F021 Flash API/02.01.01/include" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/TMS570LS04x/ls04_can_boot" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc" --include_path="C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/inc/F021_API" -g --diag_warning=225 --diag_wrap=off --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="ymodem_crc16.d_raw" "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/ymodem_crc16.asm"
    gmake: *** [system.obj] Error 1
    Finished building: "C:/Users/kganeshan/Desktop/SafetyMCU_Bootloader/src/ymodem_crc16.asm"

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • 2308.Bootloader Code from TI_modified.ziphi QJ,

    I have tested the code and i am not getting the led blinking successfull.  is the bootloader tested ??  CAN YOU guide ME ON WHAT IS THE ERROR THANKS....

  • Hello ,

    Have you solved the errors in compiling project? Are you able to load and execute the bootloader?  

  • I was able to get the bootloader GUI working , but was unable to get  the CAN bootloader to handshake with the code. I sent the 

  • Hello,

    Please comment out one statement in bl_main() I posted last week. 

    //status = Fapi_BlockErase(0x0180000, 0x2000);

    After you load the bootloader, and execute the code, the bootloader waits for the command and data from another CAN node. Do you have another CAN node connected to LS0432 MCU?

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

    This is example code of bootloader application for TMS570LS0432. The starting address is 0x10000.

  • we tryied the code provided but this does not work either, ...
  • This example was developed for your use case, and the both bootloader and application work on TI HDK. As I mentioned on Webex meeting. I assume you have solved this problem.