From 86c3f744ed8e9a21fafd803000e57031006f093d Mon Sep 17 00:00:00 2001 From: marqs Date: Sat, 11 Mar 2023 12:36:18 +0200 Subject: [PATCH] update programming files / scripts * do not generate .map file for .jic * wait for USB Blaster if needed when reprogramming SW * set correct bit to halt pulpino core before writing image --- ossc.cof | 2 +- scripts/rv-reprogram.tcl | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ossc.cof b/ossc.cof index 5461bbd..acdcc88 100644 --- a/ossc.cof +++ b/ossc.cof @@ -19,7 +19,7 @@ 0 1 - 1 + 0 0 diff --git a/scripts/rv-reprogram.tcl b/scripts/rv-reprogram.tcl index 80be390..7e1b80a 100644 --- a/scripts/rv-reprogram.tcl +++ b/scripts/rv-reprogram.tcl @@ -1,5 +1,13 @@ #Select the master service type and check for available service paths. -set service_paths [get_service_paths master] +while 1 { + set service_paths [get_service_paths master] + if {[llength $service_paths] > 0} { + break + } + puts "Refreshing connections..." + refresh_connections + after 100 +} #Set the master service path. set master_service_path [lindex $service_paths 0] @@ -8,7 +16,7 @@ set master_service_path [lindex $service_paths 0] set claim_path [claim_service master $master_service_path mylib] puts "Halting CPU" -master_write_32 $claim_path 0x0 0x1 +master_write_32 $claim_path 0x0 0x10000 puts "Writing block RAM" master_write_from_file $claim_path mem_init/sys_onchip_memory2_0.bin 0x10000