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.
Hi,
I recently upgraded from CCS v5 to CCS v6.1.3, and I found a different behavior for excluded files. My projects are a mix of generated C code from MATLAB and written C code.
However, the rebuild of MATLAB model works the way it first deletes all the old .h and.c files, then it creates them again. And for all the generated files this causes loss of settings about being excluded or not. All files are included by default, so I have to manually exclude all the extra files in order to build successfully.
Some projects require excluding just single file - that's fine. but some of them require a dozen, which is time consuming and mistake-attracting.
Is there a solution other than downgrading back to ccsv5?
Many thanks,
Jakub
Hi Jakub,
This question is very hard to answer from the MathWorks viewpoint without knowing a lot more about your MATLAB/Simulink model. In many cases, MathWorks tools typically only re-generate files if needed - i.e. they change - which may very well be the case here.
My best advice is to contact MathWorks Technical Support and have them open a help ticket for this issue. If they can't assist - they will escalate to MathWorks development for their expert assistance (and you can suggest this approach to the tech support person as needed). In addition, feel free to contact me via direct message in E2E with your Tech Support case # so I can keep an eye open for it.
Thanks,
-Brian
Thank you for your reply, Brian.
I wrote the question here, because only thing I have changed is the version of CCS. In CCSv5 the settings about excluded files was kept even if the files were deleted and then created again. I have a workaround that I can close the project in CCSv6 before building the model and then reopen it, but it happens that I am forgetting doing this. Both ways of closing/reopening project or excluding them again and again are little painful for me.
Anyway, during building the old source files are really deleted and then recreated (after 5-10 seconds in my case). I made some screenshots of the folder as a proof. I am using r2013a.
Thanks again,
Jakub
Hi Jakub,
Your issue may be related to your MathWorks release. Support for CCSv5 was added in MathWorks Release R2012b. Support for CCSv6 was added in MathWorks Release R2015a.
From R2013b onwards, MathWorks C2000 Support is offered as a separate (free) downloadable Support package.
I suspect you can generate code from R2013a and have the code function inside of CCSv6, but you are likely going to have to work through issues like you are facing. We didn't start official support for CCSv6 until R2015a, so MathWorks Tech Support and development cant assist on this; we've never tried to make it work.
-Brian
I was able to fix it by reducing the number of generated and copied files to minimum and by setting filters in CCSv6 - Project properties/Resource/Resource filters.