Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions tcl/target/stm32h5x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@ proc stm32h5x_get_chipname {} {

# like mrw, but with target selection
proc stm32h5x_mrw {used_target reg} {
set value ""
$used_target mem2array value 32 $reg 1
return $value(0)
return [$used_target read_memory $reg 32 1]
}

# like mmw, but with target selection
Expand Down Expand Up @@ -267,12 +265,6 @@ $_CHIPNAME.cpu configure -event halted {
stm32h5x_enter_debug
}

$_CHIPNAME.cpu configure -event trace-config {
# Set TRACE_IOEN and TRACE_EN; TRACE_MODE is set to async; when using sync
# change this value accordingly to configure trace pins assignment
stm32h5x_mmw $_CHIPNAME.ap0 0xE0044004 0x00000030 0
}

proc get_pstate {} {
set optsr [mrw 0x40022050]
set pstate [expr {($optsr >> 8) & 0xFF}]
Expand Down