update messages

This commit is contained in:
Sergey Shchelkanov 2024-02-02 18:00:38 +03:00
parent d834e39b28
commit baf9f26a6d
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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"