- Go to the folder C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000\registry\thirdpartytools.
- Delete or rename the file 'thirdpartytools_win64.xml' (say,xyz.xml ) in the above folder.
- Now open MATLAB and run the command 'targetupdater'. A targetupdate window will appear.
- Update the required support package using the targetupdater window.
How to capture code coverage for c2000 project in PiL mode?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
I am tring to capture code coverage using c2000 uC in PiL mode. I am able to run model in PiL mode using C2000 package. The model has controller and plant model. Controller is model referenced and configured to run in PiL mode. When I run the model with code coverage setiing turned on, in PiL mode model simulation model gets stuck after "Evaluating PostCodeGenCommand specified in the model". Thereafter no progress happens. When I turn off the code coverage seetings then model gets simulated as expected.
### Code for the model reference code generation target for model XXXX is up to date because no functional changes were found in the referenced model.
### Evaluating PostCodeGenCommand specified in the model
please suggest what to do to get coverage data in PiL mode for c2000 project.
P.S: In normal mode (MiL) I get code coverage.
Thanks,
Somdut
Additinal info:
Warning: Removed 'C:\Users\XXX\Code\slprj\ert\XXX\instrumented' from the MATLAB path for this MATLAB session. See 'doc path' for more information.
Warning: Could not detect front-end options for file "C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000_base\crl\mw_C28x_addsubasm_s32.asm". Proceeding with the default SIL settings...
Warning: File "C:\ProgramData\MATLAB\SupportPackages\R2019a\toolbox\target\supportpackages\tic2000_base\crl\mw_C28x_addsubasm_s32.asm" not instrumented for coverage because of previous error
Warning: Could not detect front-end options for file "C:/Users/XXX/Code\slprj\ert\_sharedutils\rtGetInf.c". Proceeding with the default SIL settings...
0 Commenti
Risposte (1)
Sukrut Tamhankar
il 31 Dic 2020
Modificato: Sukrut Tamhankar
il 31 Dic 2020
This issue in Evaluating PostCodeGenCommand specified in the model is probably due to corrupted files in the 'thirdpartytools' folder or improper installation of the support packages.
The issue can be resolved by recreating the corrupted files, which can be done by following the below steps:
Please refer to the below documentation link for more information on code coverage for models in SIL/PIL mode:
Vedere anche
Categorie
Scopri di più su Verification in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!