野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 448|回复: 0

【野火】瑞萨RA MCU创意氛围赛+移植SFUD

[复制链接]
发表于 2023-8-21 11:23:38 | 显示全部楼层 |阅读模式

一,项目背景,不用再为更换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.

SFUD.zip

5.45 MB, 下载次数: 2

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-4 08:14 , Processed in 0.039421 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表