When running a simulation with 'measure task stack usage' setting in SIL mode compilation errors stop the SIL simulation, how can I fix it?

6 vues (au cours des 30 derniers jours)
When running a simulation with 'measure task stack usage' setting in SIL mode compilation errors stop the SIL simulation, I am using MinGW compiler and following is the error message.
D:/unitlevelanalysis/VehModMngt/Source/CodeGen/VehModMngt_ac_autosar_rtw/coderassumptions/lib/VehModMngt_ac_ca.lib -Wl,--end-group -lws2_32 xil_interface.obj:xil_interface.c:(.text+0xc1): undefined reference to `xilProfilingTimerFreeze' xil_interface.obj:xil_interface.c:(.text+0xf3): undefined reference to `xilProfilingTimerUnFreeze' xil_interface.obj:xil_interface.c:(.text+0x11e): undefined reference to `xilProfilingTimerFreeze' xil_interface.obj:xil_interface.c:(.text+0x150): undefined reference to `xilProfilingTimerUnFreeze' collect2.exe: error: ld returned 1 exit status gmake: *** [VehModMngt_ac.exe] Error 1 D:\unitlevelanalysis\VehModMngt\Source\CodeGen\VehModMngt_ac_autosar_rtw\sil>echo The make command returned an error of 2 The make command returned an error of 2 D:\unitlevelanalysis\VehModMngt\Source\CodeGen\VehModMngt_ac_autosar_rtw\sil>exit /B 1

Réponses (1)

Rasmita
Rasmita le 12 Avr 2023
Hi Advait,
It is my understanding that, you are trying to simulate with ‘measure task stack usage’ in SIL mode and you are getting above mentioned compilation error in the ‘MinGW compiler.
The error message you're seeing is related to linker errors when trying to build the SIL executable with profiling enabled. It seems that the linker is not able to find the definitions for some functions related to profiling ('xilProfilingTimerFreeze', 'xilProfilingTimerUnFreeze') that are included in the 'xil_interface.obj' object file.
One possible solution could be to ensure that you are linking against the correct libraries that define these functions. You may also need to check that the libraries are correctly installed and their paths are included in the linker search path. Additionally, make sure that the required header files are included in the build.
For more information, please refer to the below documentation links:
Hope this helps!
Regards,
Rasmita

Catégories

En savoir plus sur Test Model Components dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by