python script for progamming via solo bootloader

This commit is contained in:
Conor Patrick
2018-12-03 23:01:51 -05:00
parent 9b4b18e1a4
commit 5a96e82f4d
10 changed files with 144 additions and 15 deletions

View File

@@ -22,6 +22,8 @@ def get_firmware_object(sk_name, hex_file):
fw = base64.b64encode(fw.encode())
fw = to_websafe(fw.decode())
# start of firmware and the size of the flash region allocated for it.
# TODO put this somewhere else.
START = 0x08008000
END = START + 1024 * 186 - 8
@@ -58,5 +60,3 @@ if __name__ == '__main__':
wfile = open(sys.argv[3],'wb+')
wfile.write(json.dumps(msg).encode())
wfile.close()