Hi,
The internal flash can be read like memory access directly, but need a driver and write sequency for write.
For example:
Firstly, define a place in flash to store the data:
/* put the data to the flash */
#pragma location = 0x0001f800
const XXX_configs saved_configs;/* this variable is stored in flash */
Then this parameter can be read directly from flash address 0x0001f800.
Please note that it is better to align the address to flash sector (normally 2K or 4K).
Secondly, use flash write driver to write your parameters to saved_configs.
...
FlashEraseSector(&saved_configs, ...);
FlashProgram(&saved_configs, ...);
...
You can refer to flash_demo under demo for reference.
Thanks!
Best regards
Terry