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/LAUNCHXL2-570LC43: Newbie: Help with Compiling Example Code

Part Number: LAUNCHXL2-570LC43
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi All,

I am really new to the TI products, and got the LaunchpadXL2 with TMS570LC43 to develop a CAN interface for our marine product. I am trying to learn from the example code with HalCoGen, along with video tutorials on the TI website. When I run the example code in CCS after following instructions in HalCoGen for starting the project (enabling CAN drivers, setting identifiers, etc) the program does not compile and gives the following error:

warning #10366-D: automatic library build: using library "C:\ti\ccsv7\tools\compiler\ti-cgt-arm_17.6.0.STS\lib\rtsv7R4_A_be_v3D16_eabi.lib" for the first time, so it must be built. This may take a few minutes.
process_begin: CreateProcess(NULL, echo Creating library c:/users/aaron~1.fis/appdata/local/temp/ti35cf~1/rtsv7r4_a_be_v3d16_eabi.lib, ...) failed.
Makefile:1948: recipe for target 'library' failed
make (e=2): The system cannot find the file specified.

>> Compilation failure
makefile:159: recipe for target 'CAN.out' failed

gmake.exe[2]: *** [library] Error 2
>> ERROR: mklib: gmake error during rtsv7R4_A_be_v3D16_eabi.lib build
warning #10207-D: automatic RTS selection: resolving index library "libc.a" to "rtsv7R4_A_be_v3D16_eabi.lib", but "rtsv7R4_A_be_v3D16_eabi.lib" was not found

undefined first referenced
symbol in file
--------- ----------------
__TI_auto_init ./source/HL_sys_startup.obj
__TI_decompress_lzss
__TI_decompress_none
exit ./source/HL_sys_startup.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "CAN.out" not built
gmake[1]: *** [CAN.out] Error 1
gmake: *** [all] Error 2
makefile:155: recipe for target 'all' failed

**** Build Finished ****

It gets to a stage where it begins compiling, then fails every time. Being a newbie I am really unsure what's happening here, or how to fix but any insight is appreciated on how I can start with getting the example code running. I have all of the include files taken care of, there are no files in the Project Explorer window which are red. Appreciate any help on this, and hoping to get running soon with this!

-Aaron

  • Hello Aaron,

    From the look s of the errors, it seems that there is an attempt by the tools to generate the needed runtime support libraries but this fails for some reason and, thus, all of the other compile activities then fail as well. Since we specialize in the device itself and not necessarily the tools (as this seems to be a tool issue), I am gong to move your post to the compiler support forum. For certain, if you don't get a response in that E2E in a short amount of time, please post pack and I will see it so I can follow-up with the compiler team further at that time.
  • You are almost certainly experiencing the compiler bug described in this forum thread.  The fix has not been released.  You can apply the temporary fix shown in the forum thread.  Or, you can change to to an older TI ARM compiler version 16.9.x.LTS which does not have the problem.  

    Thanks and regards,

    -George

  • Thanks George, this fixed the issue. Appreciate the quick help!

    -Aaron