Sterling
Sterling
DIIDevHeads IoT Integration Server
Created by Sterling on 9/27/2024 in #firmware-and-baremetal
Debugging Issue with OpenOCD on STM32F411 in CLion
I'm using CLion (version X.X) for embedded development on an STM32F411 microcontroller with OpenOCD 0.11.0. While 'build' completes, the debugger fails with the following error:
Error executing event examine-end on target stm32f4x.cpu:
/usr/share/openocd/scripts/mem_helper.tcl:37: Error: wrong # args: should be "expr expression"
in procedure 'program'
Error executing event examine-end on target stm32f4x.cpu:
/usr/share/openocd/scripts/mem_helper.tcl:37: Error: wrong # args: should be "expr expression"
in procedure 'program'
This happens in the script (stm32f4x.cfg) on this line:
set new [expr ($old & ~$clearbits) | $setbits]
set new [expr ($old & ~$clearbits) | $setbits]
I'm on Fedora Linux 35, and I can upload code via STM32CubeIDE, so the connection is fine. I'm using an ST-Link V2J39S7. Any guidance on fixing this OpenOCD configuration would be appreciated. Thanks guys.
1 replies