I'm interested in buying an STM32F4 Discovery from ST Microelectronics. I'm using Mac OS X, 10.8 and would like to use a toolchain including

  • GCC
  • OpenOCD for debugging
  • Eclipse IDE / IntelliJ IDEA Ultimate

and this must work on my Mac.

Would this setup be possible at all?

  • 1
    \$\begingroup\$ I've done gcc and OpenOCD part - it's definately possible. Regarding to eclipse - i've not done that yet, but it should be no problem. \$\endgroup\$ – miceuz Feb 8 '13 at 7:38
  • \$\begingroup\$ I've been able to use github.com/texane/stlink on Linux and OSX after brief compile fixing to flash the stm32 Cortex M3 parts using the dirt cheap stlink/V2 boards as programmers, and GDB works. Haven't personally tried it with a Cortex M4 part but expect someone has that working. Watch out for prebuilt arm versions of gcc with broken compiler libraries though - wasted a day on one of those recently. \$\endgroup\$ – Chris Stratton Feb 8 '13 at 16:46

It's definitely possible. I haven't tried it yet but I did come across a post I found on hackaday that you might find useful.


Good luck!


I wrote a tutorial for setting up the STM32F3DISCOVERY on Mac OS X (tested on 10.8 and 10.9) using the GNU ARM toolchain, Eclipse and OpenOCD: http://www.davidrojas.co.uk/stm32f3discovery-on-mac-os-x-using-eclipse-gcc-arm-and-openocd/

It should work with the STM32F4DISCOVERY too (they are both Cortex-M4, and use the same debugger), just change the line source [find target/stm32f3x_stlink.cfg] in the OpenCD script part for source [find target/stm32f4x_stlink.cfg] And when creating a new project, select the STM32F4xx option instead of STM32F3xx.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.