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: SPNA186

Part Number: TMS570LS0432


Tool/software: Code Composer Studio

I am using SPNA186 trying to compile but  I am getting this error !!! please help soon thanks !!!!

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

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

Building target: "hysterYales.out"

Invoking: ARM Linker

Flags: -mv7R4 --code_state=32 --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 -z -m"hysterYales.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv8/utils/tiobj2bin/tiobj2bin.bat" -i"hysterYales.out\" \"hysterYales.bin\"" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/ofd470.exe" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/hex470.exe" -i"C:/ti/ccsv8/utils/tiobj2bin/mkhex4bin.exe" -i"C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/TMS570LS04x/boot_can/Release" -i"C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/lib" -i"/lib/F021_API_CortexR4_BE.lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="hysterYales_linkInfo.xml" --rom_model --be32

mv7R4 --code_state=32 --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 -z -m"hysterYales.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv8/utils/tiobj2bin/tiobj2bin.bat" -i"hysterYales.out\" \"hysterYales.bin\"" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/ofd470.exe" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/hex470.exe" -i"C:/ti/ccsv8/utils/tiobj2bin/mkhex4bin.exe" -i"C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/TMS570LS04x/boot_can/Release" -i"C:/Users/kganeshan/Desktop/hysterYale/SafetyMCU_Bootloader/lib" -i"/lib/F021_API_CortexR4_BE.lib" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="hysterYales_linkInfo.xml" --rom_model --be32 > "ccsLinker.opt"

makefile:362: recipe for target 'hysterYales.out' failed

'mv7R4' is not recognized as an internal or external command,

operable program or batch file.

gmake[1]: [hysterYales.out] Error 1 (ignored)

"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/armcl" -@"ccsLinker.opt" -o "hysterYales.out"

<Linking>

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 8: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 8: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 9: error #10264: SRAM memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range STACKS

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\bl_flash.obj"

"../SafetyMCU_Bootloader/RM42/bl_link.cmd", line 20: error #10008-D: cannot find file "F021_API_CortexR4_LE.lib"

"../SafetyMCU_Bootloader/RM42/boot_can/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\sys_core.obj"

"../SafetyMCU_Bootloader/RM42/boot_can/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\sys_startup.obj"

"../SafetyMCU_Bootloader/RM42/boot_can/bl_link.cmd", line 22: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"

"../SafetyMCU_Bootloader/RM42/boot_can/bl_link.cmd", line 23: error #10008-D: cannot find file "..\Release\bl_flash.obj"

"../SafetyMCU_Bootloader/RM42/boot_can/bl_link.cmd", line 25: error #10008-D: cannot find file "F021_API_CortexR4_LE.lib"

"../SafetyMCU_Bootloader/RM42/boot_spi/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\sys_core.obj"

"../SafetyMCU_Bootloader/RM42/boot_spi/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\sys_startup.obj"

"../SafetyMCU_Bootloader/RM42/boot_spi/bl_link.cmd", line 22: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"

"../SafetyMCU_Bootloader/RM42/boot_spi/bl_link.cmd", line 23: error #10008-D: cannot find file "..\Release\bl_flash.obj"

"../SafetyMCU_Bootloader/RM42/boot_spi/bl_link.cmd", line 25: error #10008-D: cannot find file "F021_API_CortexR4_LE.lib"

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 7: error #10264: BOOT_LOAD memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 7: error #10264: BOOT_LOAD memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 8: error #10264: FLASH_API memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 8: error #10263: FLASH_API memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 8: error #10264: FLASH_API memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 8: error #10264: FLASH_API memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 9: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 9: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 9: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 9: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 10: error #10264: SRAM memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 10: error #10263: SRAM memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 10: error #10264: SRAM memory range overlaps existing memory range SRAM

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 11: error #10264: STACK memory range overlaps existing memory range STACKS

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 11: error #10263: STACK memory range has already been specified

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 11: error #10264: STACK memory range overlaps existing memory range STACK

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 11: error #10264: STACK memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\sys_core.obj"

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\sys_startup.obj"

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 22: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 23: error #10008-D: cannot find file "..\Release\bl_flash.obj"

"../SafetyMCU_Bootloader/RM42/boot_uart/bl_link.cmd", line 25: error #10008-D: cannot find file "F021_API_CortexR4_LE.lib"

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 6: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10263: FLASH_API memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range BOOT_LOAD

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10263: FLASH_API memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 7: error #10264: FLASH_API memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10264: FLASH0 memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10263: FLASH0 memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 8: error #10264: FLASH0 memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 9: error #10264: SRAM memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 9: error #10263: SRAM memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 9: error #10264: SRAM memory range overlaps existing memory range SRAM

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 9: error #10263: SRAM memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 9: error #10264: SRAM memory range overlaps existing memory range SRAM

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range STACKS

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10263: STACK memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range STACK

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10263: STACK memory range has already been specified

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range STACK

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 10: error #10264: STACK memory range overlaps existing memory range RAM

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 17: error #10008-D: cannot find file "..\Release\Fapi_UserDefinedFunctions.obj"

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 18: error #10008-D: cannot find file "..\Release\bl_flash.obj"

"../SafetyMCU_Bootloader/RM46/bl_link.cmd", line 20: error #10008-D: cannot find file "F021_API_CortexR4_LE.lib"

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10263: VECTORS memory range has already been specified

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range VECTORS

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 31: error #10264: VECTORS memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 32: error #10264: BOOT_LOAD memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 32: error #10264: BOOT_LOAD memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 32: error #10264: BOOT_LOAD memory range overlaps existing memory range FLASH_API

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 32: error #10263: BOOT_LOAD memory range has already been specified

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 32: error #10264: BOOT_LOAD memory range overlaps existing memory range BOOT_LOAD

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 33: error #10264: FLASH_API memory range overlaps existing memory range FLASH0

"../SafetyMCU_Bootloader/RM48/bl_link.cmd", line 33: error #10263: FLASH_API memory range has already been specified

fatal error #99900: error limit reached; 100 errors detected

>> Compilation failure

makefile:362: recipe for target 'hysterYales.out' failed

makefile:358: recipe for target 'all' failed

gmake[1]: *** [hysterYales.out] Error 1

gmake: *** [all] Error 2

**** Build Finished ****

  • Karthick,

    There are a few things that look odd in your build command.

    karthick ganeshan said:
    -i"C:/ti/ccsv8/utils/tiobj2bin/tiobj2bin.bat" -i"hysterYales.out\" \"hysterYales.bin\"" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/ofd470.exe" -i"C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.3.LTS/bin/hex470.exe" -i"C:/ti/ccsv8/utils/tiobj2bin/mkhex4bin.exe"

    The -i option is a library search path option. Its parameter should simply be directories to search for libraries. The parameters in the above command look incorrect. The tiobj2bin call is usually a post-build step, and not part of the linker options. The post-build step would go under Project Properties->Build->Steps tab.

    Are you following some documented steps to add files and commands to your project? 

  • no I don't have any document that provide any instruction, I would appreciate if you can provide me the instructions if available. thanks
  • I'm not aware of a document with specific instructions, that would be a question more for the Hercules device forum. The reason I was asking the question was to understand if you were following some TI recommended steps and still having trouble.

    It appears that you are trying to add bootloader code to your own project. Is that so? 

    One issue I can identify is that you have likely added the post-build step at the incorrect location. As per SPNA186 be sure to add the tiobj2bin command only to the post-build step of the project. 

    Also you may have more than one linker command file in the project. That would explain the errors about overlapping memory ranges. Perhaps one linker command file was added by default when you created the project, and then you added another one for CAN bootloader. If that is the case, make sure to remove the one that is not required (or exclude it from build). 

    For further support, specifically with regards to CAN bootloader I would suggest creating a new post in the Hercules device forum. 

  • no i am not, i am just trying to compile the provided sample code and test it with the hercules launchxl tsm57004 . but it does not work
  • Karthick,

    Sorry about all the troubles you've been having.

    The reason I thought you had created your own project and were adding bootloader code to it, was because your build output had the following line:

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

    This does not sound like the name of an example project provided with SPNA186. I do see a "boot_can" project in the SPNA186 package which I tried importing and building, but ran into several issues. Looking at the project properties I see that several compiler and linker paths are hard-coded. This can cause lots of errors and would need to be adjusted to corresponding paths on your system. Overall, these projects appear to be designed to work with older version of CCS and compiler tools, and are likely not validated with newer tools. 

    I could probably work through the build errors and tell you how to adjust all the project settings to get the project to build, however I am not sure if that is the best path forward as it may cause more issues down the road. Instead I would suggest starting a new post in the Hercules device forum, tell them what you are looking for (your overarching goal rather than just the immediate build problem) and they should be able to guide you in the best direction. 

  • well , the issue i don't the luxury of time... i did open a trend in the hercules team as well..