Hi all ,
I am using the cc2530 with 256k flash and zstack. I trying to reserve a 2k memory area
that will not be erased when you reflash new firmware in order to store some callibration
values. I am trying to create something like my own Info page that can also be written on runtime.
As my first attempt I tried to reserve some memory using the linker script (f8w2530.xcl) by reserving
a small area (12 bytes)
-D_BD_TEST_START=(_IMPLICIT_CERTIFICATE_ADDRESS_SPACE_START-0xC)
-D_BD_TEST_END=(_BD_TEST_START+0xB)
-Z(CODE)BD_TEST_ADDRESS_SPACE=_BD_TEST_START-_BD_TEST_END
and then initializing a variable in onboard.c
#pragma location="BD_TEST_ADDRESS_SPACE"
__no_init uint8 _bdtest[12];
#pragma required=_bdtest
This works but when I change the value at runtime and reflash new firmware
the content of my reserved area does not retain the value (it becomes 0xFF)
How is it possible to create a 2k block (like the info page) that is retained after
I erase the flash?
Is there a special area that I should put it in the linker script (Maybe below the info page) ?
thank you in advance,
georgios panagakis