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.
Would like to import a cmplex Project previously developed which used CAN. I do not use CAN in the new project so is it possible to remove CAN from the old design files?
I started by copying (CTRL C) and pasting (CTRL V) the design with a new name in CCS. This seem to work fine.
Using CCS 12.5 and HALCoGen 04.07.01
Tried manually removing all reference to CAN(1,2,3,4,5) but unable to shake free of CAN.
Tried removing in HALCoGen and then generating and saving code. Still see CAN modules nd references.
Bob
Hi Bob,
Tried removing in HALCoGen and then generating and saving code. Still see CAN modules nd references.
In HALCoGen once you enabled the check box and generated the any driver files, after you uncheck and regenerate the code will not be helpful to delete these files automatically.
You should just need to select these files manually and should delete them.
--
Thanks & regards,
Jagadish.
Jagadish, Thanks for your reply. Unfortunately the image is not clear and I can not find anything that is similar. Can you please resend the image or a discription of the file?
Just gussing it looks like you may have...
Project->Debug->Authenticate seleted for delete?
Thanks,
Bob
Just right click on the file which you want to delete in the project explorer window and there you can see the "delete" option to delete the file.
--
Thanks & regards,
Jagadish.
Jagadish, Again thanks for the reply.
However this does not address the root question. I know how to delete files and have deleted many files trying to clean out the references to CANx bus calls.
There must be some other action required to remove the CAN references in a project.
Bob
Hi Bob,
The CAN driver files can be removed as i mentioned but the calling of CAN functions in other files should need to verify manually only and HALCoGen will not remove all the calling references of the CAN API's. You should need to verify where the API's of CAN calling and should need to remove them manually.
You can do one more thing, that is once you delete the CAN driver files right, if you build the project you will get the CAN errors for API's calling as there is no definitions. So, now you can manually identify those API's and can remove them.
--
Thanks & regards,
Jagadish.
Your latested reply matches my efforts better. I removed all references to CAN by doing a grep on the files in linux. The search commands using windows are not as efficient in finding a word in project files.
so "grep -r can * " form top level in linux does this.
This looks in all project files which are not binary and should include APIs.
I also looked for CAN files with "find ./ -name can" and deleted all the *.h related can files.
When I was still seeing errors they were related to gmake. It seems there are some files someplace used to generate the project makefile which are still in place.
Finding an API issue may be more difficult. I am not sure what to look for. I think these will be binary files and may not be part of my project?
It seems making changes in HalCoGen and applying them back into your project is a painful process. Having to work with Halcogen in Windows and then work in Code Composer Studio in both Windows and Linux is also a slow process.
Thanks for your reply.
Bob
I managed to solve the issue of remove an unwanted module by using GREP in linux and then deleting files and references to the module. This included the HCG file references. I have to rebuild a few times to clean the module out of the gmake file builder.
Bob