diff --git a/mik32_spifi.py b/mik32_spifi.py index 05d4361..846f34f 100644 --- a/mik32_spifi.py +++ b/mik32_spifi.py @@ -402,7 +402,7 @@ def spifi_page_program( progress: str = "", dma: Union[DMA, None] = None ): - print(f"Writing page {ByteAddress:#010x}... {progress}", flush=True) + print(f"Writing Flash page {ByteAddress:#010x}... {progress}", flush=True) if byte_count > 256: raise Exception("Byte count more than 256") @@ -587,7 +587,7 @@ def check_pages(pages: Dict[int, List[int]], openocd: OpenOcdTclRpc, use_quad_sp return result if result == 0: - print("SPIFI page checking completed", flush=True) + print("SPIFI pages checking completed", flush=True) return 0 # # PROFILING IMPORTS @@ -700,5 +700,6 @@ def write_pages(pages: Dict[int, List[int]], openocd: OpenOcdTclRpc, use_quad_sp # # PROFILING GET STATS END if result == 0: - print("SPIFI page recording completed", flush=True) + # Прошивка страниц флеш памяти по SPIFI была завершена + print("Flashing of flash memory pages via SPIFI has been completed", flush=True) return 0 diff --git a/openocd-scripts/target/mik32.cfg b/openocd-scripts/target/mik32.cfg index 240888e..e3de59e 100644 --- a/openocd-scripts/target/mik32.cfg +++ b/openocd-scripts/target/mik32.cfg @@ -1,4 +1,6 @@ +proc my_init_proc { } { echo "Disabling watchdog..." } + proc init_targets {} { @@ -14,10 +16,13 @@ proc init_targets {} { set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -endian little -chain-position $_TARGETNAME -coreid 0 + + riscv.cpu configure -event reset-init my_init_proc } poll_period 200 init +riscv.cpu arm semihosting enable puts "init done"