Jim McPherson

Define a value in particular address in RAM but it needs to be in the .bss list

Discussion created by Jim McPherson on Apr 13, 2007
Latest reply on Apr 23, 2007 by CrasyCat
I need to define a value in RAM. This value is uninitialized and needs to be in the .bss list  (battery backed up). Using  the following syntax it is alway intialized,,,


// LCF file

   bootSec  (RWX) : ORIGIN = 0x20007FF0,  LENGTH = 0x00000008
.........

   .myData :
   {
      *(.myData)
   } > bootSec

// main.c  file

#pragma push
#pragma define_section myData ".myData" far_absolute RW
#pragma pop
__declspec(myData) long flash_process;

///////////////////////

I need it to be defined in the .bss list  at the particular ram location 0x20007FF0

Thank you in advance..

 

Outcomes