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 + OAD on-chip + Different ImgA and ImgB sizes = BIM Issue

Other Parts Discussed in Thread: CC2650, CC2640R2F

HI, all

Use the CC2650 with OAD on-chip as described in the user manual  "Over-the-Air Download User’s Guide".  Very  good! All works! )

I need to add Service Change Characteristic

include -DBLE_V41_FEATURES=L2CAP_COC_CFG in build_config.opt . 

after compiling the stack size has increased and has become more than 48 kb

OLD: (as Over-the-Air Download User’s Guide )

0x1000 ... 0x8fff OAD Target (but 0x7000...0x8fff  unused )

0x9000 ... 0x12fff  OAD Image B Area

0x13000 ..  0x1f000  BLE Stack  (48kb)

NEW: (OAD Target relink on 0x08000)

0x1000 ... 0x7fff OAD Target

0x8000 ... 0x11fff  OAD Image B Area

0x12000 ..  0x1f000  BLE Stack (48k + 4k  - because add Service Change Characteristic)

flashing: very good!

Create OAD img B  (relink on 0x08000)

Download via OAD. Download - OK. BLE device not found!

Help me!

  • Hi Denis,

    So if I understand correctly, you were able to generate an OAD image and send it via BLE sucessfully, but upon device reset your image isn't booted up?

    As recommended in the software-dl.ti.com/.../oad.html make sure that your debugger isn't connected. This sometimes doesn't cause the device to reset correctly.

    Next, you'll want to see if BIM is indeed booting up your image by debugging by attaching to target without downloading (after the successful OAD, power the device via other means during OAD transfer).

    Regards,
    Rebel
  • "So if I understand correctly, you were able to generate an OAD image and send it via BLE sucessfully, but upon device reset your image isn't booted up?"

    Yes!

    "As recommended in the software-dl.ti.com/.../oad.html make sure that your debugger isn't connected. This sometimes doesn't cause the device to reset correctly."

    Debugger is not connected. Power on-off do not effect result

    I use CC2650 without R2 (CC2640R2) and BLE stack 2.2. Is it important?

    "Next, you'll want to see if BIM is indeed booting up your image by debugging by attaching to target without downloading (after the successful OAD, power the device via other means during OAD transfer)."

    I do not understand, explain more please

  • Effectively, now your problem is with BIM, is what I meant to say.

    So you'll have to debug BIM. This can be done a number of ways. You could load up the BIM project in IAR and step through the code to see what's going on. (I recommend debugging without downloading)

    While debugging BIM, the external flash should be read, the image should be validated, and finally booted; ideally you should end up in your OAD image.

    See the guide referenced above in the On-Chip section for more information on what BIM does. The guide above is for CC2640R2F, but applies just fine for R1 for OAD and BIM purposes.

  • You're right, this BIM!

    I forgot to change the ASM string ( "MOV R0, # 0x9010") in the ASM ( "MOV R0, # 0x8010"); in bim_main.c

    0x8000 - my new addres image

    Thank you so much!

  • Glad you solved the problem!

    Regards,
    Rebel