mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-10-29 18:11:13 +03:00
remove useless reset
This commit is contained in:
1 parent
802a8a77c2
commit
ef7297f203
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user