I need to save some samples in flash memory. I don't know how to proceed.
I tried to change the content of a pointer refferenced to 0x14000000, but the microcontroller enters in a hard fault. Also tried doing this operation with the function located in RAM. I understand that is not a "real" address and the flash content can not be accessed doing this, it's correct?
I tried moving the whole application to the RAM memory, but the microcontroller get frozen every time I execute the app. I think that the code is not properly copied to RAM. I wanted that for write or read from flash at the same time I'm executing code at the mcu, also for changing mem mode to command mode.
Somebody knows an easy way to save information in Flash memory?