stm32duino core with System Workbench for bluepill
Rick Kimball Thu Apr 28, 2016 7:14 pm
I put together our stm32duino core as an importable eclipse project. It is based on using the http://www.openstm32.org System Workbench eclipse plugin. My approach is different than what most people do, this setup isn’t using the Arduino Plugin. The required defines, and include paths, and executable paths are just set in the eclipse project properties. This project configuration might give you a quick start template for using a bluepill board and an stlink dongle with bare metal eclipse using the stm32duino arduino core. I’ve included a recent snapshot of the master github tree and made a few source code tweaks. The example “sketch” is in src/asciitable.cpp.
I’ve made a few assumptions. I assume you are using linux. I expect you to have a working Arduino 1.6.x with the arm-none-eabi-gcc installed. I assume you have eclipse mars installed along with the System Workbench for STM32 from the openstm32.org website. I assume you are using a red or blue pill stm32f103 board that uses the PA12 1.5k pull up resistor. I’m assuming you are going to program it using an Stlink V2 dongle, either the ebay clone, a real one stlink, or a discovery board wired to program an external board (the bluepill).
Just use the menu File/Import… select the General tab and the second selection item named “Existing Project into Workspace”. On the Import Dialog, click the “Select archive file:” radio button and select the bluepill.zip from the directory where you saved the file below
Then a quick build and debug should get you going.
If this get sufficient interest I’ll write more about it.
I put the archived project in bluepill.zip in a gist as it is too big to attach directly here:
https://gist.github.com/RickKimball/aa7 … uepill.zip
https://gist.github.com/RickKimball/aa7 … 0b8f92eba9
-rick
Running Debug and looking at the GPIO registers:
- debug_01.gif
- debug_01.gif (113.7 KiB) Viewed 3691 times
