Hi, I am working on a iOS application that has to perform OTA firmware update on a custom PCB board
with BLE113 module (using external SPI flash W25X40CL). Unfortunately the update is failing with similar
symptoms as described in:
1. hex file is converted to binary form,
2. image is trimmed,
3. all preparation steps are performed without error responses,
4. firmware flash is uploaded (20 bytes packet every 16 msec),
5. device rebooted, but old firmware is booted,
6. iPhone is set to airplane mode after firmware update to clear service cache.
I am using SDK 1.2.2 (build 100) and latest BLE113_project OTA example (this firmware is initially loaded using BLE SW
Update Tool). I have tried to perform OTA update using my own iOS app and BLExplr 1.6.0 without success.
One detail that caught my eye are the external flash SPI connections:
P1_0 - Power
P1_1 - MISO
P1_3 - CS
P1_4 - CLK
P1_5 - MOSI
According to BLE113 Datasheet (pp. 9, Table 3eripheral I/O Pin Mapping) there is no configuration
that supports this layout.
Could this be reason for failed firmware upgrade or should I look elsewhere?
Hi Nikola, please refer to my OTA code here: https://github.com/RobotPajamas/ble113-ota-ios
The firmware I have there is known to work, and BGBuild will automatically generate an .ota file. Perhaps trying that out might alleviate some of the unknowns in the system?
How do you verify from the iOS app that the OTA was successful? We've been checking the firmware version, but sometimes that gets cached and appears to not have been updated.