This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8816

-- gerrit

commit 01719e86477c48d417128eba3a6a22b1e3363212
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Sun Mar 23 00:32:26 2025 +0100

    tcl: target: stm32mp13x: add example of read-buffer event
    
    In the event:
    - on target halted return '-1' to continue with the default read;
    - on target not halted hijack the read and issue it through the
      AXI bus.
    
    Change-Id: I0a70ab66e3bc84f59d2fb3697812edc96af2fceb
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/tcl/target/stm32mp13x.cfg b/tcl/target/stm32mp13x.cfg
index bcf25c9049..eee98168bf 100644
--- a/tcl/target/stm32mp13x.cfg
+++ b/tcl/target/stm32mp13x.cfg
@@ -100,3 +100,10 @@ $_CHIPNAME.cpu configure -event reset-deassert-pre  
{$::_CHIPNAME.cpu arp_examin
 $_CHIPNAME.cpu configure -event reset-deassert-post {toggle_cpu_dbg_claim0; 
dbgmcu_enable_debug}
 $_CHIPNAME.ap1 configure -event examine-start       {dap init}
 $_CHIPNAME.ap1 configure -event examine-end         {dbgmcu_enable_debug}
+
+$_CHIPNAME.cpu configure -event read-buffer helper_read_buffer
+
+proc helper_read_buffer {address count} {
+       if {[[target current] curstate] == "halted"} {return -1}
+       $::_CHIPNAME.axi read_buffer $address $count
+}

-- 

Reply via email to