Building and debugging C code generated using Embedded Cider in CCSv5.5?

4 views (last 30 days)
I'm using Embedded Coder with ccsv5.5 for controlling a DC/AC inverter. The embedded coder generates a .out file along with a bunch of codes and header files in the rtw folder. I'm able to load the .out file onto my F28335 target and it works fine.
However, I'm having trouble with debugging the project in ccs consisting of files in the rtw folder. I import the project in ccs using "Existing code as Makefile project". When I try to build the project, the build fails as it can not find path to 'make'. I'm not sure how to proceed further. My goal is to be able to slightly modify the c code generated by Embedded Coder, compile it and be able to create watch expressions in order to monitor some of the measurements.
Can someone provide some assistance?
Thanks Mayank

Answers (1)

Antonin
Antonin on 9 Mar 2017
Hi Mayank,
In R2017a, we introduced the "Open CCS Project" link that appears at the bottom of the diagnostic viewer, after you generate code. This will open a CCS project that you can debug, modify, rebuild, reload, etc. I believe this will nicely answer you need, let me know otherwise.
Enjoy!
Antonin.
  2 Comments
Mayank
Mayank on 9 Mar 2017
Hi Antonin,
Thank you for your reply. Unfortunately in our lab, we're using R2016a and R2016b, and do not have access to R2017a. Are there some options available for the 2016 versions? I'll also try to get hold of 2017a in the meantime.
Thanks Mayank
Antonin
Antonin on 9 Mar 2017
Hi Mayank,
R2017a was released yesterday, you should have access to it if you have an active license.
A few tips if you are stuck with older releases:
  • If you manually load the generated .out file via CCS, you should be able to put a breakpoint in any C file that was compiled in that .out, by just loading the file in CCS. There is no need to create a CCS project to put a breakpoint.
  • CCS v5 and above have options to create a project from a makefile. You can use that option in combination with the makefile that you we generate in the code generation folder. The tool is not smart enough to pick all information from the makefile, you will have to manually add options in the CCS project, but it's a good start.
This said, I strongly encourage you to use R2017a for the best experience.
I hope it helps,
Good luck,
Antonin.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!