Skip to content

Commit f388a11

Browse files
committed
unoq: silence bogus error if loader/sketch needs reflashing
1 parent a6ea321 commit f388a11

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

variants/arduino_uno_q_stm32u585xx/flash_sketch.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,26 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
reset_config srst_only srst_nogate srst_push_pull connect_assert_srst
5+
if {$::tcl_platform(platform) eq "windows"} {
6+
set null_device NUL
7+
} else {
8+
set null_device /dev/null
9+
}
510
init
611
reset
712
halt
813
flash info 0
14+
log_output $null_device
915
if {[catch {flash verify_image ${filename0}}] != 0} {
16+
log_output default
1017
flash write_image erase ${filename0}
1118
}
19+
log_output $null_device
1220
if {[catch {flash verify_image ${filename1} 0x8100000 bin}] != 0} {
21+
log_output default
1322
flash write_image erase ${filename1} 0x8100000 bin
1423
}
24+
log_output default
1525
reset
1626
sleep 100
1727
mww 0x40036400 0xCAFFEEEE

0 commit comments

Comments
 (0)