Why do functions using global variables give incorrect results with Link for Code Composer Studio 1.3.1 (R14)?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
My functions which use global variables when run using my Hardware-in-the-Loop (HIL) give incorrect answers.
Akzeptierte Antwort
MathWorks Support Team
am 27 Jun. 2009
When functions in your project use global variables, the global variables must be initialized before performing hardware-in-the-loop (HIL) processing. Otherwise, the link returns incorrect results. To ensure that your global variables are initialized properly, verify that your CCS project is configured as follows:
a. Your project has function 'main' defined.
b. Your project links to an appropriate run-time support library, such as rts6400.lib.
c. Your project has the load-time or run-time autoinitialization linker option (-c or -cr option) set.
Using other configurations bypasses the proper initializations. Refer to the TI documentation on "Run-Time Initialization" for more information.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu System Composer finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!