Other Parts Discussed in Thread: MSP430FR5969
Hi Experts
My customer had the following initial question:
I have other questions about storing the constants in the section “INFOA” of FRAM.
- Which area of FRAM can we use for storing the constants?
- Can we use section “INFOA” for that purpose? If so and how? If not where we can store them and how?
I responded with these e2e thread links which looked promising:
It doesn't sound like he has it working yet, his latest comments and questions are as follows:
I read through the examples of the link, I tried something in which closed to my evaluation board’s model “MSP430FR5969” but no success.
Below is my really simple code:
////////////
#include <msp430.h>
#include <string.h>
#include <stdint.h>
#include <stdio.h>
#include "driverlib.h"
uint8_t val = 0x0;
#pragma PERSISTENT(a)
#pragma LOCATION(a,0x1980)
unsigned char a = 0x25;
int main(void) {
WDT_A_hold(WDT_A_BASE);
val = 0x55;
a = val;
printf("val =0x%x\n", val);
printf(" a =0x%x\n", a);
return (0);
}
////////////
The output from the example is
val =0x55
a =0x25
///
I expected to see the output:
val =0x55
a =0x55
Can someone provide recommended code to get him going?
Thanks!
Jim B