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.

Dual Image concept example problem switching image

Other Parts Discussed in Thread: CC1350STK

Hi, 

I just recently started testing out the dual image concept example with a CC1350STK. I am printing it out through UART and the button interrupt seems to be working. However, when I press the button the DualImageConcept_handleKeys is executed,  switchImage and HAL_SYSTEM_Reset() is executed but it didn't seem to have swap to Image A from B because I was not seeing anything at all on UART but from testing it seems that the program did reset and exit from Image B. so I'm I doing something wrong ?.

I compiled the example using these steps.

1. Build and program the stack

2.Build and program ImageA

3.Build and program ImageB

4. Press the button to trigger interrupt and toggle image change.

Thanks

Tony

  • Hi Tony,

    You will need to import the boot image manager (BIM) project into CCS (C:\TI\simplelink\ble_sdk_2_02_01_18\examples\util\bim\cc1350lp\ccs). Then follow these steps:

    1. Build the BIM project, build the stack project.
    2. Delete Image A and Image B output folders (in C:\TI\simplelink\ble_sdk_2_02_01_18\examples\cc1350lp\dual_image_concept\ccs\app)
    3. If available, delete the 'src' directory in C:\TI\simplelink\ble_sdk_2_02_01_18\examples\cc1350lp\dual_image_concept\ccs\config
    4. Set the build configuration of the app to Image A and build Image A
    5. Repeat step 3
    6. Repeat step 4, but with Image B this time
    7. Run merge.bat in C:\TI\simplelink\ble_sdk_2_02_01_18\examples\cc1350lp\dual_image_concept\ccs\app\ (this runs a Python script and requires Python 2.7 to be installed)
    8. Use SmartRF Flash Programmer 2 to erase the flash on the device (under the wrench icon in the upper right corner).
    9. Program dual_image_concept_cc1350lp_unified.hex (found in C:\TI\simplelink\ble_sdk_2_02_01_18\examples\cc1350lp\dual_image_concept\ccs\app\Fla
    shOnly_ImgB) to device and press the reset button.

    Steps 2 through 9 should be repeated every time you change image A, and steps 5-9 when you change image B. However, you can still debug each image separately as you are doing now; you just won't be able to switch images while debugging. This is because the BIM is the actual start of the program (where the device will reset to), and it will point to the start of the current image.

    Skyler
  • I have followed the above steps but unfortunately I cannot get it to swap the image. After programming it (step 9) the program loads into Image A but when I press the button it did not swap to image B. I double check that the button interrupt was working and it was so I am quite lost to why it didn't swtich over.

    Tony 

  • Sorry for the delay. Did you say you do see UART working when you debug image B? Did you press the reset button after downloading the hex file? If the reset button isn't pressed after flashing, the device will hang when switching to image B.

    Skyler