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.

code generation and CCS

With a DSP/BIOS application CCS runs tconf to generate C and assembly code. Then it compiles the generated code. How is it possible to setup other code generators with CCS?

  • John,

    There is a concept of a builder where you add a plug-in that handles building a particular type of file.  We have done this for .tcf and .cfg files for building BIOS.  It is possible (but a lot of work) to create other builders.  However those builders would not be associated with a CCS Project.  Another thing you would want to create is an error parser which would parse the output and display the errors in the problems view.

    I would recommend either going with a standard make project where you can control the build from the makefile or to try to utilize a post build step that builds the other files that you want to build.

    Regards,

    John

  • By 'Post build step" under ccs v5 are you referring to: right click on project, Properties,  C/C++ build,  Settings, Build Steps?

    I want to generate C code that is linked with hand-written C code. The pre and post build steps are not executed if the build is up to date.

    I think moving the entire project to hand-written makefiles would take more time than I'm prepared to put in solve this problem. I'd rather run the code generator by hand and check its outputs in to revision control each time the inputs changed.

  • Yes on the build steps tab there is a way to enter in a pre build step and a post build step. I guess another thing you could do is write a little script that runs your code generator first and then does a project build. Assuming your C files are generated into the project directory they would then get picked up by the build. You could have a command in the scripting console and a menu item if you want that would run the command. http://processors.wiki.ti.com/index.php/Scripting_Console The "buildProject" console command would do the build. To run your script you could use eval("GEL_System(\"command\")") One limitation I can see on this is that eval requires there to be an active debug session. I will ask around if there is a way to run a system command that doesn't need a debug session. John