cancel
Showing results for 
Search instead for 
Did you mean: 

OpenOCD with ST-Link/V2 onboard stm32f4discovery board

halherta2
Associate II
Posted on March 13, 2012 at 21:03

 I looked at the openocd 0.6.0 scripts and found those for  stlink v/2 interface and stm32f4 discovery.  Does anyone know how would I setup openocd to make it communicate with the stm32f4discovery board via the onboard stlink v/2? 

I have not found any instructions for this particular setup online. I also noticed that the official openOCD 0.5.0 release does not have these script files in them...only the 0.6.0 version

Thanks,

halherta

#stlink-openocd
2 REPLIES 2
sjo2
Associate II
Posted on March 16, 2012 at 12:18

The stlink support in OpenOCD is relatively new, however it is working well.

To start using you have two options

1. Find a prebuilt version

2. build from source.

Personally i would opt for 2, the main reason being is that quite a bit of work is happening for stlink support so it may help to be using the latest and greatest.

http://www.freddiechopin.info/en/download/category/10-openocd-dev

is a good location for prebuilt windoze versions - i have not tested these however.

Once you get the binary then it is just a matter of selecting the correct scripts, eg. for a STM32F4DISCOVERY you would use:

openocd -f board/stm32f4discovery.cfg

Also have a read through the online

http://openocd.sourceforge.net/documentation/online-docs/

.

Cheers

Spen

halherta2
Associate II
Posted on March 16, 2012 at 17:28

Spen,

Thanks alot! I will give it a try. 

Halherta