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 problem linking sysbios

Other Parts Discussed in Thread: SYSBIOS, AM3359

Hi all,

I'm using CCS v6.1.1 on Windows 7 64-bit. I've got the same project on 2 PC. One works fine, the other gave me these errors during linking:

 undefined                                first referenced                                                                                        
  symbol                                      in file                                                                                             
 ---------                                ----------------                                                                                        
 ti_sysbios_heaps_HeapBuf_Params__init__S C:/...
 ti_sysbios_heaps_HeapBuf_alloc__E        C:/...
 ti_sysbios_heaps_HeapBuf_create          C:/...
 ti_sysbios_heaps_HeapBuf_delete          C:/...

>> Compilation failure
 ti_sysbios_heaps_HeapBuf_free__E         C:/...
 ti_sysbios_heaps_HeapBuf_getAlign__E     C:/...
 ti_sysbios_heaps_HeapBuf_getBlockSize__E C:/...
 ti_sysbios_heaps_HeapBuf_getEndAddr__E   C:/...
 ti_sysbios_heaps_HeapBuf_getStats__E     C:/...
 ti_sysbios_knl_Mailbox_Params__init__S   C:/...
 ti_sysbios_knl_Mailbox_create            C:/...
 ti_sysbios_knl_Mailbox_delete            C:/...
 ti_sysbios_knl_Mailbox_pend__E           C:/...
 ti_sysbios_knl_Mailbox_post__E           C:/...

These functions are auto-generated. Any suggestions on why they seems to be missing?

Other functions from the same autogenerated sysbios lib are correctly linked.

  • Hi Alessio,

    Are you building a TI-RTOS example or your own application? Which version of TI-RTOS are you using? What device are you developing on? Can you attach the config file (*.cfg) to this post?

    Regards,
    -- Emmanuel
  • Hi Emmanuel,

    I'm building my own application but I trieds also with TI-RTOS example and I've got the same errors. I'm using SysBios 6.41.02.41 on a AM3359 Ice.

    This is the config file:8741.app.cfg

    Thanks in advance

    Alessio

  • Hi Alessio,

    The errors you posted above usually occur when you are using a module in your code but it has not been added to the project's config file.  I looked at your config file and the necessary modules were there.  I also tried building our typical example with it & after a few tweaks, I was able to get it to build ok. 

    Note: you should use += when adding compiler options in the config file. Example: 

    BIOS.customCCOpts += "--endian=little -mv7A8 --abi=eabi --neon --float_support=vfpv3 -q -ms  --program_level_compile -g";

    Did you start from an example project?  If so, which?  Can you attach your example? Or maybe a simpler example with the same issue?

    Thanks,

    -- Emmanuel

  • Hi, Alessio. did you directly call the HeapBuf API in some code? Maybe you can try to create a HeapBuf statically in the .cfg file.