BLE firmware & OTA guide: GATT throughput, dual-bank flash, power-loss rollback, signed images, and low-power lessons from XTELL wearable boards.
Getting a BLE peripheral to advertise, connect to a phone, and stream sensor values takes days. Shipping a product that survives two years of firmware updates across thousands of Android and iOS handsets without bricking units on low batteries is a completely different engineering problem.
Field failures in BLE products rarely come from the radio stack itself. They happen when flash partitioning leaves no safe rollback path, a user walks out of range halfway through an upgrade, or aggressive power-saving states conflict with GATT connection parameters.
Your OTA reliability is locked in the moment you partition flash memory. Here is how the three common bootloader layouts compare on Nordic nRF52/nRF53, ESP32/ESP32-S3, and Cortex-M4 BLE MCUs:
| OTA Flash Architecture | Max App Size | Power-Loss Safety | Typical Use Case |
|---|---|---|---|
| Single-Slot + Bootloader DFU | ~90% of flash | Low (old app erased before download finishes) | Cost-constrained demos where re-flashing via SWD is acceptable |
| Dual-Bank A/B (Ping-Pong) | ~45% of internal flash | High (old app stays intact until new image boots and confirms) | Production medical, industrial, and wearable devices |
| External QSPI/SPI Flash Staging + Swap | ~85% of internal flash | High (staging lives on external flash; bootloader swaps safely) | Feature-rich BLE + GUI/audio firmware with tight internal flash |
A production BLE OTA pipeline (such as MCUboot with swap/revert or a custom dual-bank bootloader) should treat every wireless transfer as untrusted and interruptible:
Default BLE connection settings are tuned for low standby power, not fast firmware downloads. Sending a 256 KB image over 20-byte ATT notifications at a 100 ms connection interval can take minutes and drain a coin cell or small LiPo:
More than half of "BLE firmware bugs" turn out to be mismatches between peripheral firmware and iOS/Android BLE stacks:
0x2A05) indication—otherwise Android and iOS apps write to stale handles until Bluetooth is toggled off.At XTELL, the same engineering team writes both the device firmware and the companion mobile app (as in our 433MHz security linkage system with Flutter mobile apps and backend OTA/MQTT telemetry), so BLE packet framing, GATT caching, and OTA recovery are tested end-to-end on real phones before release.
Before shipping your first BLE OTA release, verify these five test cases on the bench (an illustrative release gate):
1. Pull battery mid-transfer at 50% download -> device boots old image cleanly.
2. Corrupt 1 byte in staged image -> bootloader rejects signature before swap.
3. Flash deliberately broken v+1 app (hangs before confirm) -> watchdog resets, bootloader rolls back.
4. Change GATT characteristic UUIDs in v+1 -> mobile app receives Service Changed and rediscovers.
5. Measure sleep current after failed/aborted OTA -> peripherals return to budgeted uA baseline.
Whether you are building a wearable, medical sensor, industrial node, or connected consumer device, XTELL delivers complete firmware development, mobile app integration, and end-to-end IoT development across Nordic nRF52/nRF53, ESP32/ESP32-S3, STM32, and Apollo2 platforms.
See also our guides on battery-powered IoT sleep current budgeting and low-power wireless IoT hardware design, or send your product requirements via our contact page.
Production devices should use dual-bank (A/B) OTA on internal flash or stage the encrypted image on external SPI/QSPI flash before swapping. Single-bank OTA leaves the device bricked if power drops or the link breaks mid-update.
Throughput depends on negotiated ATT MTU, Data Length Extension (DLE), PHY rate (1M vs 2M), and the connection interval accepted by the phone OS. Dynamic interval negotiation during DFU plus paged acknowledgments avoids buffer overflows and keeps transfers predictable.
Yes. XTELL develops BLE firmware (Nordic, ESP32/ESP32-S3, Apollo2, STM32), mobile apps (Flutter, Android, iOS), and cloud backends under one team so GATT tables, provisioning, and OTA recovery are tested end-to-end.
Contact us for customized solutions and quotes