TI中文支持网
TI专业的中文技术问题搜集分享网站

OAD-offchip :image identify

C:\ti\simplelink_cc2640r2_sdk_2_30_00_28\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip

在OAD开始之前有个write to image identify char,这个identify有22byte,最后4个字节是software version,但是我发现这个命令发送前20byte的时候,target也是notify回来可以进行升级的,那么请问,最后 2个byte在固件中是没有做校验的吗,若是没有校验,我如何做版本控制,只能 升级高版本的程序。

Alvin Chen:

请看
software-dl.ti.com/…/oad.html

OADTarget_validateNewImage决定了是否接收。
OAD Image Identify (0xFFC1)
The Image Identify characteristic is used to exchange image metadata between OAD Downloader and target. The OAD process begins when the OAD Downloader sends the 16 byte metadata of the proposed OAD image to the target. Upon receiving the candidate metadata, the target will do some calculations to determine whether or not the proposed image should be downloaded. “01:00” shall be written to the CCCD of this characteristic so that notification for metadata rejection is enabled.

user5895945:

回复 Alvin Chen:

我使用的SDK版本是最新的2.40,你给的参考资料是1.00版本的,image identify结构都是不一样的,没有参考意义

Alvin Chen:

回复 user5895945:

你可以进行check 要进行oadCheckImageID里面没有判断softVer,你可以加一个上去试试,先用OAD_getSWVersion然后在比较。

赞(0)
未经允许不得转载:TI中文支持网 » OAD-offchip :image identify
分享到: 更多 (0)