[cx3]如何将USBFlashProg写到内存,及时生效

公告

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

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

cross mob
wangjiaxing
Level 1
Level 1
First reply posted First question asked Welcome!

当前使用CX3平台,如何将USBFlashProg写到内存,及时生效?

0 点赞
1 解答
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

FX3/CX3在启动时将Flash/eeprom中的固件复制到ram,然后再通过bootloader启动,因此写到flash中的固件没有什么即时生效的方法。要不然就固件中使用API触发cold reset,使片子复位。或者使用second stage bootloader直接向ram中写,缺点在于重启后又会失效。

在原帖中查看解决方案

0 点赞
3 回复数
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

FX3/CX3在启动时将Flash/eeprom中的固件复制到ram,然后再通过bootloader启动,因此写到flash中的固件没有什么即时生效的方法。要不然就固件中使用API触发cold reset,使片子复位。或者使用second stage bootloader直接向ram中写,缺点在于重启后又会失效。

0 点赞
wangjiaxing
Level 1
Level 1
First reply posted First question asked Welcome!

second stage bootloader 如何向RAM中写入呢?

0 点赞
YiZ_31
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

您可以参考FX3 SDK中的FX3BootAppGcc这个API

0 点赞