flash_component_nor_lpspi#
Overview#
nor flash demo shows the use of nor flash component to erase, program, and read an external nor flash device.
Supported Boards#
FRDM-MCXW71
Hardware requirements
Type-C USB cable
FRDM-MCXW71 Board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
MCX-W71-EVK
Hardware requirements
Type-C USB cable
MCX-W71-EVK Board
Personal Computer
Board settings
Put a jumper on JP31
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
KW45B41Z-EVK
Hardware requirements
Mini/micro USB cable
KW45B41Z-EVK Board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
KW47-EVK
Hardware requirements
Type-C USB cable
KW47-EVK Board
Personal Computer
Board settings
Put a jumper on JP31
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
MCX-W72-EVK
Hardware requirements
Type-C USB cable
MCX-W72-EVK Board
Personal Computer
Board settings
Put a jumper on JP31
Prepare the Demo
Connect a USB cable between the host PC and the EVK board J14.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
MIMXRT1180-EVK
Hardware requirements
Micro USB cable
MIMXRT1180-EVK board
Personal Computer
Board settings
Remove R2152, R2155, R2153, R1342, R1343.
Prepare the Demo
Connect a USB cable between the host PC and the MCU-LINK USB port 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.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
KW47-LOC
Hardware requirements
Type-C USB cable
KW47-LOC Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
MCXW72-LOC
Hardware requirements
Type-C USB cable
MCXW72-LOC Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the LOC board J3.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
FRDM-MCXW72
Hardware requirements
Type-C USB cable
FRDM-MCXW72 Board
Personal Computer
Board settings
No special is needed.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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.
Note: To make the external NOR flash run under the maximum 24MHz, please update the value of the macro “BOARD_LPSPI_NOR_BAUDRATE” from 4000000U to 24000000U in the board.h.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
FRDM-KW43
Hardware requirements
Type-C USB cable
FRDM-KW43 Board
Personal Computer
Board settings
U30 and U12C affects the LPSPI1_SIN signal, causing it to remain at a low level. Note: Short JP6 to disable U30 before running this example.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
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.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
FRDM-MCXW70
Hardware requirements
Type-C USB cable
FRDM-MCXW70 Board
Personal Computer
Board settings
U30 and U12C affects the LPSPI1_SIN signal, causing it to remain at a low level. Note: Short JP6 to disable U30 before running this example.
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J28.
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.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash Page 1 Read/Write Success!***
***NOR Flash Page 2 Read/Write Success!***
***NOR Flash Page 3 Read/Write Success!***
***NOR Flash Page 4 Read/Write Success!***
***NOR Flash Page 5 Read/Write Success!***
***NOR Flash Page 6 Read/Write Success!***
***NOR Flash Page 7 Read/Write Success!***
***NOR Flash Page 8 Read/Write Success!***
***NOR Flash Page 9 Read/Write Success!***
***NOR Flash Page 10 Read/Write Success!***
***NOR Flash Page 11 Read/Write Success!***
***NOR Flash Page 12 Read/Write Success!***
***NOR Flash Page 13 Read/Write Success!***
***NOR Flash Page 14 Read/Write Success!***
***NOR Flash Page 15 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***
FRDM-MCXL255
Hardware requirements
Type-C USB cable
FRDM-MCXL255 board
Personal Computer
Board settings
Prepare the Demo
Connect a USB cable between the host PC and the FRDM board J10.
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.
Running the demo
The log below shows the output of the demo in the terminal window:
***NOR Flash Component Demo Start!***
***NOR Flash Erase Chip Start!***
***NOR Flash Page 0 Read/Write Success!***
***NOR Flash All Pages Read/Write Success!***