Skip to content

Commit c000159

Browse files
committed
Adding small README describing what bin2ota.py does and how its used
1 parent 666d3e9 commit c000159

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

extras/tools/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
`bin2ota.py`
2+
============
3+
This tool can be used to extend (actually prefix) a binary generated with e.g. the Arduino IDE with the required length and crc values required to perform an OTA (Over-The-Air) update of the firmware.
4+
5+
### How-To-Use
6+
```bash
7+
./bin2ota.py sketch.bin sketch-ota.bin
8+
```
9+
#### `sketch.bin`
10+
```bash
11+
0000000 8000 2000 749D 0000 7485 0000 7485 0000
12+
0000010 0000 0000 0000 0000 0000 0000 0000 0000
13+
0000020 0000 0000 0000 0000 0000 0000 7485 0000
14+
0000030 0000 0000 0000 0000 7485 0000 74F1 0000
15+
...
16+
```
17+
* `length(sketch.bin) = 0x0003'A5E0`
18+
* `CRC32(sketch.bin) = 0xA9D1'265B`
19+
20+
#### `sketch-ota.bin`
21+
```bash
22+
0000000 A5E0 0003 265B A9D1 8000 2000 749D 0000
23+
0000010 7485 0000 7485 0000 0000 0000 0000 0000
24+
0000020 0000 0000 0000 0000 0000 0000 0000 0000
25+
0000030 0000 0000 7485 0000 0000 0000 0000 0000
26+
...

0 commit comments

Comments
 (0)