Hi,
I'm working on OAD upgrade feature.
I modified the SimpleBLEPeripheral app (+BIM + stack) in order to adapt it to a custom product based on CC2640.
On the downloader side I used BLEDeviceMonitor + CC2540USB dongle and I could upgrade the firmware with success.
Now I want to perform the upgrade using the SensorTag app on my iPhone.
My custom tag is detected by the app, and I can establish a connection between them.
When I select the "FW Download" menu item I am asked to Select the FW File that I want to use for the OAD.
When I select a *.bin file i always get this error:
"Wrong image type! Image that was selected was of type : B, which is the same as on the peripheral, please select another image"
I tried with a lot of different bin files, obtaining always the same result.
These have been my attempts:
- *.bin file of peripheral app (the one I used with success using BLE Device Monitor)
- 128KB *.bin file containing all the internal flash content (I obtained this file reading to file the entire flash memory with FlashProgrammer SW)
- 124KB *.bin file containing all but BIM (from page 0 to page 30)
- 124KB *.bin file containing all but IntVec (from page 1 to page 31)
My first choice was to use the same file used (with success) with the previous environment (BLE Device Monitor + CC2540USB dongle) and when I saw that it didn't work I looked for some docs and surfed this forum; then I learned that the OAD characteristics of SensorTag are different, and that I have to use an image containing both BIM, application and Stack...but still it doesn't work.
First of all: does it exist any documentation about how the SensorTag app OAD works? Why does it require even the BIM? What kind of *bin image have I to build?
Thanks for your help.
Luca