关于sbl和sfw使用出现的问题

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

关于sbl和sfw使用出现的问题

3,163 次查看
944706426
Contributor III

sfw版本为 1.1.0

mcu: rt1052

1、在使用sfw时出现的文件缺失问题:

menuconfig配置如下:

944706426_0-1654567760142.png

生成mdk5工程后,编译出现错误

944706426_1-1654568090885.png

添加了这两个文件后解决

944706426_2-1654568195726.png

2、配合sbl 出现的问题:

1、根据这个文档配置了sbl,并用jlink下载到norflash,能够正常跑;

944706426_3-1654568919438.png

944706426_4-1654569009566.png

 

2、接着将sfw生成的bin文件 签名和添加头部生成版本不一样的app1和app2;

944706426_5-1654569118869.png

944706426_6-1654569459526.png

944706426_7-1654569635067.png

 

接着将app1烧录到norflash 0x100000的位置,并复位开发板跑程序,结果可以正常跳转到app1

944706426_8-1654569752429.png

 

3、将app2.bin改成newapp.bin,并放到u盘,然后将u盘插入,识别并且能够升级自动复位后跳转到了app2运行,如下面的打印信息

944706426_9-1654570049052.png

944706426_10-1654570080903.png

944706426_11-1654570155300.png

按道理此时应该算是app更新成功,以后bootloader应该会跳转到app2 运行 , 但是有一个问题,把开发板复位后打印下面的信息后直接就卡死,不打印app2信息了,技术人员看能不能分析一下是哪里的问题?

944706426_12-1654570513840.png

 

 

0 项奖励
回复
6 回复数

3,121 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
我这边没有少文件的现象,USB更新等我拿到转接口测试一下。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

3,141 次查看
jeremyzhou
NXP Employee
NXP Employee

非常感谢使用NXP产品,很高兴为你提供技术支持!
首先,缺两个文件的问题,我这边没有出现,其次,U-Disk boot我确实没有做过,因为手上没有USB转换接口,要不你先分享一下这个更新过程的打印结果,最后,你有修改过代码吗?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

3,137 次查看
944706426
Contributor III

1、menuconfig 不开启OTA from cloud,就会少那两个文件;

2、更新结果最后几张图片就是呀,更新完之后程序自动复位跳转到app2,现在问题就是我自己硬件复位后跳转不到app2;

3、程序没有改动;

0 项奖励
回复

3,097 次查看
jeremyzhou
NXP Employee
NXP Employee


Hi,
今天我在MIMXRT1050测试了一下U-disk OTA方式,缺两个文件的问题,我这边没有出现,这在之前就已经告诉你了,至于更新过程,也是成功的,而且在更新成功后,也可以直接运行更新后的工程,附件是测试记录。
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,426 次查看
944706426
Contributor III

您好,最近回来搞这个sbl和sfw。最终还是会出现上面的问题:用u盘将app1升级到app2后,程序是可以跳转到APP2,但是此时我再用开发板的硬件复位,程序没有跳转到app2或者app1,按道理此时应该跳转到app2才对,直接卡死,试了很多次一直有这个问题,用的是飞凌的OK1052开发板。有可能是哪些问题?

sbl的配置:

944706426_0-1677658993150.png

944706426_1-1677659041674.png944706426_3-1677659075622.png944706426_4-1677659108153.png

 

sfw的配置:

944706426_5-1677659193610.png

944706426_6-1677659216820.png

944706426_7-1677659240220.png

944706426_8-1677659261160.png

 

 

0 项奖励
回复

3,069 次查看
944706426
Contributor III

感谢,我重新下sfw 和sbl再测试一下

0 项奖励
回复