Forum Discussion
Altera_Forum
Honored Contributor
19 years agoGlobal pointer _gp
Dear Forum I'm trying to allocate some data in a new section to avoid having them zeroed during a boot. I use __attribute__ ((section (".nv_sram"))) after the declaration of the variabl...
Altera_Forum
Honored Contributor
19 years agoHi Jskjoet,
I have a section of NVR like yours and use the __attribute__ to put stuff into it like this: unsigned short fred __attribute__ .... If I then try to use fred from another file with: extern unsigned short fred; then I get the same "can't reach...". You have to tell the compiler that the variable is in the NVR section, which may be far away: extern unsigned short fred __attribute__ .... Banx.