Yilin Sun
6baf4427ce
Signed-off-by: Yilin Sun <imi415@imi.moe> |
||
---|---|---|
.. | ||
armgcc | ||
app.h | ||
board.c | ||
board.h | ||
clock_config.c | ||
clock_config.h | ||
dcd.c | ||
dcd.h | ||
evkbimxrt1050_sdram_init.jlinkscript | ||
flash_component_nor_v3_14.xml | ||
nor_flash.c | ||
nor_flash_ops.c | ||
pin_mux.c | ||
pin_mux.h | ||
readme.md |
readme.md
Overview
The nor flash demo application demonstrates the use of nor flash component to erase, program, and read an external flash device.
SDK version
- Version: 2.15.000
Toolchain supported
- IAR embedded Workbench 9.40.1
- Keil MDK 5.38.1
- GCC ARM Embedded 12.2
- MCUXpresso 11.8.0
Hardware requirements
- Mini/micro USB cable
- EVKB-IMXRT1050 board
- Personal Computer
Board settings
The board enables hyper flash (U19) by default. To enable QSPI flash (U33), some hardware rework is needed: Mount R153,R154,R155,R156,R157,R158 and DNP R356,R361,R362,R363,R364,R365,R366.
Prepare the Demo
- Connect a USB cable between the host PC and the OpenSDA 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 hello world 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 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!***