Skip to main content
CKugl.1
Senior
February 20, 2022
Question

How to publish an STM32CubeIDE project on Github

  • February 20, 2022
  • 2 replies
  • 2291 views

I'd like to publish an STM32CubeIDE project on Github, but I haven't found a method that works. I'd like to be able to upload my project from

STM32CubeIDE

Version: 1.8.0

Build: 11526_20211125_0815 (UTC)

OS: Linux, v.5.13.0-28-generic, x86_64 / gtk 3.24.20

Java version: 11.0.11

on Linux to Github (https://github.com/carlk3/Digital-Automotive-Generator-Voltage-Regulator) in such a way that it could be downloaded and built by others, including those running on Windows.

Has anyone ever done this, or am I the first to try it?

This topic has been closed for replies.

2 replies

Pavel A.
February 21, 2022

Add the .cproject file, it is required.

The next issue is where will be ST HAL and cmsis drivers, so that it works for both Linux and Windows users.

CKugl.1
CKugl.1Author
Senior
March 28, 2022

Thanks; I've added the .cproject file.

I've now got it working successfully with EGit (https://marketplace.eclipse.org/content/egit-git-integration-eclipse).

The big problem was that I use the "Generate peripheral initialization as a pair of .c/.h files per peripheral", so a file named "freertos.c" is generated. In order to export various queue, timer, mutex, and event handles from that file I had created a file name "freertos.h". On Windows, which isn't so picky about case sensitivity, this conflicts with "Middlewares\Third_Party\FreeRTOS\Source\include\FreeRTOS.h".