Cannot debug using openOCD
Hello everyone,
I am trying to configure SW4STM32 in order to do some on-device debugging using OpenOCD. Everything seems quite straightforward and the getting started guide doesn’t say much about it (just create the configuration and go for it!). However, I keep getting the same recurrent error constantly while trying to debug an example from HAL (a popup window from the IDE):
Error in final launch sequence
Failed to execute MI command:
symbol-file C:\STM32Cube_FW_F2_V1.3.0\Projects\STM322xG_EVAL\Examples\UART\UART_Hyperterminal_DMA\SW4STM32\STM322xG_EVAL\Debug\STM322xG_EVAL.bin
Error message from debugger back end:
`C:\STM32Cube_FW_F2_V1.3.0\Projects\STM322xG_EVAL\Examples\UART\UART_Hyperterminal_DMA\SW4STM32\STM322xG_EVAL\Debug\STM322xG_EVAL.bin’: can’t read symbols: File format not recognized.
`C:\STM32Cube_FW_F2_V1.3.0\Projects\STM322xG_EVAL\Examples\UART\UART_Hyperterminal_DMA\SW4STM32\STM322xG_EVAL\Debug\STM322xG_EVAL.bin’: can’t read symbols: File format not recognized.
I have been searching around the net and I haven’t succeeded finding any specific solution, just some references to similar problems being caused by 64-bit architectures.
As for OpenOCD, it shows some messages, but nothing indicating any errors. Adapter speed, adapter_nsrst_delay, “unable to match requested speed” x2, clock speed, STLINK v2, using STLINK api, voltage and last, the cpu and “hardware has 6 breakpoints, 4 watchpoints”.
Any ideas on why this one pops out? I have set a similar environment in an std Eclipse CDT release, I just don’t get why this keeps happening...
Thanks in advance!