UNPKG

1.1 kBMarkdownView Raw
1###Beware
2
3If updating the BLE module goes wrong and the script aborts prior to completion, it's possible (and probable) that you won't be able to use the module again without buying more hardware (namely, a CC debugger and a windows machine).
4
5###Process
6To use the update process, you must have access to the generated hex file from the BlueGiga Software Update Tool (only runs on Windows). Either use the latest build from this repo or generate your own firmware using their tool.
7
8Then, run the hex_to_buffer.py script with the name of hex file as the first argument. This script parses an intel hex file and extracts only the data into a file.
9
10Then, in the directory above, `tessel run ble-update-tool.js` in order to open that new image, put the BLE module into DFU mode, and load the new firmware. This process takes a couple minutes.
11
12Running the following commands should update your firmware.
13
14```bash
15cd <root of ble module>
16cd firmware_update/update_lib
17python hex_to_buffer.py v1.0.2.hex
18cd ../
19tessel run ble-update-tool.js
20```
21
22Once that completes, the firmware should be updated.