专栏首页twowinterCC1310空中升级笔记03 CC1350_BLE_OAD_Project0

CC1310空中升级笔记03 CC1350_BLE_OAD_Project0

这是一个官方指南,关于如何对CC1350工程修改,从而利用BLE来无线升级。 Getting Started Build your own application image and use BLE OAD to upload them to the CC1350 Launchpad. Please visit CC1350 Project 0 for instructions on how to build your own image and use BLE OAD to download to your device. http://dev.ti.com/tirex/content/tirtos_cc13xx_cc26xx_2_20_00_06/resources/cc1350LaunchPad/project0/project0_index.html

如果打不开这个TI的链接,我上传了整个网页,http://download.csdn.net/detail/iotisan/9750301

本文作者twowinter,转载请注明作者:http://blog.csdn.net/iotisan/

CC1350 Project 0

Project Zero for the CC1350 LaunchPad

Congratulations on choosing the CC1350 Wireless MCU and LaunchPad ecosystem! This example will show you how to build/compile your own images for use with the BLE OAD service using Code Composer Studio.

Software Prerequisites

Before starting on this tutorial you need to download and install Code Composer Studio 6.1.3 or later.

Getting Started Demo

We will use the rfWsnDmNode example in CCS as a basis for this tutorial. Basically any of the examples in the TI-RTOS CC13xx/CC26xx SDK can be used to build a OAD capable image, but since the rfWsnNode and Concentrator examples already contain code for getting back to BLE stack mode (i.e. double button press for 10s) we will for the sake of simplicity use this as a starting point. To get started follow these steps:

1 Import rfWsnDmNode from the Resource Explorer in Code Composer Studio.

2 In project option -> ARM Compiler -> Advanced Options -> predefined symbols add ‘USE_BIM’ define

3 In project option -> ARM Hex Utility -> check Enable ARM Hex Utility

4 In CC1350_LAUNCHXL.cmd move the application start address to page 2 + 10B BIM header:

5 Open rfDmExamples.cfg, click the ‘cfg script’tabe to edit the file directly and not use the GUI editor. a. Comment out the ROM config at line 367 so that TIRTOS is not in ROM. This is because the ROM’ed TIRTOS assumes TIRTOS const data is in the same location as the BIM header.

b. Move the reset vector at line 202 to be above page 0 and the BIM header:

6 Build the project to generate the intel hex file

7 Convert the .hex to the format required by the iOS OAD app a. Clone or copy the OAD conversion script at ti-simplelink Github b. install python c. install crcmod: - Download from python.org - Extract the files - Cd into the dir and run ‘python setup-py install’

d. install intelhex:
    - Download from python.org
    - Extract the files
    - Cd into the dir and run 'python setup-py install'

8 Run the script to convert the file python ~/[path_to_script]]/oad_image_tool.py rfWsnDmConcentrator_CC1350_LAUNCHXL_TI_CC1350F128.hex -ob rfWsnDmConcentrator_CC1350_LAUNCHXL_TI_CC1350F128_oad.bin -m 0x1000 -r :0xE000

9 Send the resulting _oad.bin file to an email account that you can access from you iOS device.

10 Open the SensorTag app on the iOS device, if the CC1350LP is running the BLE FW give it a reset and you should see it in the list of devices, click on the CC135LP and open the sensor view.

11 Open the e-mail on the iOS device, _oad.bin click the attachment and open with the SensorTag App

12 When it switches back to the SensorTag App select FW Download then select the file that was in the e-mail which should now be in the list of available firmwares.

13 The App built at the start should be downloaded to the LP, once downloaded the CC1350LP will reset and run your app! If the App does not start you may need to reset the device manually by pressing the reset button.

14 To get back to the BLE stack/app mode press and hold BTN-1 and BTN-2 for >5s until the green led blinks rapidly (note this requires the button logic from the one of the fWsnDm examples). If the BLE FW does not start you may need to reset the device manually.


本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • Golang笔记 6.1.1 HTTP 客户端

    Go 内置的 net/http 包提供了最简洁的 HTTP 客户端实现,我们无需借助第三方网络通信库(比如 libcurl)就可以直接使用 HTTP 中用得最多...

    twowinter
  • LoRaServer 笔记 0.1.1 LoRa Server 组件功能介绍

    LoRa Server 是个开源的 LoRaWAN network-server,是 LoRa Server project 的一部分。它的作用是对从基站接收到...

    twowinter
  • LoRa笔记01 sx1276 sx1278信号强度RSSI研究

    RSSI信号强度是无线网络中特别被人关注的一个点,尤其是工程部署中。今天在了解LoRa SX1276的RSSI展示,搜寻了一些资料,做如下笔记留念。(留念。。。...

    twowinter
  • 论综合 | 是什么让一个数字前端实现硅农开始学习Floorplan 的?

    如题,是什么让一个数字前端实现硅农开始学习Floorplan 的?是制造工艺的进步,是实现方法学的被迫更新,是养家糊口生的本能,正可谓:头发落完终不悔,为伊消得...

    老秃胖驴
  • How does it work in Mono's C# compiler?

    Introduction Mono is an Open Source free programming language project. It is an ...

    张善友
  • 安全与隐私(CS CR)

    线性查询可以提交到包含专用数据的服务器。服务器使用加性噪声对系统破坏的查询提供响应,以保护其数据存储在服务器上的用户的隐私。隐私的度量与费希尔信息矩阵的轨迹成反...

    WEIIILII
  • SAP OData性能分析工具

    As mentioned by title, this blog does not introduce the OData trace functionalit...

    Jerry Wang
  • CodeForces 665B Shopping

    B. Shopping time limit per test 1 second memory limit per test 256 megabyt...

    ShenduCC
  • Code forces 719A Vitya in the Countryside

    A. Vitya in the Countryside time limit per test:1 second memory limit per test:2...

    Angel_Kitty
  • 什么是SAP物料主数据里的Batch

    Materials are produced and theoretically have the same properties. Nevertheless ...

    Jerry Wang

扫码关注云+社区

领取腾讯云代金券