Save data in Flash of STM32 through Code 1, Accessing same data with Code 2
Hi,
I am working on a project that store the Configuration data of one device, It needs to be stored in specific section
static unsigned char myBuffer[4] __attribute__((section (".m_data_20000000"))) { 11, 22, 33, 44};with this command I'm able to store it in Program-1
linker script of program-1
.m_data_20000000 :
{
. = ALIGN(4);
KEEP (*(.m_data_20000000*))
. = ALIGN(4);
} >FLASH
I have tried NOLOAD NOINIT it is not working...........what changes need to do in program-2
But now I want the stored myBuffer[4] data from Flash of stm32 which is stored previously by program-1, without erasing I want access of myBuffer[4] with program-2?
What changes I need to do in IAR and STM32Cube IDE for telling them not erase that section, I want access, what type of variable I need to declare in program-2 it is pointer or extern..........
Please Help me....
