MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Guide de l'utilisateur Page 209

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 575
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 208
Preventing Memory Corruption When You Export C oefficients to Processor Memory
Preventing Memor y Corruption When You Export
Coefficients to
Processor Memor y
In this section...
“Allocating Sufcient or Extra Memory for Filter Coefcients” on page 5-15
Example: UsingtheExportedHeaderFiletoAllocateExtraProcessor
Memory” on page 5-15
“Replacing Existing Coefcients in Memory w ith Updated Coef cients”
on page 5-16
“Example: Changing Filter Coefcients Stored on Your Processor” on page
5-17
Allocating Su
fficient or Extra Memory for Filter
Coefficient
s
You can alloc
ate extra memory by editing the generated ANSI C header le.
You can then l
oad the associated program le into your pro c esso r as described
in “Example:
Using the E xported Header File to Allocate Extra Process or
Memory” on p
age 5-15. Extra memory lets you chan g e lter coefcients and
overwrite e
xisting coef cients stored in processor memory more easily.
To prev ent p
roblems when you update lter coefcients in a project, , such as
writing coe
fcients to unintended memory locations, use the
C header file
export mod
e option in FDATool to update lter coefcients in your program.
Example: U
sing the Exported Header File to Allocate
Extra Proc
essor Memory
You can edi
t the generated h eader le so the linked program le all ocates
extra pro
cessor memory. By allocating extra memory, you avoid the problem
of insuf
cient m emory when you export new coefcients directly to allocated
memory.
For examp
le, changing the following command in the header le:
const real64_T NUM[47] = {...}
5-15
Vue de la page 208
1 2 ... 204 205 206 207 208 209 210 211 212 213 214 ... 574 575

Commentaires sur ces manuels

Pas de commentaire