I tried to modify the demo code" frdmkl03z_driver_examples_flash_pflash". i coped the code from the main() to my code. It works fine to initialize the driver, read the data and even erase the sector. The problem is when it programmed the data in to the flash sector, a hard fault event happened. Any idea about this problem?
i couldn't run the demo code on my own development board.