OpenOCD 0.6 with STLink on Mac OS X

Hey all,

I’m having issues installing the latest OpenOCD which has STLink (which I want to use with an STM32F4 Discovery board) on my Mac with OS X Moutain Lion.

So, I run ./configure --enable-stlink, it performs a few hundreds checks and then tells me it requires libusb or libusb-1.0. Which I have already installed, using MacPorts as usual. Why is OpenOCD’s config script still unhappy ? Anyone got that problem too ? Thanks for the help in advance !

Now trying from Git repository, but same story. Bootstrap requires a little macro change (AM to AC) but once that is done, it runs fine. Then configure still complains about libusb … HELP !

Ok, one way or another, I managed to install the STLink interface, I don’t know how. But now OpenOCD works very shakingly with the F4discovery - it keeps telling me the “target is already running an algorithm” … I get like on go at loading my program in the STM32F407’s flash and then it won’t do it again.

But still, I haven’t figured out how I got stlink to be installed. So this topic is still open. Anyone, any clues ?

Same problem on OpenOCD 0.7 on linux, any solution found ?

Try doing a reset and halt after erasing the flash and then program the flash.

I have had similar issues with the F4Discovery board, seems that the algorithm

running the flash erase does its job ok but desnt terminate properly leaving OpenOCD confused.

Inserting an extra reset halt makes things work, its a bit silly but no problem if placed in a script.

Algorithm is not used for erase so unsure what could be causing you issues.

Can I suggest enabling the debug log and posting as much info as possible, latest git master (including 0.7.0) should be pretty reliable for the stlink and stm32.

With regards to issues building on Mac, afraid I have no access to test, but we have had no other reports of issues. Again as much info as you can provide may enable us to help resolve your problem.

Cheers

Spen