Updating bluetooth bluecore flash using iwrap

The i WRAP library is a generic implementation of parser for the AT-style command interface used by Bluegiga's i WRAP firmware that runs on their classic Bluetooth modules (WT11i, WT12, WT32/WT32i, and WT41).The core of the library is a byte-by-byte parser routine which processes all data coming from i WRAP, performs basic state tracking, and triggers event callbacks for all known events generated by the firmware.It also includes a few routines for encoding and decoding i WRAP MUX frames, which makes it far easier to use the powerful MUX mode that allows simultaneous multiple connection management.

updating bluetooth bluecore flash using iwrap-27

Updating bluetooth bluecore flash using iwrap is allen payne dating

Note that i WRAP uses an AT-style command interface, which means you have the option to use it with serial terminals or just about anything you might want to.

Pin assignments for certain hosts are included in the host-specific subfolders in this repository (for example, the Arduino README file includes notes about the Arduino Uno, Arduino Pro Mini, Arduino Leonardo, Arduino Mega, Teensy 2.0, and Teensy 2.0).

The above points do not concern the OTA transfer mechanism implemented on the client side, although the GATT structure mentioned in the fourth point is related.

The client-side implementation involves only reading the binary firmware image produced by the SDK, and using GATT methods to initiate the process, transfer the data, and trigger the DFU-mode reset. The OTA image file format is divided into 2 k Byte pages of data.

This setting persists across resets and will make manual communication through a serial terminal very difficult.

MUX mode is fantastic for microcontrollers, but not so much for humans.

A mismatch between these assets may occur should the new driver overlaps a few of the methods which are already used on one of the older drivers.

This kind of clash is usually dealt with by upgrading the driver, and even by removing the fresh driver and reinstalling it anew.

With a CC debug programming interface, you can rewrite the entirety of the flash space available on the module, including the hardware configuration, license key, and bootloader. These areas may be modified using DFU: It is extremely helpful to break out the debug interface somewhere in your design as a backup/failsafe, even if only to very small test pads--at least until you have completely finished the firmware development process.

There are a few preliminary steps that you have to go through before you can use OTA DFU: All of the four prerequisites above concern what needs to be in place already on the receiving end (typically BLE peripheral / GATT server) in order for an OTA firmware update to take place.

There are three DFU mechanisms available depending on the module in use: This article describes the OTA (over-the-air) DFU method for performing a firmware update.


  1. "Whatever Eddie's got, that's what you spend your life looking for.

  2. The couple were recently seen holding hand while walking down the street.

  3. You agree to provide accurate and complete account information and update your information when it changes.

  4. This project is a system to reduce our power consumption, particularly when we’re not there.

  5. The development of radiocarbon dating has had a profound impact on archaeology.

Comments are closed.