integrate general improvements from Ossc Pro

* OSD timing optimizations and cursor color selection
* flash robustness fixes
This commit is contained in:
marqs committed 2025-08-21 18:51:46 +03:00
1 parent e09f3c88b0
commit 05a9e351d4
16 files changed
+107 -15687

No files matched your search

+7 -4
View File
@@ -64,21 +64,24 @@ for {set i 0} {$i<$num_sectors} {incr i} {
}
puts "Writing flash"
# writes garbage and occasionally hangs (bug in generic serial flash IF?)
# JTAG to Avalon master does not support sink backpressure
#master_write_from_file $claim_path mem_init/flash.bin $flash_imem_base
# work around the issue by writing into small chunks so that FIFO does not fill up
# work around lack of backpressure support by writing chunks of master FIFO size
set chunks [llength [glob mem_init/chunks/*]]
puts "Programming $chunks chunks"
set addr $flash_imem_base
for {set i 0} {$i<$chunks} {incr i} {
set file [format "flash.%04d" $i]
master_write_from_file $claim_path mem_init/chunks/$file $addr
set addr [expr $addr + 64]
set addr [expr $addr + 1024]
}
#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
# flush flashctrl cmd fifo to ensure writes have finished
master_read_32 $claim_path $flash_base 1
puts "Resetting system"
master_write_32 $claim_path 0x40 0x00000003
after 1
@@ -86,4 +89,4 @@ master_write_32 $claim_path 0x40 0x00000001
master_write_32 $claim_path 0x40 0x00000000
close_service master $claim_path
puts "Done"
puts "Done"