Skip to content

Digital Me

Electronics, Computers at leisure time

Menu
  • Home
  • Contact
  • About
Menu
ST2Makefile

TrueSTUDIO STM32 project to GCC Makefile converter

Posted on April 30, 2015

Since I wrote the STM32CubeMX to Makefile converter, a lot of people have been helping to improve the project. Thanks! Meanwhile I also heard a lot of complaints about the quality of STM32Cube codes, for example, the thread here. Although I believe STM32Cube’s quality will eventually improve, at the moment there are still applications for the good old “Standard Peripheral Library” and other ST middlewares. Therefore I wrote another program, that converts most of ST’s example project into Makefile project.

The new utility, named ST2Makefile, is available on https://github.com/baoshi/ST2Makefile

My limited testing shows it works for most example projects in ST’s library package, as well as STM32CubeMX exported projects. One thing needs tweaking could be that some ST’s example project contains duplicated source files. If you receive error message such as “Symbol already defined in XXX” during linking, please check the SRCS section for any duplicated source entries.

The usage is changed a little since CubeMX2Makefile.py, now you should run:

[code light=”true”]
ST2Makefile.py <TrueSTUDIO project location>
[/code]

where you can identify TrueSTUDIO project location by locating “.project” and “.cproject” files inside it.

 

As usual, some useful resources:

Useful links

ST2Makefile: https://github.com/baoshi/ST2Makefile
ARM GCC: https://launchpad.net/gcc-arm-embedded

My packaged GNU Make for Win32: https://ba0sh1com.files.wordpress.com/2020/09/2c1c9-make.zip

3 thoughts on “TrueSTUDIO STM32 project to GCC Makefile converter”

  1. Matthew says:
    May 13, 2015 at 2:23 am

    I receive the following error now during compiling with the new tool. I have created a simple GPIO project called blah in CubeMX 4.7.1 and this is the result.

    13:20:04 **** Incremental Build of configuration Default for project blah ****
    make all
    make: *** No rule to make target `build/system_stm32f1xx.o’, needed by `build/blah.elf’. Stop.

    13:20:05 Build Finished (took 453ms)

    Any thoughts?

    Reply
  2. Baoshi says:
    May 13, 2015 at 8:48 am

    Upgrading CubeMX 4.7.1 now. Can you send me the .ioc file for diagnose? mail (at) ba0sh1 (dot) com

    Reply
  3. Matthew says:
    May 13, 2015 at 10:33 pm

    File sent to you email.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Arduino ARM AVR Charger CNC Distance Sensor emWin ESP31 ESP32 ESP8266 FT230X GCC iPad JTAG LED Strip Makefile Maker Faire MF70 OLED Oscilloscope PCB PIR Sensor Pogo pin PWM Raspberry Pi RGB LED Rigol RTOS Saleae SEGGER Shopping SPI SSD1305 SSD1306 STM8 STM32 STM32Cube STM32CubeMX Storage TFT Tindie Tool USB Power VFD Workbench

Recent Posts

  • Arduino Redesigned – Maker UNO Review
  • Is ESP8266 I/O really 5V tolerant?
  • First sight into ESP32
  • ESP8266 MQTT client on RTOS
  • Maker Faire, Yearly Review, and Rant

Archives

  • March 2018
  • August 2016
  • December 2015
  • August 2015
  • July 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • July 2014
  • May 2014
  • March 2014
  • January 2014
  • December 2013
  • November 2013
  • August 2013
  • July 2013
  • May 2013
  • March 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • June 2012
  • May 2012

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2023 Digital Me | Design: Newspaperly WordPress Theme