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.

Linux/TMS320C6678: Create Syslink example using CCS

Part Number: TMS320C6678
Other Parts Discussed in Thread: SYSBIOS

Tool/software: Linux

Hi to all 

i success to rebuild Linux c6x kernel and rebuild syslink.ko and Notify example (rtos & hlos) on Linux using makefile (example work correctly with new new files). i try to create CCS project for Notify example based on this post (i can't find Syslink CCS example for c6678 on TI wiki) and include syslink_evmc6678.el_hardfp directory to project according to this post , but CCS report this error:

 java.io.FileNotFoundException: E:\6678_Board\Doc\Linux C6x\syslink\syslink_evmc6678.el_hardfp\ti\syslink\ipc\rtos\package\package.bld.xml (The system cannot find the file specified)

i adding syslink_evmc6678.el instead of adding syslink_evmc6678.el_hardfp (i copy directory from Ubuntu to Windows)

what's difference between this directories?

CCS project build without error  but when i replace .out file with original .xe66  and add "insmod /opt/syslink_evm6678.el/syslink.ko TRACE=1 TRACEFAILURE=1"  in script and run it, error report and program not work

*** MemoryOS_alloc: Could not allocate memory
        Error [0x897d2001] at Line no: 302 in file /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/utils/hlos/knl/osal/Linux/MemoryOS.c
*** Memory_alloc: Failed to allocate memory!
        Error [0x8c97e001] at Line no: 139 in file /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/utils/hlos/Memory.c
*** Platform_loadCallback: Memory_alloc failed
        Error [0xffffffff] at Line no: 2062 in file /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/c667x/Platform.c
*** Ipc_control: Platform_loadCallback failed!
        Error [0xffffffff] at Line no: 829 in file /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Ipc.c
Assertion at Line no: 302 in /home/ubuntu/build-set/c66le/linux-c6x-2.0.0.63/Build/syslink_evmc6678.el/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/ipc/hlos/knl/Linux/IpcDrv.c: (status >= 0) : failed
*** Notify_registerEvent: Notify driver not registered

i see this post from  but i think my package version is correct

any body can help me how to use Syslink Notfy/MessageQ in CCS project?

thanks

Ebi

  • Update:

    .map file , generated by linux c6x makefile (/Build/syslink_evmc6678.el/ti/syslink/samples/rtos/notify/package/cfg/ti_syslink_samples_rtos_platforms_evm6678_core1/release/notify_c6678_core1.xe66.map)

    ******************************************************************************
                   TMS320C6x Linker Unix v7.4.0                    
    ******************************************************************************
    >> Linked Sat Sep 23 03:21:21 2017
    
    OUTPUT FILE NAME:   <ti_syslink_samples_rtos_platforms_evm6678_core1/release/notify_c6678_core1.xe66>
    ENTRY POINT SYMBOL: "_c_int00"  address: 0081efe0
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      L2SRAM                00800000   00060000  00035236  0002adca  RW X
      SR0                   0c008000   000f8000  000f8000  00000000  RW X
      MSMCSRAM              0c100000   00040000  00000000  00040000  RW X
      DDR3                  90000000   02000000  00000000  02000000  RW X
      SR1                   9fc00000   00200000  00200000  00000000  RW X

    .map file, for CCS project

    ******************************************************************************
                   TMS320C6x Linker PC v7.4.0                      
    ******************************************************************************
    >> Linked Tue Sep 26 09:01:32 2017
    
    OUTPUT FILE NAME:   <Syslink_Notify_2.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 0081ef60
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      L2SRAM                00800000   00080000  0003509e  0004af62  RW X
      MSMCSRAM              0c000000   00400000  000f8000  00308000  RW X
      DDR3                  80000000   20000000  00200000  1fe00000  RWIX

    i think problem is in memory section !

    Ebi

  • C6678 devices DO NOT support linux kernel. Please share which RTOS version are you using?

    Best Regards,
    Yordan
  • Hi

    thanks for your reply !

    C6678 support Linux c6x  , Linux-c6x is running on DSP and is based on uClinux (for MMU-less processor)

    official site:

    Ebi 

  • Hi,

    Yes, I know of this, but this MCSDK is quite old and no longer updated. Currently we support the following releases:
    www.ti.com/.../toolssoftware

    We usually suggest that customers work with the latest Processor SDK RTOS.

    Best Regards,
    Yordan
  • yes you are correct, i'm using latest version of processor sdk, SYS/BIOS, ipc, ... for my main program.

    on this step i try to add syslink to sysbios side of my main program (for transfer data between Linux core and Sysbios cores) and try to rebuild syslink example.

    according to this posts

    , i must use correct version of BIOS, XDC as shown in linux-c6x.org release notes

    on next step i try to use syslink with latest version of BIOS, XDC , ...

    thanks

    Ebi

  • my problem resolved by changing platform !

    ebi alinejad said:

    .map file , generated by linux c6x makefile (/Build/syslink_evmc6678.el/ti/syslink/samples/rtos/notify/package/cfg/ti_syslink_samples_rtos_platforms_evm6678_core1/release/notify_c6678_core1.xe66.map)

    ******************************************************************************
                   TMS320C6x Linker Unix v7.4.0                    
    ******************************************************************************
    >> Linked Sat Sep 23 03:21:21 2017
    
    OUTPUT FILE NAME:   <ti_syslink_samples_rtos_platforms_evm6678_core1/release/notify_c6678_core1.xe66>
    ENTRY POINT SYMBOL: "_c_int00"  address: 0081efe0
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      L2SRAM                00800000   00060000  00035236  0002adca  RW X
      SR0                   0c008000   000f8000  000f8000  00000000  RW X
      MSMCSRAM              0c100000   00040000  00000000  00040000  RW X
      DDR3                  90000000   02000000  00000000  02000000  RW X
      SR1                   9fc00000   00200000  00200000  00000000  RW X

    .map file, for CCS project

    ******************************************************************************
                   TMS320C6x Linker PC v7.4.0                      
    ******************************************************************************
    >> Linked Tue Sep 26 09:01:32 2017
    
    OUTPUT FILE NAME:   <Syslink_Notify_2.out>
    ENTRY POINT SYMBOL: "_c_int00"  address: 0081ef60
    
    
    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
      L2SRAM                00800000   00080000  0003509e  0004af62  RW X
      MSMCSRAM              0c000000   00400000  000f8000  00308000  RW X
      DDR3                  80000000   20000000  00200000  1fe00000  RWIX

    i think problem is in memory section !

    problem related to memory sections!

    Ebi