5.4.9
SPI Flash
COMX-P2020 has an on-module SPI socket with 4MB SPI FLASH M25P32-VMW6
installed. It can be used to store U-boot and environment arguments. The content of SPI
Flash is list as below:
Figure 5-1 SPI Flash Content
The U-boot provides the standard command "sf" to check, read, erase and write SPI Flash.
This part is not included in this document.
=> help sf
sf - SPI flash sub-system
Usage:
sf probe [bus:]cs [hz] [mode]
sf read addr offset len
sf write addr offset len
sf erase offset len
COMX-P2020 BSP User Guide (6806800L84C)
- init flash device on given SPI bus
and chip select
- read `len' bytes starting at
`offset' to memory at `addr'
- write `len' bytes from memory
at `addr' to flash at `offset'
- erase `len' bytes from `offset'
U-boot Deployment
61
Need help?
Do you have a question about the COMX-P2020 BSP and is the answer not in the manual?