Echelon Neuron C Manuel d'utilisateur Page 199

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 268
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 198
Neuron C Programmer’s Guide 187
The flash memory that is used for the EECODE data is erased once during the
application load process. If present, the alternate Neuron firmware image is not
erased during this step. Flash memories typically have an endurance rating of
10 000 erase/program cycles – this number translates directly to the number of
application load cycles.
The Series 5000 chip can operate at any system clock speed when using flash
memory.
The eeprom_memcpy( ) Function
You can write EEPROM memory, as well as flash memory, by direct assignment,
including structure-to-structure assignment. In these cases, the compiler
recognizes that the target variable is in EEPROM memory, and uses the
appropriate firmware function to write the memory properly, with the correct
delays, hardware interface sequences, and so on
.
However, when writing to EEPROM through a pointer, the compiler cannot track
what type of memory the pointer points to. Thus, addresses of EEPROM
variables are automatically typed by the compiler as 'const *', to prohibit use of
the pointer for writing:
eeprom int x;
void y() {
const int* pointer;
pointer = &x; // '&x' is 'const int *'
}
The compiler normally prevents removing the const attribute from any pointer so
typed. This is prevented for both implicit and explicit cast operations. An
implicit cast occurs when there is an assignment of a value to a variable of
different type, or when there is an actual parameter passed to a function whose
formal parameter is a different type, as illustrated in the following example:
eeprom int x;
int *p;
void f (int *p);
void y() {
p = &x; // implicit cast, compiler error
f(&x); // another erroneous implicit cast
p = (int *)&x; // explicit cast, also error
}
This behavior of the Neuron C compiler is stricter than the behavior specified by
ANSI C. However, if you specify the #pragma relaxed_casting_on directive, the
compiler only generates a warning message for each such implicit or explicit cast.
You can use the #pragma warnings_off or #pragma disable_warning directive to
further suppress the warning messages. You can use the corresponding
warnings_on (or enable_warning) and relaxed_casting_off directives later in the
program to restore the default behavior of the compiler for the remainder of the
program.
Use of this feature is dangerous, because you can circumvent the compiler’s
checking and attempt a spurious write (that is, a write without knowledge of the
firmware) to EEPROM or flash memory. The eeprom_memcpy( ) function is
Vue de la page 198
1 2 ... 194 195 196 197 198 199 200 201 202 203 204 ... 267 268

Commentaires sur ces manuels

Pas de commentaire

AEG Electrolux FAVORIT G340 manuels

Manuels d'utilisation et guides de l'utilisateur pour Lave-vaisselle AEG Electrolux FAVORIT G340.
Nous fournissons des manuels en pdf 1 AEG Electrolux FAVORIT G340 à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Lave-vaisselle AEG Electrolux

Modèles Type de document
F35085VI Manuel de l'utilisateur   Aeg-Electrolux F35085VI User Manual, 48 pages
FPOWER Manuel de l'utilisateur   Aeg-Electrolux FPOWER Handleiding [el] , 44 pages
F86070VI Manuel de l'utilisateur   Aeg-Electrolux F86070VI User Manual, 48 pages
FAAAUTO Manuel de l'utilisateur     Aeg-Electrolux FAAAUTO Uživatelský manuál [es] , 80 pages
F54052VI0 Manuel de l'utilisateur   Aeg-Electrolux F54052VI0 User Manual [en] , 24 pages
F85460VI Manuel de l'utilisateur   Aeg-Electrolux F85460VI User Manual [fr] , 48 pages
F98010IMM Manuel de l'utilisateur   Aeg-Electrolux F98010IMM Manuel utilisateur [en] [es] [fr] , 48 pages
F60870 Manuel de l'utilisateur   Aeg-Electrolux F60870 Uživatelský manuál, 48 pages
F50870M Manuel de l'utilisateur   Aeg-Electrolux F50870M User Manual, 48 pages
F88090IM Manuel de l'utilisateur   Aeg-Electrolux F88090IM Používateľská príručka, 48 pages
F55210S0 Manuel de l'utilisateur   Aeg-Electrolux F55210S0 User Manual, 24 pages
F44860S Manuel de l'utilisateur   Aeg-Electrolux F44860S User Manual, 48 pages
FPERFORMIW Manuel de l'utilisateur   Aeg-Electrolux FPERFORMIM User Manual, 48 pages
FAVG330 Manuel de l'utilisateur   Aeg-Electrolux FAVG330 Kullanım kılavuzu [hu] , 40 pages
FAAAUTO Manuel de l'utilisateur   Aeg-Electrolux FAAAUTO Instrukcja obsługi [fr] [nl] , 44 pages
FAV45250VI Manuel de l'utilisateur   Aeg-Electrolux FAV45250VI User Manual, 36 pages
F65080VIL Manuel de l'utilisateur   Aeg-Electrolux F65080VIL User Manual, 52 pages
FPROTECT-N Manuel de l'utilisateur    Aeg-Electrolux FPROTECT-N Korisnički priručnik, 40 pages
F44860 Manuel de l'utilisateur   Aeg-Electrolux F44860 Instrukcja obsługi, 40 pages
F34032VI0 Manuel de l'utilisateur   Aeg-Electrolux F34032VI0 User Manual, 24 pages