(Edit: Now ST-Link works under Linux too, see "Captn's missing link") Debugging is possible only through some effort. Unfortunately, to my knowledge, the built-in ST-Link debugger does not work with Linux. Here's a list of alternative programming tools for the discovery. This free program from ST can be used to flash the microcontroller and to read and modify the memory contents on the fly. According to a forum post I read, the Keil toolchain works also in Linux under Wine. You need to register on the site to get to the download. There's a free version available of the Keil MDK-ARM-Basic toolchain, but it comes with a 32kB code size restriction. Keil MDK-ARM-Basic (Windows, under Wine in Linux)
ST User Manual for IAR Embedded Workbenchĭownload the Kickstart edition of IAR Embedded Workbench for ARM here You have to register it in order to get a license key. It's limited to 32kB code size, but otherwise it's fully functional. The Kickstart edition is a free version of the IAR Embedded Workbench.
According to a forum post I read, it doesn't work under Wine.ĭownload Atollic TrueSTUDIO for STM32 hereĮmcu.it tutorial: Start new project using Atollic & STM32VLDISCOVERYĮmcu.it tutorial: STM32 library examples in AtollicĮmcu.it tutorial: how to use the ST code examples with Atollic If you use Windows, this toolchain is probably the best & easiest choice to start with.
There is also a 30-day trial version available which has all the functionality of the Professional version. If you eventually use the Lite version to design an embedded product, they want you to note it in the user documentation of your product. With the free Lite version, you lose the C++ support, but you get unlimited code size and usage time. This is an Eclipse-based development platform that includes an optimizing C/C++ compiler, editor and a debugger. ST provides example code and documentation for three toolchains: Atollic TrueSTUDIO, IAR Embedded Workbench and Keil MDK-ARM.ĭownload ST's example firmware package hereīelow are some quick facts & links about the official toolchains. These are unfortunately only for Windows users. First off, I'll explain the easy, official options. Here's an overview of all the tools I'm aware of. Fortunately, multiple options exist for also Linux users. All of the three official toolchains are for Windows, so Linux users have to think of something else. How to program the STM32VLDISCOVERY board? ST does not provide a toolchain themselves, instead there are three different officially supported toolchains available, for which ST has provided simple tutorials.