mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 13:37:03 +03:00
remove useless reset
This commit is contained in:
parent
802a8a77c2
commit
ef7297f203
@ -9,13 +9,13 @@ from utils import bytes2words
|
||||
def write_file(filename):
|
||||
|
||||
with OpenOcdTclRpc() as openocd:
|
||||
openocd.reset_halt()
|
||||
openocd.halt()
|
||||
print(openocd.run("load_image {%s} 0x0" % Path(filename)))
|
||||
print("RAM write file maybe done")
|
||||
|
||||
|
||||
def write_segments(segments: List[Segment], openocd: OpenOcdTclRpc):
|
||||
openocd.reset_halt()
|
||||
openocd.halt()
|
||||
for segment in segments:
|
||||
print("Writing segment %s with size %d..." % (hex(segment.offset), segment.data.__len__()))
|
||||
segment_words = bytes2words(segment.data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user