Jump to content

Help with Code Headers

Recommended Posts



I'm a kind of newbie in this.


I just created for the LAUNCHXL-F28377S a simple application to be controlled by Texas' GUI.

However, after generating the code and trying to build it in CCS v8 I got the following:


>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"../main.c", line 6: fatal error #1965: cannot open source file "cgen.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****


The same goes for c2000.h...


Some ideas how to overcome this?


Thank you.




Share this post

Link to post
Share on other sites

Hello Jake.


Welcome to this is a forum on solidThinking Embed. This tool allows you to graphically create algorithms for various microcontrollers (including the F28377S) without writing a single line of code. With the auto code generator you can avoid the various compilation errors you are getting.


Feel free to try Embed and ask any questions regarding the software. What would you like to achieve with your algorithm?

Share this post

Link to post
Share on other sites

Step 1:Click on Project>> new CCS project

Step 2: Select the linker command file in General tab(C:\sTEmbed2017\cg\Lib\F28377Slnk.cmd)
Step 3: Click on compiler and under include options tab add the path for visSim libraries

Step 4: Click on advance options >> predefined symbols and add the following


Step 5: Click on C2000 linker tab>> File search path
Add the below path in “Include library file or command file as input”
Add the below paths in “Add <dir> to library search path”

Step 6: Copy the C code generated in sT Embed to C file in CCS

Step 7: Build the project and debug it



Note : Also find the attached Zip file for full project developed in CCS 6.1

F28377s VisSim C-Code.zip

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...