Hi,
we want to store data inside the chip's flash. We have almost 800kB data to store and we want to use code block 3 of the internal flash. We tried to reserve some memory in ld script and successfully write with __attribute__((section(".myData"))) uint8_t ProgramFlashDataSave[]={0x1,0x2,0x3..}. However we want to save actual data in application level. when we save data in runtime in application if gives the below error;
MemManage: The processor attempted a load or store at a location that does not permit the operation.
Possible MemManage fault location: 0x00700000.
HardFault: A fault has been escalated to a hard fault.
The ld script additions;
MEMORY
{
int_datasave : ORIGIN = 0x00700000, LENGTH = 0x00000500
}
SECTIONS
{
.my_data :
{
*(.myData)
} > int_datasave
}
Can you help us for this? is it safe to write the code block 3 of the flash memory? ıs there any example?
We use RTD.