summaryrefslogtreecommitdiffstats
path: root/oncology/dpfhack_display/fw/update.py
blob: 21ef483837f1e454687f184328acd32110b9c4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import struct
import sys
sys.path.append("./Debug")
import dpf
import time

d = dpf.open("usb0")

offset = 0x380000

print "Writing firmware..."
d.patchSector(0x0, offset, sys.argv[1])

d.close()