Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
OTA
Ymodem
通过Ymodem OTA失败
发布于 2025-08-27 17:34:26 浏览:118
订阅该版
大家好: 我根据[STM32通用bootloader升级](https://www.rt-thread.org/document/site/#/rt-thread-version/rt-thread-standard/application-note/system/rtboot/an0028-rtboot)文档进行操作,一切都很顺利,固件可以通过`bootloader`正常跳转到`V1.0.0`的固件运行。 但是我通过`TeraTerm`软件给`MCU`发送固件后,就不能正常跳转到`V2.0.0`执行了。 以下是生成`bootloader`的配置:  以下是升级过程中,`MCU`串口的日志: ``` __ ___ __ __ __ ___ |__) | __ |__) / \ / \ | | \ | |__) \__/ \__/ | 2006 - 2019 Copyright by rt-thread team 0.9.2 build Aug 26 2025 [D/FAL] (fal_flash_init:63) Flash device | onchip_flash | addr: 0x08000000 | len: 0x00040000 | blk_size: 0x00000800 |initialized finish. [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | app | onchip_flash | 0x00008000 | 0x00010000 | [I/FAL] | download | onchip_flash | 0x00018000 | 0x00010000 | [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: 62a20e61 != hdr.info_crc32: 61642067) error on 'download' partition! [E]Get OTA download partition firmware header failed! [E]Get firmware header occur CRC32(calc.crc: f1318097 != hdr.info_crc32: 6e776f64) error on 'app' partition! [I]Begin to execute the program on app partition. [I/FAL] Find user firmware at app partition 0x08008000 successfully. [I/FAL] Bootloader jumps to user firmware now. \ | / - RT - Thread Operating System / | \ 4.1.1 build Aug 27 2025 17:01:00 2006 - 2022 Copyright by RT-Thread team I/elog EasyLogger V2.0.0 is initialize success. I/elog You can get the latest version on https://github.com/armink/EasyLogger . [D/FAL] (fal_flash_init:47) Flash device | onchip_flash | addr: 0x08000000 | len: 0x00040000 | blk_size: 0x00000800 |initialized finish. [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | app | onchip_flash | 0x00008000 | 0x00010000 | [I/FAL] | download | onchip_flash | 0x00018000 | 0x00028000 | [I/FAL] ============================================================= [I/FAL] RT-Thread Flash Abstraction Layer initialize success. current Version: V1.0.0 msh > msh > msh >y ymodem_ota msh >ymodem_ota Save firmware on "download" partition with device "uart1". Warning: Ymodem has started! This operator will not recovery. Please select the ota firmware file and use Ymodem to send. CDownload firmware to flash success. System now will restart... __ ___ __ __ __ ___ |__) | __ |__) / \ / \ | | \ | |__) \__/ \__/ | 2006 - 2019 Copyright by rt-thread team 0.9.2 build Aug 26 2025 [D/FAL] (fal_flash_init:63) Flash device | onchip_flash | addr: 0x08000000 | len: 0x00040000 | blk_size: 0x00000800 |initialized finish. [I/FAL] ==================== FAL partition table ==================== [I/FAL] | name | flash_dev | offset | length | [I/FAL] ------------------------------------------------------------- [I/FAL] | app | onchip_flash | 0x00008000 | 0x00010000 | [I/FAL] | download | onchip_flash | 0x00018000 | 0x00010000 | [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: f1318097 != hdr.info_crc32: 6e776f64) error on 'app' partition! [I]Begin to execute the program on app partition. [I/FAL] Find user firmware at app partition 0x08008000 successfully. [I/FAL] Bootloader jumps to user firmware now. ``` 以下是`V2.0.0`固件打包的设置:  我已经尝试好多次了,但还是不行,不知道问题在哪里,请大佬们指教,谢谢! 还有就是想问一下:`固件打包器`里面的`固件分区名`和`固件版本`是随便设置吗,还是说需要怎么确定啊?
查看更多
1
个回答
默认排序
按发布时间排序
shadow3d
2025-08-27
这家伙很懒,什么也没写!
发现问题在哪里了,以上操作有两个问题: 1. 我生成的固件大小已经超过了我分配的app/download分区大小(64KB); 2. `固件打包器`里面的`固件分区名`必须设置成`app`才行;(但这个应该要怎么理解呢?什么情况下会设置成`download`吗?还是说只能设置成固件实际运行的分区名称?)
撰写答案
登录
注册新账号
关注者
0
被浏览
118
关于作者
shadow3d
这家伙很懒,什么也没写!
提问
9
回答
6
被采纳
0
关注TA
发私信
相关问题
1
Ymodem使用Xshell发送文件OTA的问题
2
qboot使用ymodem上传固件升级失败。
3
YModem传输问题
4
ymodem传输文件存在问题
5
ymodem发送文件只能发2k
6
求助 RT-Thread Studio 中 Ymodem 升级问题
7
YMODEM OTA 擦除download分区不完全
8
bug:stm32L4系列用官方的BootLoader通过ymodem升级失败
9
rtt lua 传输文件运行不了?
10
Ymodem收文件求助
推荐文章
1
RT-Thread应用项目汇总
2
玩转RT-Thread系列教程
3
国产MCU移植系列教程汇总,欢迎查看!
4
机器人操作系统 (ROS2) 和 RT-Thread 通信
5
【技术三千问】之《玩转ART-Pi》,看这篇就够了!干货汇总
6
五分钟玩转RT-Thread新社区
7
关于STM32H7开发板上使用SDIO接口驱动SD卡挂载文件系统的问题总结
8
STM32的“GPU”——DMA2D实例详解
9
RT-Thread隐藏的宝藏之completion
10
【ART-PI】RT-Thread 开启RTC 与 Alarm组件
最新文章
1
STM32H723使用ETH使用记录
2
【GD32F527I-EVAL运行RTThread】使用Agile Button 处理按键输入
3
th-thread 源码学习-中断系统
4
【GD32F527I-EVAL运行RTThread】GPIO外设使用
5
庐山派K230 基于RT-Smart实现FOC云台控制并封装成micropython库与物体自动跟踪系统
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
Bootloader
AT
Hardfault
ART-Pi
CAN总线
FinSH
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
FAL
rt-smart
RTC
cubemx
I2C_IIC
BSP
UART
WIZnet_W5500
PWM
ESP8266
ota在线升级
packages_软件包
GD32
flash
freemodbus
潘多拉开发板_Pandora
keil_MDK
编译报错
ADC
flashDB
rt_mq_消息队列_msg_queue
ulog
MicroPython
msh
socket
Debug
SFUD
中断
at_device
QEMU
本月问答贡献
出出啊
1532
个答案
346
次被采纳
小小李sunny
1444
个答案
290
次被采纳
张世争
822
个答案
180
次被采纳
crystal266
555
个答案
162
次被采纳
whj467467222
1222
个答案
149
次被采纳
本月文章贡献
super_gith
3
篇文章
3
次点赞
wdfk_prog
2
篇文章
19
次点赞
killer22
1
篇文章
3
次点赞
LoongYang
1
篇文章
3
次点赞
waner
1
篇文章
2
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部