flash_k4

Overview

The pflash example shows how to use flash driver to operate program flash:

Running the demo

When the example runs successfully, you can see the similar information from the terminal as below.

PFLASH example Start

PFlash Information: Program Flash block bass address:: xx, Hex: (xx) Program Flash block Size: xx KB, hex: (xx) Program Flash block Sector Size: xx KB, Hex: (xx) PProgram Flash block count Size: xx Total Program Flash Size: xx KB, hex: (xx)

Erase a sector of flash Successfully Erased Sector xx -> xx

Program a buffer to a phrase of flash Successfully Programmed and Verified Location xx -> xx

End of PFLASH example

Supported Boards