Skip to main content
DMuth.1
Associate
November 24, 2020
Solved

Is there any legal problem by uploading the generated Code from the STM32CubeIDE to Github?

  • November 24, 2020
  • 2 replies
  • 976 views

I would like to share my project on github and used the STM32CubeIDE to configure the periphals and generate some code in addition to my own code. I don't know much about licensing, i just want to share my work so that someone else could benefit from it. Is there any legal problem by publishing my code together with the generated code? Do i have to mention any license on github?

My goal is, that somebody could just download the code, import it into STM32CubeIDE and compile and flash it.

This topic has been closed for replies.
Best answer by TDK

Read the license as generated in the source files. As long as you follow that, you're good. Here is an example from one of my generated files:

/* USER CODE BEGIN Header */
/**
 ******************************************************************************
 * @file : main.c
 * @brief : Main program body
 ******************************************************************************
 * @attention
 *
 * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
 * All rights reserved.</center></h2>
 *
 * This software component is licensed by ST under BSD 3-Clause license,
 * the "License"; You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at:
 * opensource.org/licenses/BSD-3-Clause
 *
 ******************************************************************************
 */

2 replies

TDK
TDKBest answer
November 25, 2020

Read the license as generated in the source files. As long as you follow that, you're good. Here is an example from one of my generated files:

/* USER CODE BEGIN Header */
/**
 ******************************************************************************
 * @file : main.c
 * @brief : Main program body
 ******************************************************************************
 * @attention
 *
 * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
 * All rights reserved.</center></h2>
 *
 * This software component is licensed by ST under BSD 3-Clause license,
 * the "License"; You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at:
 * opensource.org/licenses/BSD-3-Clause
 *
 ******************************************************************************
 */

"If you feel a post has answered your question, please click ""Accept as Solution""."
DMuth.1
DMuth.1Author
Associate
November 26, 2020

Thanks for the answer. I guess i just leave the code as it is. My generated code has the copyright notice you mentioned.