Tool/software: TI-RTOS
Hi,
I am working with the TM4C1294NCPDT EVM TI RTOS controller, I can find functions for flash memory operations in flash.c file,
FlashUserSet(userreg0, userreg1);
FlashUserGet(&userreg0, &userreg1);
I want to write and read the flash user registers. the following is my code:
int main()
{
uint32_t value1 = 12345678;
uint32_t value2 = 12345678;
FlashUserSet(value1 , value2);
System_printf("flash variables are %d %d\n", value1, value2);
System_flush();
FlashUserGet(&value1 , &value2);
System_printf("flash variables are %d %d\n", value1, value2);
System_flush();
}
The above prints:
flash variables are 12345678 12345678
flash variables are 0 0
My question:
1. why the function is not writing the 32bit data to the flash user register?
since its not writing the data, when I read it, its giving value as 0.
2.suggest me any other way to access flash memory and read back the data.