diff options
author | Ayke van Laethem <[email protected]> | 2023-05-06 18:16:38 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2023-05-13 09:52:42 +0200 |
commit | 6435f62dcc34dd64ac7e5d57532e260a34d11c3e (patch) | |
tree | 540185e4301375dc4a6d37bea0d16bda3cdfadd0 /go.mod | |
parent | f4c8c37b7b4a618574f8255b7b089b34f44a247e (diff) | |
download | tinygo-6435f62dcc34dd64ac7e5d57532e260a34d11c3e.tar.gz tinygo-6435f62dcc34dd64ac7e5d57532e260a34d11c3e.zip |
builder: implement Nordic DFU file writer in Go
This avoids a dependency on nrfutil. I have verified that it creates
equivalent zip files to a wasp-os DFU zip file I downloaded here:
https://github.com/wasp-os/wasp-os/releases/
I have also tested that it produces valid DFU files that can be uploaded
using the dfu.py program here to my PineTime:
https://github.com/wasp-os/ota-dfu-python/tree/3d6fd30d33c2b20bc86ff6b9269fddf4a1d4c7c6
There are some minor differences in the generated file that should not
matter in practice (JSON whitespace, firmware file name, zip
compression).
Diffstat (limited to 'go.mod')
-rw-r--r-- | go.mod | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -13,6 +13,7 @@ require ( github.com/marcinbor85/gohex v0.0.0-20200531091804-343a4b548892 github.com/mattn/go-colorable v0.1.8 github.com/mattn/go-tty v0.0.4 + github.com/sigurn/crc16 v0.0.0-20211026045750-20ab5afb07e3 go.bug.st/serial v1.3.5 golang.org/x/sys v0.4.0 golang.org/x/tools v0.5.1-0.20230114154351-e035d0c426c8 |