Saturday, September 5, 2015

Creating System Workbench for STM32 projects using STM32CubeMX

The output of CubeMX is not compatible with the current System Workbench. The procedure I outline here is a quick method of getting them to work together.


Tools required:

  • Eclipse IDE for C/C++ Developers,  Version: Kepler Service Release 2
  • System Workbench for STM32 - C/C++ Embedded Development Tools for MCU 
  • External Tools for Linux (64 bits) 1.3.0.201507241112 fr.ac6.feature.mcu.externaltools.linux64.feature.group Ac6
  • STM32CubeMX,  Version 4.9.0  STM32Cube V1.0

Create Eclipse Project

Create a new C project. Select makefile project / makefile project, ac6 compiler.


Create Cube project

The project location is the same as the eclipse project workspace.
Refresh the project in Eclipse.

Create Debug folder

Do this in eclipse project explorer.

Copy makefile into Debug folder using eclipse project explorer. The
Makefile is the one I described in a previous post.  (If your Cube project uses any middleware add the middleware directories to the makefile.)

Build

Create Debug configuration. Modify C/C++ Build, Builder Settings, Build directory.
Make sure the active configuration is 'Debug' then hit 'Build'.

Debug

Create new debug configuration.
Press 'New' button.
The default settings should be correct. Hit Debug.

Release

Create Release directory & configuration. Copy makefile and modify optimization.

No comments: