---
** [tickets:#382] errorin target/stm32h7x.cfg**
**Status:** new
**Milestone:** 0.11.0
**Created:** Thu Feb 09, 2023 10:06 PM UTC by Niki W. Waibel
**Last Updated:** Thu Feb 09, 2023 10:06 PM UTC
**Owner:** nobody
if i do connect to a STM32H7 target, i get
> Error executing event examine-end on target stm32h7x.cpu0:
/usr/bin/../share/openocd/scripts/target/stm32h7x.cfg:202: Error: wrong # args:
should be "expr expression"
in procedure 'stm32h7x_dbgmcu_mmw' called at file
"/usr/bin/../share/openocd/scripts/target/stm32h7x.cfg", line 166
in procedure 'stm32h7x_get_chipname' called at file
"/usr/bin/../share/openocd/scripts/target/stm32h7x.cfg", line 243
at file "/usr/bin/../share/openocd/scripts/target/stm32h7x.cfg", line 202
something seems to be wrong in line 202 (return statement):
~~~
# get _CHIPNAME from current target
proc stm32h7x_get_chipname {} {
set t [target current]
set sep [string last "." $t]
if {$sep == -1} {
return $t
}
return [string range $t 0 [expr $sep - 1]]
}
~~~
unfort i dont speak tcl …
---
Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is
subscribed to https://sourceforge.net/p/openocd/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.