Editing target support files and version control
Show older comments
I will use a specific example to ask my question.
Within the support files for TI C2000 there is a file, MW_c28xMMC.c. C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\target\supportpackages\tic2000\src\MW_c28xMMC.c
This file seems to be automatically included in the generated code when SD card support is selected.
Within that file there is a function, get_fattime(). That function is just a placeholder that hardcodes the time and date info in case you don't have an RTC. If you do have an RTC get_fattime should be replaced with a function that uses the available time and date info.
This means I need to modify the get_fattime function in MW_c28xMMC.c
MW_c28xMMC.c which is not explicitly part of my project. In this situation I have no choice but to modify a file that is part of the MATLAB support for my target processor.
The problem with this is putting my code under version control. The files that come with MATLAB or the support package for my target are not part of my project and therfore not under version control. If I have to modify them then I'm the only one who has those changes.
Now what?
Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!