Toggle navigation
首页
问答
文章
积分商城
专家
专区
更多专区...
文档中心
返回主站
搜索
提问
会员
中心
登录
注册
fota升级
http_ota
RT-FOTA文件升级成功却不能运行?
发布于 2024-06-07 11:43:02 浏览:380
订阅该版
[tocm] # 🔧硬件配置: STM32F407ZGT6 中移物联网 ML307A-DCLN 4G模块 # 🧾软件环境: #### BOOT程序 RT-Thread Studio [2.2.6] rt-thread [4.1.0] fal [系统组件] fastlz [v1.0.1] quicklz [v1.0.1] tinycrypt [latest] #### APP程序 RT-Thread Studio [2.2.6] rt-thread [4.0.3] at_device [latest] fal [v1.0.0] ota_downloader [latest] webclient [v2.2.0] # 🧷软件包配置: #### BOOT软件包配置   #### APP软件包配置 [APP软件包配置](https://club.rt-thread.org/ask/question/d290ec18cffcecbf.html "APP软件包配置")*[与此链接相同]* # 💡目前方案: BOOT和APP程序`fal_cfg.h`中都设置了这样的分区。 ```c /* flash device table */ #define FAL_FLASH_DEV_TABLE \ { \ &stm32_onchip_flash_16k, \ &stm32_onchip_flash_64k, \ &stm32_onchip_flash_128k, \ } /* ====================== Partition Configuration ========================== */ #ifdef FAL_PART_HAS_TABLE_CFG /* partition table */ #define FAL_PART_TABLE \ { \ {FAL_PART_MAGIC_WORD, "app", "onchip_flash_128k", 128*1*1024, 384*1024, 0}, \ {FAL_PART_MAGIC_WORD, "download", "onchip_flash_128k", 128*4*1024, 384*1024, 0}, \ } #endif /* FAL_PART_HAS_TABLE_CFG */ ``` APP程序`system_stm32f4xx.c`也更改了。 ```c /*-------------------------- ROM/RAM CONFIG BEGIN --------------------------*/ /* #define VECT_TAB_SRAM */ #define VECT_TAB_OFFSET 0x20000 /*!< Vector Table base offset field. This value must be a multiple of 0x200. */ ``` APP程序`link.lds`也更改了。  - 只下载BOOT程序,日志如下  - 先下载BOOT程序,再下载APP程序,日志如下  可以看到程序正常跳转。 - 然后进行HTTP_OTA程序升级日志如下    然后就停在这不动了。 # 🔎其他日志: 在固件打包时,也尝试了关闭加密和压缩,结果还是一样。  # ❓问题总结: 为什么BOOT可以正常跳转到APP,但是进行HTTP_OTA时,显示了升级成功,就是不能正常运行呢?
查看更多
2
个回答
默认排序
按发布时间排序
xiaorui
认证专家
2024-06-07
小睿手办 https://item.taobao.com/item.htm?id=674889867009
把整片FLASH读回来,然后对比下载和烧写是否正确。 - 如果不正确,下载和写入的问题。 - 如果正确,那就是新APP的问题。
Jack_____
2024-06-11
纸上得来终觉浅,绝知此事要躬行。
#### OTA升级时,下载到93%就报错是什么原因啊???   
撰写答案
登录
注册新账号
关注者
0
被浏览
380
关于作者
Jack_____
纸上得来终觉浅,绝知此事要躬行。
提问
13
回答
25
被采纳
5
关注TA
发私信
相关问题
1
http_ota 提示no memory
2
http_ota失败 可能是什么原因造成的
3
通过BootLoader升级固件失败,用的是stm32f407zgt6
4
使用http_ota时出错
5
http ota下载固件总是失败
6
esp8266 http ota下载到93%就停止
7
http ota 下载到90%多失败
8
esp8266 http_ota 内存不足问题
9
AT8266来进行HTTP OTA 失败
10
htto_ota 在源码里执行会导致线程崩溃
推荐文章
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
RT-thred的stm32h723对应bsp包CubeMX添加其他外设报错
2
RT-Thread中的time溢出问题,时间戳溢出,解决方法
3
ART-PI使用env驱动ETH网卡,pc和板子可以ping通
4
SystemView线程名字不显示
5
只用网页也能跑RT-Smart 无门槛腾讯Cloud studio + smart-build快速构建
热门标签
RT-Thread Studio
串口
Env
LWIP
SPI
AT
Bootloader
Hardfault
CAN总线
FinSH
ART-Pi
DMA
USB
文件系统
RT-Thread
SCons
RT-Thread Nano
线程
MQTT
STM32
RTC
rt-smart
FAL
I2C_IIC
UART
ESP8266
cubemx
WIZnet_W5500
ota在线升级
PWM
BSP
flash
freemodbus
packages_软件包
潘多拉开发板_Pandora
定时器
ADC
GD32
flashDB
socket
编译报错
中断
Debug
rt_mq_消息队列_msg_queue
keil_MDK
ulog
SFUD
msh
C++_cpp
MicroPython
本月问答贡献
RTT_逍遥
9
个答案
2
次被采纳
三世执戟
8
个答案
1
次被采纳
KunYi
8
个答案
1
次被采纳
winfeng
2
个答案
1
次被采纳
YZRD
2
个答案
1
次被采纳
本月文章贡献
catcatbing
2
篇文章
5
次点赞
swet123
1
篇文章
4
次点赞
Days
1
篇文章
4
次点赞
YZRD
1
篇文章
2
次点赞
阳光的掌控者
1
篇文章
1
次点赞
回到
顶部
发布
问题
分享
好友
手机
浏览
扫码手机浏览
投诉
建议
回到
底部