From 41549e09571aecdfcb4f1618c9c044b3978b8d2b Mon Sep 17 00:00:00 2001 From: marqs Date: Sat, 19 Apr 2025 12:32:51 +0300 Subject: [PATCH] use ndmreset after reprogram --- scripts/rv-reprogram.tcl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/scripts/rv-reprogram.tcl b/scripts/rv-reprogram.tcl index 15ba4a0..23577bc 100644 --- a/scripts/rv-reprogram.tcl +++ b/scripts/rv-reprogram.tcl @@ -79,13 +79,11 @@ for {set i 0} {$i<$chunks} {incr i} { #master_read_to_file $claim_path mem_init/flash_readback.bin $flash_imem_base $bin_size #master_read_to_file $claim_path mem_init/ram_readback.bin 0x010000 65536 -close_service master $claim_path - - -set jtag_debug_list [get_service_paths jtag_debug] -set jd [ lindex $jtag_debug_list 0 ] -open_service jtag_debug $jd puts "Resetting system" -jtag_debug_reset_system $jd -close_service jtag_debug $jd -puts "Done" +master_write_32 $claim_path 0x40 0x00000003 +after 1 +master_write_32 $claim_path 0x40 0x00000001 +master_write_32 $claim_path 0x40 0x00000000 + +close_service master $claim_path +puts "Done" \ No newline at end of file