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.

OAD target and imageB

Other Parts Discussed in Thread: CC2640, SYSBIOS, CC2650, BLE-STACK

Hi all!

Sorry for my stupid questions. I read "CC2640 BLE OAD User's Guide" and I do not understand how to use OAD target project and  to dowload imageB via OAD.

I build OAD_target project and dowload "OAD_merge.hex" via flash programmer. Then in device monitor -> program OAD select imageB (form simpleBLEPeripheral project) and program. The download is successful, target device rebooting. Then the device can not be contacted, it does not send advertising, perhaps, because the image stack in OAD_target and SBP different. I tried to do oad_target fw based on SBP project for this I added in spb_imageB project

ICALL_STACK0_ADDR=0xF000
FEATURE_OAD
FEATURE_OAD_ONCHIP
HAL_IMAGE_A

in build actions:

python "C:\Python27\Scripts\hexmerge.py" -o "$PROJ_DIR$\target\Exe\target_IMAGE.hex" -r "1000:1CFFF" --overlap=error "$PROJ_DIR$\target\Exe\target_app.hex":1000:EFFF

"$PROJ_DIR$\..\..\..\..\..\util\BIM\CC26xx\FlashOnly\Exe\BIM.hex":0000:0F5FF "$PROJ_DIR$\..\..\Stack\CC2640\FlashROM\Exe\SimpleBLEPeripheralStackFlashROM.hex":F000:1CFFF

But device with this firmware does not work, it does not send advertising.

  • Hi katuxa,

    There is already an example configuration for Image B, named "FlashOnly_OAD_ImgB" in SimpleBLEPeripheral project workspace. Can you please test with that configuration following the guide first? It will help you understand how the on-chip OAD works.

    - Cetri
  • Hi Cetri, thank for your reply.

    I'm trying to upload is "FlashOnly_OAD_ImgB" in oad_target via device monitor, but device does't works after successfully program.

    So I triedt to download first BIM_Extflash and second OAD_FULL_IMAGE.hex from SBP_extflash via flashprogrammer. But my sensor tag doesn't works (other devices can not see it )

  • Hi katuxa,

    Can you check if the step VII of section 8.4 has been done for on-chip OAD? It should work.
    Same for off-chip OAD. Please check if the step VI of section 9.3.1 has been done.

    - Cetri
  • I commited this lines:
    //var ROM = xdc.useModule('ti.sysbios.rom.ROM');
    //ROM.romName = ROM.CC2650;
    but my sensor tag doesn't works
  • Hi katuxa,

    I'm still a bit confused. Are you doing On-chip OAD on a SensorTag? Which sample application project and which configuration did you use as baseline for your project? There is no On-chip OAD sample app for SensorTag in the BLE-Stack 2.1 installation.

    - Cetri
  • Yes, I doing On-chip OAD on SensorTag. First I used OADTarget progect for Image A and simpleBLEperipheral for Image B. But after a successful update the device does not work. I decided that the device does not work because different stacks for App. I created Image A based on simpleBLEperipheral with configuration based on OADTarget. After a successful update the device still does not work...

    For off-chip OAD I used the simpleBLEperipheral configuration of FlashOnly_OAD_ST_ExtFlash for image A, and I used the simpleBLEperipheral configuration of FlashOnly_OAD_imgB for image B. After update sensor tag does not makes reset. And new image doesn't load. What do i make wrong?

     

    Do I understand correctly that if I use Off-chip DAO, the images in the external memory must be no larger than 44KB. Because BIM loads the current image to the internal memory?

  • Hi katuxa,

    SimpleBLEPeripheral application as Image B is supposed to run on SmartRF06EB+CC26xxEM platform. It is not guaranteed to run on SensorTag.

    Regarding the application size for Off-chip OAD, please see Section 7.3.2 and Figure 9 in the OAD User's Guide. The application size can be as big as 128kB - 4kB(Int Vectors) - 4kB(BIM) - Stack size(NV storage included, 4kB-aligned).

    - Cetri

  • Cetri, thank you. Where can I see example imageB for sensor tag? Can I change sensor tag progect by Section 8.4 in the OAD User's Guide for imageB?
  • Yes it's worth trying. Note that SensorTag application is bigger than SBP. You may need to reduce the stack size following the instructions in Section 8.5.
  • How to make ImageB for off-chip OAD?
  • There is no Image B for Off-chip OAD. I would suggest you go through Chapter 9 of the OAD User's Guide.

  • I'm sorry, but I did not understand what firmware(what project, configure) can be transferred to the sensor tag upgrade using off-chip OAD.
    For aplication image - BIM_ext + FlashOnly_OAD_ST_ExtFlash. I tried to update the sensor tag via device monitor by sending the firmware wiht settings of the Chapter 8.4. But sensor tag doesn't reset and doesn't load new firmware.
  • Help me please.
  • Hi katuxa,

    Sorry I'm still confused. Is what you are trying to do On-chip OAD or Off-chip? BIM_ext is for Off-chip OAD while section 8.4 is about On-chip OAD. If you want On-chip OAD, please follow the instructions in chapter 8. If you want Off-chip OAD, please follow the instructions in chapter 9.

    - Cetri

  • Sorry for my stupidity.

    I trying to do off-chip OAD. What project to use need for target aplication and for images in off-chip on sensor tag?

    I follow the instructions in chapter 9.3 for create image.

    I don't understand what project to use need for creating target aplication for sensor tag. I tried to use "OADtarget" project + BIM_ext, but it doesn't work. I also tried  to use simpleBLEproject with "FlashOnly_OAD_ST_ExtFlash"(changed HAL_IMAGE_E on HAL_IMAGE_A) + BIM_ext. It works, I send  OAD_FULL_IMAGE.hex (HAL_IMAGE_E, added blink led in code, and changed firmware's name), but after successfuly sending sensor tag doesn't reset. I did  hard reset, but device starts on imageA and not imageE.

  • Hi katuxa,

    There is neither Image A nor Image B for Off-chip OAD. The procedures to make the running image is the same as those to make an image for download.

    I think what you lastly did is right in terms of the procedures. I would suggest you do all the process again with a clean install, following all the instructions in Chapter 9.

    - Cetri

  • Please see this post as well: 

  • Thank you so mach. It is working.
    last question. How to switch between images? After download new image is active, if I need that other image is active, what I needed to do?
  • How to switch between images?
  • There is no switching. If you want to run another image, you will need to download that image through OAD again.