pflash_c40#
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: Total Program Flash Size: xx KB, Hex: (xx) Program Flash Sector Size: xx B, hex: (xx) Erase a sector of flash Program a buffer to a sector of flash Successfully Programmed and Verified Location xx -> xx
End of PFLASH example
Supported Boards#
FRDM-MCXE31B
Hardware requirements
Type-C USB cable
FRDM-MCXE31B board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
FRDM-MCXE32B
Hardware requirements
Type-C USB cable
FRDM-MCXE32B board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.