ota_data_initial.bin文件的作用是什么?

YxWang
Posts: 23
Joined: Sat Oct 20, 2018 1:13 am

ota_data_initial.bin文件的作用是什么?

Postby YxWang » Wed Nov 28, 2018 2:21 am

我尝试不烧录ota_data_initial.bin文件, 而程序依旧能够正常运行。所以我想了解,ota_data_initial.bin的作用及其定义是什么?

谢谢各位!

YxWang
Posts: 23
Joined: Sat Oct 20, 2018 1:13 am

Re: ota_data_initial.bin文件的作用是什么?

Postby YxWang » Wed Nov 28, 2018 7:20 am

在官网找到这么一段话:
There is also a new “otadata” slot, which holds the data for OTA updates. The bootloader consults this data in order to know which app to execute. If “ota data” is empty, it will execute the factory app.
出自Docs » API Reference » System API » Over The Air Updates (OTA)

我认为这个是答案吧

costaud
Posts: 55
Joined: Wed Dec 30, 2015 5:09 pm

Re: ota_data_initial.bin文件的作用是什么?

Postby costaud » Wed Nov 28, 2018 4:20 pm

otadata分区,用于标志目前运行哪一个app类型的固件。
ota_init 中都是全0xff,表示用第0个app分区开始运行。
如果不烧,只是不确定烧完flash后运行的是否是第0个app分区的固件。

YxWang
Posts: 23
Joined: Sat Oct 20, 2018 1:13 am

Re: ota_data_initial.bin文件的作用是什么?

Postby YxWang » Thu Dec 13, 2018 1:50 am

costaud wrote:
Wed Nov 28, 2018 4:20 pm
otadata分区,用于标志目前运行哪一个app类型的固件。
ota_init 中都是全0xff,表示用第0个app分区开始运行。
如果不烧,只是不确定烧完flash后运行的是否是第0个app分区的固件。
非常感谢您!

Who is online

Users browsing this forum: No registered users and 44 guests