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.

Regarding code execution(window to Linux platform)



Hi,

We are using AM335X processor , Linux as the OS (Arago Linux) & Blackhawk USB 100v2(XDS100v2) JTAG emulator for flashing and debugging.

We had installed the CCSv6 on windows & compiling the code for Linux.

Will CCS in window platform cross compile the code for Linux  platform and execute the same exe over target board which is working on Linux platform?

  • Hello,
    Yes, while a but clunky, that should be fine. I've been able to do this in the past with using CCS on Windows to generate and debug Linux applications running on the an embedded Linux target.

    Thanks
    ki
  • Hi,Thanks for the information.
    Please let me the steps or any special requirement that should be follow to run the window platform generated exe in linux target.
  • Hi, On cross compiler you must set the target platform to Linux otherwise compiler assume default to guesting host and compile to processor and OS is running the compiler too.
    So .EXE cannot be executed in Linux than on WINE layer but WINE layer is PC specific and don't exist in ARM HOSTS.
    Change target to build for ARM Linux then move .out file to execute on target ARM platform, AMD/Intel code don't execute on ARM nor ARM execute on AMD64/Ixxx platform too without a simulator.
  • Hi and thanks for the answer.
    Currently I have installed CCS 6.0 on window platform and using Linaro tool chain.
    My aim is to compile and debug code over Linux platform based target board using window CCS.
    My target board is beagle bone black and emulator is Jtag Blackhawk USB100v2.
    I am not able to compile code and getting an error
    **** Build of configuration Debug for project test3 ****
    "D:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 'Building target: test3.out'
    'Invoking: GNU Linker'
    "D:/ti/linaro-arm-linux-gnueabi/bin/arm-linux-gnueabi-gcc.exe" -Dam3359 -g -gstrict-dwarf -Wall -Wl,-Map,"test3.map" -Wl,--defsym,STACKSIZE=0x18000 -Wl,--defsym,HEAPSIZE=0x400 -o"test3.out" "./hello.o" "./startup_ARMCA8.o" -Wl,-T"../AM335x.lds" -Wl,--start-group -l"c" -l"gcc" -l"rdimon" -Wl,--end-group
    d:/ti/linaro-arm-linux-gnueabi/bin/../lib/gcc/arm-linux-gnueabi/4.6.3/../../../../arm-linux-gnueabi/bin/ld.exe: cannot find -lrdimon
    collect2: ld returned 1 exit statusgmake: *** [test3.out] Error 1
    gmake: Target `all' not remade because of errors.**** Build Finished ****
    Pls help to resolve the issue.
  • Hi, as from Linker output:
    >>> bin/ld.exe: cannot find -lrdimon
    one file or path to library is missing, please check CCS path and file exists on library folder.
  • Hi ,We have tried below sequence:-:
    We are compiling the code using CCS studio 6.0 on windows platform
    Tool Chain – Linaro 4.7.4 (Inbuilt to CCS 6.0)
    Default CCS Studio complier - arm-none-eabi
    We are facing below error during the compilation of code.
    Files include/required for code#include <stdio.h>
    #include <stdlib.h>#include <sys/types.h>
    #include <sys/ipc.h> #include <sys/shm.h>
    #include <unistd.h>#include <pthread.h>#include <string.h>
    #include <semaphore.h> Error that received are:-
    #error <dirent.h> not supported"
    fatal error :sys/ipc.h:No such file or directory
    We have tried alternate tool - linaro-arm-linux-gnueabihf
    Code is getting complied (when linker command is set to none ) .But the facing the issue with Debugging code.
    we are not able to debug code using JTAG.
  • Hi Yogesh, some path search on ccs environment is wrong or missing so compiler and or linker cannot find files to resolve library and compilation or include of header. This case caompilation and if not linker faild due to file not found error.
    You MUST have all path of libraries and includes relative to used compiler on setup of project otherwise no difference for platform it fail when file is not found.