mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-01-01 21:37:05 +03:00
Отключение прерываний ядра перед запуском драйвера
This commit is contained in:
parent
eefc1f6325
commit
72179ae50c
@ -299,6 +299,7 @@ def write_memory(pages: Dict[int, List[int]], openocd: OpenOcdTclRpc, driver_pat
|
|||||||
|
|
||||||
bytes_list = combine_pages(pages)
|
bytes_list = combine_pages(pages)
|
||||||
openocd.halt()
|
openocd.halt()
|
||||||
|
openocd.run("riscv.cpu set_reg {mstatus 0 mie 0}") # Отключение прерываний
|
||||||
|
|
||||||
STATUS_CODE_M = 0xFF
|
STATUS_CODE_M = 0xFF
|
||||||
|
|
||||||
|
|||||||
@ -377,6 +377,8 @@ def write_pages_by_sectors(pages: Dict[int, List[int]],
|
|||||||
result = 0
|
result = 0
|
||||||
|
|
||||||
openocd.halt()
|
openocd.halt()
|
||||||
|
openocd.run("riscv.cpu set_reg {mstatus 0 mie 0}") # Отключение прерываний
|
||||||
|
|
||||||
init(openocd)
|
init(openocd)
|
||||||
# openocd.run("rwp")
|
# openocd.run("rwp")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user