2012-03-13 01:03 PM
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 versionThanks,halherta #stlink-openocd2012-03-16 04:18 AM
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 . Cheers Spen2012-03-16 09:28 AM
Spen,
Thanks alot! I will give it a try. Halherta