Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
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'
This happens in the script (stm32f4x.cfg) on this line:
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.
CONTRIBUTE TO THIS THREAD