PSoC4使用launcher模式程序更新问题

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

最近碰到一个问题,我使用PSoC4的launcher+双App模式,当运行的是App1时,此时更新App1代码就会出现MCU重启的现象。

当前运行的App1的版本是1.0,升级App1的程序为1.0,能正常执行,没有问题。

当前运行的App1的版本是1.0,升级App1的程序为2.0,会发生MCU重启现象。

但如果是更新APP2的程序是没有问题的。

这样情况是说当前运行的App是不能被更新吗?

0 点赞
1 解答
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

是的,当前运行的App不能被更新。

在原帖中查看解决方案

0 点赞
4 回复数
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

是的,当前运行的App不能被更新。

0 点赞
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

多谢回复,还有个问题请教一下,假如说当前运行的是App1,是不是说运行的是Combination application #1区域的数据,所以更改了数据会出问题。然后我用同版本的程序更新Combination application #1区域,因为数据没变化,所以没发生问题。

Li_Qiang_0-1643270528638.png

 

0 点赞
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

你代码的逻辑怎么写的?能放到这个上面我看看吗?

这个升级的逻辑是按照你自己设计的运行的。一般情况下,你运行APP1的时候,升级APP2,运行APP2升级APP1,不太明白你运行APP1的时候怎么升级的APP1。

0 点赞
Lin_Qiang
Level 4
Level 4
5 likes given First like given 50 replies posted

就是说我运行着App1,然后同时更新Combination application #1区域的程序。

我当时以为更新App1还是APP2,跟当期运行的哪个App没关系,所以就做成更新了App2,下次就更新App1,反复着来。同版本升级还没有发现问题,升级不同版本的时候才发现的。所以我感觉好像是同版本的时候,即使更新了,其实还是原来的程序,所以才没出现问题。

0 点赞