![共享客户2013online_第1页](http://file3.renrendoc.com/fileroot_temp3/2022-1/31/c8bea476-4827-4b9e-a456-0ce9faef8439/c8bea476-4827-4b9e-a456-0ce9faef84391.gif)
![共享客户2013online_第2页](http://file3.renrendoc.com/fileroot_temp3/2022-1/31/c8bea476-4827-4b9e-a456-0ce9faef8439/c8bea476-4827-4b9e-a456-0ce9faef84392.gif)
![共享客户2013online_第3页](http://file3.renrendoc.com/fileroot_temp3/2022-1/31/c8bea476-4827-4b9e-a456-0ce9faef8439/c8bea476-4827-4b9e-a456-0ce9faef84393.gif)
![共享客户2013online_第4页](http://file3.renrendoc.com/fileroot_temp3/2022-1/31/c8bea476-4827-4b9e-a456-0ce9faef8439/c8bea476-4827-4b9e-a456-0ce9faef84394.gif)
![共享客户2013online_第5页](http://file3.renrendoc.com/fileroot_temp3/2022-1/31/c8bea476-4827-4b9e-a456-0ce9faef8439/c8bea476-4827-4b9e-a456-0ce9faef84395.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、TI Bluetooth®low energy OADOver the Air DownloadingYan Zhang1SensorTag OAD demo2SensorTag OAD demo3SensorTag OAD demo4SensorTag OAD demo5SensorTag OAD demo6SensorTag OAD demo7SensorTag OAD demo8SensorTag OAD demo9SensorTag OAD demo10Over the Air DownloadWith Over the Air Download (OAD) feature,
2、 you will NOT need: Extra IOs, like USB or UART Connect to PCto update your final products firmware if you have new firmware released.What you will need is just update your iOS or Android App, let the Appdo the updating job through BLE connection to your products!This will only make your products sm
3、aller and more portable!11Over the Air DownloadBluetooth low energyPeripheral Device SlaveCentral DeviceMaster12Over the Air DownloadOAD Manager(typically iOS devices, Android devices, or PC) runs an OAD application(it is a TI proprietary BLE profile) and has an OAD image (new firmware) to send to O
4、AD target.OAD Target(real BLE products) has BIM(Boot Image Manager), an old image, andprepared area for new image.OAD Manager send new image over-the-air by OAD application.OAD Target stores new image and with BIM, system will jump to new image to execute.Binary image over BLE13OAD ManagerOAD Applic
5、ationOAD ImageOAD TargetBIMOld Image(A)Area for new Image(B)Over the Air DownloadThe following sections will show how to use OAD.With Keyfob sample code and BLE Device Monitor. .It contains 4 parts: Configure BIM Configure image A Configure image BOver-the-Air Downloading14Configure BIM (Boot
6、 Image Manger)The boot code is separately built and debugged or programmed via the IAR IDE. The project is located at: $INSTALL_DIRProjectsbleutilBIMBefore debugging or physically programthe OAD application code produced in thenext section, this OAD boot code must first be programmed into the flash.
7、The .hex file produced by this project build can be programmed directly using a tool like the SmartRF Programmer.15Configure image AFirst of all, it is very important for this example, if “DEFAULT_ENABLE_UPDATE_REQUEST” is set to be “TRUE” in your keyfobdemo.c file, please set it to be “FALSE”. Othe
8、rwise it will effect BLE Device Monitors OAD application.In the real product you do NOT need to do this.16Configure image ASelect ProjectàEdit ConfigurationsàNewand add a new build target as shown17Configure image ASelect PROFILESàAddàAdd Files and add the files for OAD Profile a
9、s show below from the following directory: INSTALL_DIRProjectsbleProfilesOAD18Configure image ASelect TARGETàCC2540EBàDriversàAddàAdd Files and add hal_crc.c as show below from the following directory: INSTALL_DIRComponentshaltargetCC2540EB19Configure image AEnable the OAD Profil
10、e in the Application by adding a call to OADTarget_AddService()function wherever the other BLE Profiles are activated. KeyFobApp_Init().For keyfob project is in20Configure image AAdd an include of the OAD Profile header file in the module accessed in last step. As anexample, this is done at the top
11、of the keyfobdemo.c module as shown below:21Configure image ASelect Project->OptionsàC/C+ CompileràPreprocessoràDefined symbols and add the following 4 new definitions as shown in the figure:FEATURE_OAD, OAD_KEEP_NV_PAGES, FEATURE_OAD_BIM, HAL_IMAGE_AAnd include the path to the OAD
12、 Profile as shown above in the Additional includedirectories:$PROJ_DIR$.ProfilesOAD22Configure image ASelect Project->Options->Build Actions->Post-buildd line and paste the followingline (with no carriage return and exactly one single space between quote marks): "$PROJ_DIR$.commonCC254
13、0cc254x_ubl_pp.bat" "$PROJ_DIR$" "ProdUBL" "$PROJ_DIR$CC2541DK-mini Keyfob Slave OAD-imgAExeKeyFobDemo"Note that the relative path above will contain different names as you work with projects other than the CC2541 Keyfob.23Configure image ASelect Project->Option
14、s->Linker->Config->Linker configuration file and paste the following line: $PROJ_DIR$.commonCC2541cc254x_f256_imgA.xcl24Configure image ASelect Project->Options->Linker->Output->Format->Allow C-SPY-specific extra output as shown below.25Configure image ASelect Project->Opt
15、ions->Linker->Extra Output->FormatSelect the Format->Output format to be intel-extended and check the box for OutputfileOverride default and use the .hex suffix for the output file.26Configure image ASelect Project->Options->Debugger->Texas Instruments->Download.Uncheck the b
16、ox to Erase flash and check the box to Retain unchanged pages so that the BIM is not erased when this application image is downloaded from IAR.27Build image ABuild and download the project on Keyfob.You may receive a post-build error. This is because you have not yet produced the .sim file. You can
17、ignore this error at this point.Relax, dont be scared or panic, nothing is wrong!28Configure image BSimilar steps as above will be followed to create the Image-B build target, using the Image- A build target as the source.29Configure image BThe preprocessor definition needs to be changed from HAL_IM
18、AGE_A to HAL_IMAGE_B.Very easy.30Configure image BThe post-processing build actions path to the EXE must be changed:31Configure image BThe linker control file must be the one for Image-B.32Configure image BNow you have configured the image B, you can compile and program the .hex file into Keyfob.The
19、n the Keyfob will contain BIM, image A and image B.(Note: programimage B into Keyfob is NOT a must step)In order to do OAD, the image file must be a .bin file, the following steps will show how to create it.33Configure image BChange the FormatOutput format to be simple-code and do not check the box
20、forOutput fileOverride default as shown below.34Configure image BOpen the oad_target.c module and change the version field in the Image Header from 0x0000 to 0x0002 as shown in the below figure. This will mimic an updated version of the image when the BIM checks the image header.35Configure image BBuild but do not download the target build. This will produce the output binary file for OAD in the output directory here:INSTALL_DIRProjectsbleKeyFobCC2541DBCC2541DK-mini Keyfob Slave OAD-imgBExeKeyFobDemo.binIf th
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度智能机器人研发合作融资协议书
- 入户申请书格式
- 电子商务与现代办公环境的融合
- 生物医药行业的投资策略及实践案例
- 2025年度互联网平台用户数据保密及隐私保护协议
- 2025年度新型建筑材料供应试用期合同书
- 退学申请书因个人原因
- 2025年度智能养老社区入住管理服务合同
- 2025年度孔瑶离婚协议中赡养费及财产分割协议
- 二零二五版税务信息保密与税务风险管理协议
- 2025年陕西延长石油集团矿业公司招聘笔试参考题库含答案解析
- 2025中国烟草/中烟工业招聘易考易错模拟试题(共500题)试卷后附参考答案
- 2025至2030年中国PVC热缩封帽数据监测研究报告
- 2025年辽宁农业职业技术学院高职单招高职单招英语2016-2024年参考题库含答案解析
- 《教育强国建设规划纲要(2024-2035年)》解读与培训
- 2025年市场营销人员工作计划
- 2024年徐州工业职业技术学院高职单招职业适应性测试历年参考题库含答案解析
- 2025年春新人教版语文一年级下册全册课件
- 2025年春新北师大版数学七年级下册全册教案
- 第七章老年人泌尿系统疾病
- 2025年枝江金润源建设集团招聘笔试参考题库含答案解析
评论
0/150
提交评论