PDL for FM0+  Version1.0
Peripheral Driverl Library for FM0+
Main Flash

Provided functions of Main Flash operation:

Attention:
Before using the Main Flash operation APIs, please make sure the code is operated in RAM area. In the IAR environment, the key word "__ramfunc" makes sure that the code is implemented from RAM. In the Keil environment, user has to place the code to RAM area manually.
  • Right click flash.c
  • [Options for flash.c]->[code/const]->select a RAM area

MFlash_ChipErase() can erase whole chip space of Main Flash, whether CR data remains after chip erase depends on the parameter MFlash_ChipErase::bCrRemain.

MFlash_SectorErase() can erase one selected sector.

MFlash_Write() writes data into Flash area with half-word align.