Part Number: MSP430FR5989
Other Parts Discussed in Thread: CC1101
Hello there,
I'm trying to save test wrtng to FRAM by saving a dummy arry to FRAM in case if the power went off and send it through cc1101 radio. I used TI example code.
uint8_t __attribute__((persistent)) FRAM_buffer1[2]={0};
int main(void)
{
for(;;)
{
......
FRAM_buffer1[0] = 21 ; /* write to FRAM */
FRAM_buffer1[1] = 10 ; /*write to FRAM */
........
send what is in FRAM through the radio
}
return 0;
}
I got the follwing warning when I compiled the file (i'm uding GNU complier) :
variable 'FRAM_buffer1' was declared persistent and should be explicitly initialized [-Wattributes]
uint8_t __attribute__((persistent)) FRAM_buffer1[61]={0};
and did not recive 21 and 10 values. I recived a garbage values instead.
What did i do wrong ?

