stbenn commented on PR #15718:
URL: https://github.com/apache/nuttx/pull/15718#issuecomment-2775811235

   > Thank you @kywwilson11, great work! :-)
   > 
   > This STM's OpenOCD does not build for me.. will play in a free moment.. 
thanks for the hint :-)
   
   Some more info: we are using Nucleo-H563ZI development boards, which have 
the STM32H563ZIT6U processor. While the ST OpenOCD fork does have support for 
H5, it appears to have a few oddities.
   
   I am using 
https://github.com/STMicroelectronics/OpenOCD/commit/34afaa939d5d7512efc37110d0a266ea9004b15c.
 You can remove a deprecation error by modifying `tcl/target/stm32h5x.cfg` 
lines 116-120:
   
   Source from commit:
   ```
   proc stm32h5x_mrw {used_target reg} {
     set value ""
     $used_target mem2array value 32 $reg 1
     return $value(0)
   }
   ```
   
   Modified version:
   ```
   proc stm32h5x_mrw {used_target reg} {
     set value [read_memory $reg 32 1]
     return [lindex $value 0]
   }
   ```
   
   Not sure if this is necessary in newer versions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to