Building and debugging C code generated using Embedded Cider in CCSv5.5?
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
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
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.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!