1 | ###Beware
|
2 |
|
3 | If 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
|
6 | To 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 |
|
8 | Then, 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 |
|
10 | Then, 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 |
|
12 | Running the following commands should update your firmware.
|
13 |
|
14 | ```bash
|
15 | cd <root of ble module>
|
16 | cd firmware_update/update_lib
|
17 | python hex_to_buffer.py v1.0.2.hex
|
18 | cd ../
|
19 | tessel run ble-update-tool.js
|
20 | ```
|
21 |
|
22 | Once that completes, the firmware should be updated.
|