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/TMS320C5535: CCS debug on linux terminal to generate configuration files

Part Number: TMS320C5535


Tool/software: Code Composer Studio

Hi,

In my project I have a config file generator which generates the desired configuration files, when it is run in debug mode of CCS v5.5 on windows.

Now in a linux build server there is only TI cg tools installed for compilation of the binaries, which is done by running the modified CCS makefile (updated with compiler directory path names for linux). So is there a way I can run the config generator (run a make script or something) to give me the desired config files without CCS installed on the build server. If so please suggest how.

Thanks in advance.

  • Hello,
    Which configuration files are you referring to? Target configuration files (ccxml)? BIOS configuration files (cfg)?

    Thanks
    ki
  • Actually I have a generator file which creates some configuration files needed to be flashed with the firmware into my device. The generator does this when I launch a debug session of my project and run it from within CCS in Windows machine. How to do the same thing in linux build server from the ssh terminal where I dont have GUI? Please note I am able to compile the firmware binary by using cgtools and running the modified CCS makefile on the linux build server. No CCS is installed in the build server.

  • Pranjal Sengupta said:
    The generator does this when I launch a debug session of my project and run it from within CCS in Windows machine.

    I need to understand exactly what is happening in this step before I can provide any suggestions. I suspect this is happening with either some post build step or an initialization (java)script which runs when the debug session is launched. 

    Please fully explain your environment in this step.

    Thanks

    ki

  • Hi KS,

    Here the gen_cp.c file is the 'tool' which generates codeplug and address files in Debug directory (these are the configuration files we need).  gen_cp.c reads a file cp_gen.cfg under the Debug folder to generate the files.

    Here is what I do in CCS on Windows:

    I build the cp project. Thereafter I launch a debug session of the project and the program starts at main() symbol of gen_cp file. Then on resuming Debug, the program runs and creates the codeplug and address files in Debug directory.

    So now I want to do all that in the linux build server terminal where we have the cgtools installed. Kindly suggest if that can be done and how.

    Thanks and regards

    -PJ

  • Pranjal Sengupta said:
    Thereafter I launch a debug session of the project and the program starts at main() symbol of gen_cp file. Then on resuming Debug, the program runs and creates the codeplug and address files in Debug directory.

    I see. You need to run the program to generate the desired files on the host

    Pranjal Sengupta said:
    So now I want to do all that in the linux build server terminal where we have the cgtools installed. Kindly suggest if that can be done and how.

    Because you require the program to be executed, you need a way to load/run the executable. Unless you have your own loader, you will need some variation of CCS. People in your scenario have used loadti from the console:

    http://processors.wiki.ti.com/index.php/Loadti

    However, loadti requires an installation of CCS. Hence people install CCS for Linux on their server.

    Thanks

    ki

  • Ok Thanks a lot Ki.