cancel
Showing results for 
Search instead for 
Did you mean: 

How to publish an STM32CubeIDE project on Github

CKugl.1
Senior II

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?

2 REPLIES 2
Pavel A.
Evangelist III

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.

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".