Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
ota在线升级
SFUD
外部flash
关于F1使用通用BOOT+片外FLASH升级SFUD初始化失败的问题
发布于 2021-03-20 14:21:34 浏览:1726
订阅该版
使用SPI3具体IO为PB2(片选),PB3,PB4,PB5。 ``` [SFUD]Find a Winbond flash chip. Size is 8388608 bytes. [SFUD]spi flash device is initialize success. [SFUD]Find a Winbond flash chip. Size is 8388608 bytes. [SFUD]spi flash device is initialize success. ________ ________ |___ /\ \ / /___ / / / \ \_/ / / / / / \ / / / / /__ | | / /__ /_____| |_| /_____| Powered by RT-Thread. V0.9.2 build Mar 18 2021 [D/FAL] (fal_flash_init:63) Flash device | onchip_flash | addr: 0x08000000 | len: 0x00080000 | blk_size: 0x00000800 |initialized finish. [D/FAL] (fal_flash_init:63) Flash device | nor_flash | addr: 0x00000000 | len: 0x00800000 | blk_size: 0x00001000 |initialized finish. [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | app | onchip_flash | 0x00010000 | 0x00070000 | [I/FAL] | download | nor_flash | 0x00000000 | 0x00080000 | [I/FAL] | factory | nor_flash | 0x00080000 | 0x00080000 | [I/FAL] ============================================================= [I/FAL] RT-Thread Flash Abstraction Layer (V0.4.0) initialize success. [I/FAL] System initialization successful. [I]RT-Thread OTA package(V0.2.1) initialize success. [E]Get firmware header occur CRC32(calc.crc: 7b93c5c8 != hdr.info_crc32: ffffffff) error on 'download' partition! [E]Get OTA download partition firmware header failed! [E]Get firmware header occur CRC32(calc.crc: 7b93c5c8 != hdr.info_crc32: ffffffff) error on 'app' partition! [I]Begin to execute the program on app partition. [I/FAL] Find user firmware at app partition 0x08010000 successfully. [I/FAL] Bootloader jumps to user firmware now. [D/drv.spi] spi3 bus init done \ | / - RT - Thread Operating System / | \ 4.0.2 build Mar 20 2021 2006 - 2019 Copyright by rt-thread team [D/drv.spi] spi30 attach to spi3 done [D/drv.spi] sys freq: 64000000, pclk2 freq: 64000000, SPI limiting freq: 5000000, BaudRatePrescaler: 24 [D/drv.spi] spi3 init done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 20002578, recvbuf: 0, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 2000257C, length: 3 [D/drv.spi] spi3 transfer done [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud.c:862) The flash device manufacturer ID is 0xEF, memory type ID is 0x40, capacity ID is 0x17. [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 20002500, recvbuf: 0, length: 5 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 20002534, length: 8 [D/drv.spi] spi3 transfer done [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:132) Check SFDP header is OK. The reversion is V1.5, NPN is 0. [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 20002500, recvbuf: 0, length: 5 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 20002534, length: 8 [D/drv.spi] spi3 transfer done [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:175) 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. [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 20002500, recvbuf: 0, length: 5 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 20002534, length: 36 [D/drv.spi] spi3 transfer done [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:203) JEDEC basic flash parameter table info: [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:204) MSB-LSB 3 2 1 0 [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0001] 0xFF 0xF9 0x20 0xE5 [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0002] 0x03 0xFF 0xFF 0xFF [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0003] 0x6B 0x08 0xEB 0x44 [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0004] 0xBB 0x42 0x3B 0x08 [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0005] 0xFF 0xFF 0xFF 0xFE [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0006] 0x00 0x00 0xFF 0xFF [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0007] 0xEB 0x40 0xFF 0xFF [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0008] 0x52 0x0F 0x20 0x0C [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:207) [0009] 0x00 0x00 0xD8 0x10 [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:215) 4 KB Erase is supported throughout the device. Command is 0x20. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:234) Write granularity is 64 bytes or larger. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:245) Target flash status register is non-volatile. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:271) 3-Byte only addressing. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:305) Capacity is 8388608 Bytes. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:312) Flash device supports 4KB block erase. Command is 0x20. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:312) Flash device supports 32KB block erase. Command is 0x52. [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud_sfdp.c:312) Flash device supports 64KB block erase. Command is 0xD8. [SFUD] Find a Winbond flash chip. Size is 8388608 bytes. [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 2000257C, recvbuf: 0, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 2000254F, recvbuf: 0, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 2000255F, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 2000257D, recvbuf: 0, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 2000254F, recvbuf: 0, length: 1 [D/drv.spi] spi3 transfer done [D/drv.spi] spi3 transfer prepare and start [D/drv.spi] spi3 sendbuf: 0, recvbuf: 2000255F, length: 1 [D/drv.spi] spi3 transfer done [SFUD] (../rt-thread/components/drivers/spi/sfud/src/sfud.c:840) Flash device reset success. [SFUD] norflash0 flash device is initialize success. [SFUD] Probe SPI flash norflash0 by SPI device spi30 success. rt_sfud_flash_probe norflash0 spi30 success !!! (device_table[i]->ops.read) has assert failed at fal_flash_init. ```
查看更多
flashman2002
2021-03-20
这家伙很懒,什么也没写!
请问你单步跟踪了吗?出问题在什么具体位置?源代码在哪里?
1
个回答
默认排序
按发布时间排序
撰写答案
登录
注册新账号
关注者
0
被浏览
1.7k
关于作者
FromUnknown
这家伙很懒,什么也没写!
提问
1
回答
0
被采纳
0
关注TA
发私信
相关问题
1
【分享】如何使用 SFUD 库来操作 SPI Flash 设备
2
SFUD怎么使用
3
请教大家一下关于 SFUD 的的问题
4
移植sfud
5
使用SFUD操作FLASH
6
env使用easyflash不是3.2.4版本,而且没有type插件?
7
新增了W25X32设备成功,无法格式化
8
easyflash随着数据存储量增加,耗费时间加长
9
关于SFDP的问题
10
spi nand flash 能使用SFUD驱动吗
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
五分钟玩转RT-Thread新社区
6
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
简单两步配置RTT源码阅读环境 vsc+clangd
2
恩智浦[FRDM-MCXN947]初探 之 ADC与DAC
3
LVGL使用字库IC芯片显示中文
4
基于STM32H750和Rt-Thread的CANFD通信实现的记录(一)
5
freemodbus主机在freertos的适配,参考rtthread例程
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
USB
DMA
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
FAL
rt-smart
ESP8266
I2C_IIC
UART
WIZnet_W5500
ota在线升级
PWM
cubemx
freemodbus
flash
packages_软件包
BSP
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
中断
编译报错
Debug
SFUD
msh
rt_mq_消息队列_msg_queue
keil_MDK
ulog
MicroPython
C++_cpp
本月问答贡献
出出啊
1517
个答案
342
次被采纳
小小李sunny
1443
个答案
289
次被采纳
张世争
805
个答案
174
次被采纳
crystal266
547
个答案
161
次被采纳
whj467467222
1222
个答案
148
次被采纳
本月文章贡献
出出啊
1
篇文章
4
次点赞
小小李sunny
1
篇文章
1
次点赞
张世争
1
篇文章
1
次点赞
crystal266
2
篇文章
2
次点赞
whj467467222
2
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部