SparkFun Forums 

Where electronics enthusiasts find answers.

Open source ARM Debugger
By goeck
#167755
Hey everyone,

I use OpenOCD to flash my compiled ChibiOS code to STM32 devices, which works fine with the STM32-Discovery board.
Now I switched to STM32F050 aka STM32F031, but OpenOCD 0.7 doesn't know the device.
As I couldn't really gather information about updates, is it already possible to use OpenOCD with those newer devices? At th3e moment I use ST-Link, which is not my favourite flavour.
I will try CoFlash next.

Thanks for your appreciated ansers.

Regards from Germany
By goeck
#167839
Actually I have gotten this output from OpenOCD 0.7:
Code: Select all
Open On-Chip Debugger 0.7.0 (2013-05-05-10:41)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.sourceforge.net/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Info : This adapter doesn't support configurable speed
Info : STLINK v2 JTAG v16 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : Target voltage: 2.922913
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
Warn : target was in unknown state when halt was requested
target state: halted
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x08000568 psp: 0x200007a0
dumped 32000 bytes in 0.670001s (46.642 KiB/s)
Info : device id = 0x10006444
Warn : Cannot identify target as a STM32 family.
Error: auto_probe failed
in procedure 'flash'
User avatar
By ntfreak
#167859
Your only option is to get a newer version of OpenOCD.

This will usually mean you will need to build from src, unless you can find a prebuilt version somewhere.

Spen