From: OpenOCD-Gerrit <ope...@us...> - 2020-11-04 17:36:50
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 80a5285ea6157706075e783fd6cb1ad09875d660 (commit) via 3099d52d78ce3703cefa0a066a879fb95fd047d3 (commit) from 49b7099def030accbceb9a92782fb389d04e8e09 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 80a5285ea6157706075e783fd6cb1ad09875d660 Author: Tarek BOCHKATI <tar...@gm...> Date: Wed Oct 14 14:14:09 2020 +0100 stm32h7x.cfg: alignment with RM0399 rev3 in RM0399 rev2, there was these bits in DBGMCU_CR registers: - DBGSTBY_D3 : bit 7 - DBGSTOP_D3 : bit 8 these bits have been changed to reserved in rev3 Change-Id: I9d10d90e383795dc8e25a117d59fa065dc594610 Signed-off-by: Tarek BOCHKATI <tar...@gm...> Reviewed-on: http://openocd.zylin.com/5861 Tested-by: jenkins Reviewed-by: Christopher Head <ch...@za...> Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/tcl/target/stm32h7x.cfg b/tcl/target/stm32h7x.cfg index 43a8b024e..5220af3b1 100644 --- a/tcl/target/stm32h7x.cfg +++ b/tcl/target/stm32h7x.cfg @@ -149,8 +149,10 @@ $_CHIPNAME.cpu0 configure -event examine-end { stm32h7x_dbgmcu_mmw 0x004 0x00600000 0 # Enable debug during low power modes (uses more power) - # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP in D3, D2 & D1 Domains - stm32h7x_dbgmcu_mmw 0x004 0x000001BF 0 + # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP D1 Domain + stm32h7x_dbgmcu_mmw 0x004 0x00000007 0 + # DBGMCU_CR |= DBG_STANDBY | DBG_STOP | DBG_SLEEP D2 Domain + stm32h7x_dbgmcu_mmw 0x004 0x00000038 0 # Stop watchdog counters during halt # DBGMCU_APB3FZ1 |= WWDG1 commit 3099d52d78ce3703cefa0a066a879fb95fd047d3 Author: Tomas Vanek <va...@fb...> Date: Thu Oct 29 20:41:54 2020 +0100 jtag/tcl: fix memory leak in error return Clang static analyzer reported: Warning: line 196, column 3 Potential leak of memory pointed to by 'fields' Free allocated memory pointed by 'fields' and fields[i].in_value Change-Id: I0b3935d9a235544afc03e39a4648319047e65815 Signed-off-by: Tomas Vanek <va...@fb...> Reviewed-on: http://openocd.zylin.com/5906 Reviewed-by: Antonio Borneo <bor...@gm...> Tested-by: jenkins Reviewed-by: Jonathan McDowell <noo...@ea...> diff --git a/src/jtag/tcl.c b/src/jtag/tcl.c index 153a98e1b..2fa162e56 100644 --- a/src/jtag/tcl.c +++ b/src/jtag/tcl.c @@ -194,6 +194,11 @@ static int Jim_Command_drscan(Jim_Interp *interp, int argc, Jim_Obj *const *args retval = jtag_execute_queue(); if (retval != ERROR_OK) { Jim_SetResultString(interp, "drscan: jtag execute failed", -1); + + for (i = 0; i < field_count; i++) + free(fields[i].in_value); + free(fields); + return JIM_ERR; } ----------------------------------------------------------------------- Summary of changes: src/jtag/tcl.c | 5 +++++ tcl/target/stm32h7x.cfg | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) hooks/post-receive -- Main OpenOCD repository |