This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650: use OAD Programming

Part Number: CC2650
Other Parts Discussed in Thread: CC2640R2F,

Hello

I work with cc2650 sensortag. I want to programming this sensortag with OAD.

I use the document "Over-the-Air Download User’s Guide". My goal is not to use the flash externally.

Can you tell me the iar project to follow (project and project config) to work with sensortag without external flash (BIM + STACK + OAD Target App).

I test by following the indications of the document and I have the following message in "BLE Device Monitor" "A valid OAD header was not found in the image. Using generated header".

After you can tell me how to create an app compatible with the OAD.

Thanks for you help.

Best regards

 

  • Hi,

    There is no project for on-chip OAD on the CC2650 SensorTag. The oad_target project can be ported to the SensorTag. Please see here for more information: processors.wiki.ti.com/.../CC2650_SensorTag_User's_Guide

    Please note that the STK dev kit contains a 512kB external SPI flash, and there is an existing project/configuration for off-chip oad (external flash).

    The message in BLE Device Monitor is simply stating that BLE Device Monitor generated a header with valid metadata. An alternative is the use the python script as described in the OAD User's Guide.

    -Nathan
  • Hi

    I prefer to use the version On-Chip because on my final product I have no flash extern.

    Can you tell me what script you are talking about and how to use it ?

    Thanks

  • For on-chip OAD, we suggest using the CC2640R2F device which has more available flash memory for your application. Please see the CC2640R2F sticky Getting Started FAQ at the top of the BLE forum.

    Best wishes
  • Hello

    To finish I think using the external flash.
    for my application (0x01010 - Boundary) i use the project "cc2650stk_app - FlashOnly_OAD_ExtFlash"
    But for the images 1, 2 and 3 that I have to modify in my project?
    How can I switch between my different images ?
    My images must contain the OAD profile ?
    More is what I can use the part of external flash in my app to store information ?

    Thank you
  • Hi,

    Please see the OAD User's Guide for information on necessary modifications, although the sample application will run as-is. The image that is being sent over the air does not need to contain the OAD profile unless that application is going to be used later as an OAD target.

    -Nathan
  • Hi,

    I still have questions about OAD.

    1- If I run an app without OAD profile stored in image 1. What is the manipulation to switch on the application OAD Profile embedded for update application image 1 ?
    2- How can we choose the storage location of our application (image 1 or image 2 or image 3)?
    3- In the external flash there is a unused block. Can store things inside (variable) ? If yes know how to do ?

    Thanks
  • Hi,

    1. That image would have to have had the OAD profile and had OAD enabled.
    2. The storage location is set in the OAD_imgIdentifyWrite function with imageAddress.
    3. Yes, you can use that memory. This should be done similar to how the images are stored. The address is determined in OAD_imgIdentifyWrite, and you can see where the flash is actually written to in OAD_imgBlockWrite.

    -Nathan