cancel
Showing results for 
Search instead for 
Did you mean: 

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

DMuth.1
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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

View solution in original post

2 REPLIES 2
TDK
Guru

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
Associate

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