mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-10-29 18:11:13 +03:00
Добавлена проверка успешного завершения записи сектора, обновлен лист изменений
This commit is contained in:
1 parent
304469890b
commit
298d46acd4
2 files changed
+23
-4
No files matched your search
@@ -429,7 +429,13 @@ def write_pages_by_sectors(pages: Dict[int, List[int]],
|
||||
else:
|
||||
bytes_list.extend([0]*256)
|
||||
|
||||
openocd.write_memory(0x02002000, 8, bytes_list)
|
||||
result = openocd.write_memory(0x02002000, 8, bytes_list)
|
||||
if result:
|
||||
print("ERROR!", flush=True)
|
||||
print("An error occurred while writing data to the buffer area!")
|
||||
print("Aborting...", flush=True)
|
||||
return 1
|
||||
|
||||
openocd.run(f"set_reg {{t6 {sector}}}")
|
||||
openocd.resume()
|
||||
wait_halted(openocd, 10) # ждем, когда watchpoint сработает
|
||||
|
||||
Reference in new issue
Block a user