Hey,
I'm trying to store some data in INFOB area of flash. I've done this before in IAR but when I try and tell a variable it's location is infoB CCE gives me a "badly formed pragma" error. I right clicked on the file and under language options deselected "Treat C files as C++ files" and it worked. Any idea why? Here is my code (it is in a file, flash.c).
Why would this give an error until i deselect the treat c files as c++ option?
typedef struct {
uint32_t serial;
uint8_t lSec;
uint8_t lMin;
uint8_t lHour;
uint8_t lDay;
uint8_t lMonth;
uint8_t lYear;
} params_t;
static params_t _current_params; // copy in ram
#pragma DATA_SECTION (_flash_params, ".infoB")
static params_t _flash_params; // copy in flash