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.

CC2541: cc2541 : Encrypted OTA

Part Number: CC2541

I am working on OTA of cc2541.I am following Over-the-Air_Download_for_CC254x.pdf.

I have successfully done OTA (Without Encryption).I have three Files for that :

i-BIM_CC254xF256.hex
ii-ImgA.Hex
iii-ImgB.bin

I follow these steps for OTA.

1- I added (BIM_CC254xF256.hex + ImgA.hex)  files and load it using SmartRF flash programmer (using Erase, program and verify).

2- Connect the device to the iOS TI-BLE SensorTag app. Go to profiles > TI OAD Profile > ON. Select Upload FW Image and choose internal or your own .bin file. Use the other one than the current one (imgA or imgB). They should be load in the to the different parts of the memory so with this you don't rewrite running firmware.

Now i am working on Adding Encryption to OAD. I have successfully followed 13-13.4.3. Now i have these files

i-BEM_CC254xF256.hex

ii-CC2541-OAD-Encrypted-ImgA.bin

iii-CC2541-OAD-Encrypted-ImgB.bin

iv-EBL_CC254x_UART0_ALT1.hex

Now i don't know what should i do next.

1-Which files i have to merge?

2-How to make super file as CC2541-OAD-Encrypted-ImgA is bin file and how to add it with hex file(BEM_CC254xF256.hex).

Kindly suggest me what should i do next ? Kindly reply fast.

  

  • Part Number: CC2541

    I am working on cc2541 OTA (CC2541-OAD-Encrypted). I am following Over-the-Air_Download_for_CC254x.pdf. I am creating CC2541-OAD-Encrypted-ImgA.hex file

    When i built the code these three files created.
    1-SimpleBLEPeripheral.bin
    2-SimpleBLEPeripheral.d51
    3-SimpleBLEPeripheral.sim

    But I need hex file to create super hex file for OTA.

    I also get this error when i debug and download.

    How can I fix that ? Its urgent kindly reply.
     

  • Which IAR version do you use? I can build the same project without problem using IAR EW8051 v9.10.

  • I merge these three files and load it to cc2541.

    1-BEM_CC254xF256.hex
    2-EBL_CC254x_UART0_ALT1.hex
    3-CC2541-OAD-Encrypted-ImgA.hex

    but i can not see any response (BLE is not advertising).

    i have successfully done this in Simple ODA but in encrypted files i am getting these issues .

  • You should be able to follow the instructions in section 13. Adding Encryption to OAD, it does involve several steps.

    For the first step, you would load the BEM, see section 13.1 step 1 on how to lock the flash pages for BEM.

    Then you should load the encrypted images as listed in section 13.2

    You can read back the flash to get a super hex. 

    Best wishes

  • How can I read back the flash to get a super hex ?

    Can i use these files to make super hex file?

    i-BEM_CC254xF256.hex

    ii-CC2541-OAD-Encrypted-ImgA.bin

    iii-CC2541-OAD-Encrypted-ImgB.bin

    iv-EBL_CC254x_UART0_ALT1.hex
  • Can i do all my work using only IAR Embedded Workbench and SmartRF flash programmer?
    Without using BTTool (Serial Port)?

  • Hi,

    It depends on what you want to do. If you just need to develop and download the program, the IAR IDE is enough. Other programs are needed for custom applications such as OAD manager or send commands using BTool with device running HostTest application.

    Best wishes