Factory image与upgra...
 
Notifications
Clear all

Factory image与upgrade image之间的区别

1 Posts
1 Users
0 Likes
3,418 Views
 hc
(@hc)
Posts: 64
Member Admin
Topic starter
 

Factory image 就是用于 flash 烧录器烧录的 bin 文件,而 upgrade image 则是用于 DFU 驱动更新的bin文件

xCORE 的 Flash 格式如下图所示:

Factory image 被存放于前面 0 区, upgrade image 主要被存放于1区, 即使 upgrade image 错误或者损坏, XMOS 也能通过 factory image 引导

它们都是由 .xe 文件通过 xTIMEcompos Command Prompt 转成相应的 output.bin, 只是转换语句有所区别

[offtopic]

.xe 文件转为 bin 文件我们只需要把 .xe 文件命名为 myprog.xe, 然后打开 xTIMEcomposer Command Prompt, 通过命令跳转到 .xe文件所在的目录, 然后输入下面的命令即可

生成烧录器使用的 bin:
xflash -o output.bin myprog.xe --noinq --boot-partition-size 0x20000

生成 DFU 升级的bin:
xflash --factory-version 13.2 --upgrade 1 myprog.xe -o output.bin (注意 version number 需要对应相应的 xTIMEcomposer 版本号)

[/offtopic]

 
Posted : 29/09/2017 3:14 pm