小学生
最后登录1970-1-1
在线时间 小时
注册时间2023-5-11
|
一,项目背景,不用再为更换flash,为驱动发愁。
移植效果如下:
[SFUD](../src/SFUD/sfud.c:116) Start initialize Serial Flash Universal Driver(SFUD) V1.1.0.
[SFUD](../src/SFUD/sfud.c:117) You can get the latest version on https://github.com/armink/SFUD .
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[SFUD](../src/SFUD/sfud.c:870) The flash device manufacturer ID is 0xEF, memory type ID is 0x40, capacity ID is 0x16.
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[SFUD](../src/SFUD/sfud_sfdp.c:131) Check SFDP header is OK. The reversion is V1.5, NPN is 0.
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[SFUD](../src/SFUD/sfud_sfdp.c:173) Check JEDEC basic flash parameter header is OK. The table id is 0, reversion is V1.5, length is 16, parameter table pointer is 0x000080.
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[SFUD](../src/SFUD/sfud_sfdp.c:203) JEDEC basic flash parameter table info:
[SFUD](../src/SFUD/sfud_sfdp.c:204) MSB-LSB 3 2 1 0
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0001] 0xFF 0xF9 0x20 0xE5
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0002] 0x01 0xFF 0xFF 0xFF
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0003] 0x6B 0x08 0xEB 0x44
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0004] 0xBB 0x42 0x3B 0x08
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0005] 0xFF 0xFF 0xFF 0xFE
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0006] 0x00 0x00 0xFF 0xFF
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0007] 0xEB 0x40 0xFF 0xFF
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0008] 0x52 0x0F 0x20 0x0C
[SFUD](../src/SFUD/sfud_sfdp.c:206) [0009] 0x00 0x00 0xD8 0x10
[SFUD](../src/SFUD/sfud_sfdp.c:215) 4 KB Erase is supported throughout the device. Command is 0x20.
[SFUD](../src/SFUD/sfud_sfdp.c:234) Write granularity is 64 bytes or larger.
[SFUD](../src/SFUD/sfud_sfdp.c:245) Target flash status register is non-volatile.
[SFUD](../src/SFUD/sfud_sfdp.c:271) 3-Byte only addressing.
[SFUD](../src/SFUD/sfud_sfdp.c:305) Capacity is 4194304 Bytes.
[SFUD](../src/SFUD/sfud_sfdp.c:311) Flash device supports 4KB block erase. Command is 0x20.
[SFUD](../src/SFUD/sfud_sfdp.c:311) Flash device supports 32KB block erase. Command is 0x52.
[SFUD](../src/SFUD/sfud_sfdp.c:311) Flash device supports 64KB block erase. Command is 0xD8.
[SFUD]Found a Winbond flash chip. Size is 4194304 bytes.
[../src/SFUD/sfud_port.c][Line: 80][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 214][qspi_send_then_recv]
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[../src/SFUD/sfud_port.c][Line: 80][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 214][qspi_send_then_recv]
[../src/SFUD/sfud_port.c][Line: 74][spi_write_read]
[../src/SFUD/sfud_port.c][Line: 197][qspi_send_then_recv]
[SFUD](../src/SFUD/sfud.c:849) Flash device reset success.
[SFUD]W25Q32BV flash device initialized successfully.
|
|