2020-11-24 12:57 PM
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.
Solved! Go to Solution.
2020-11-25 03:59 PM
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>© 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
*
******************************************************************************
*/
2020-11-25 03:59 PM
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>© 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
*
******************************************************************************
*/
2020-11-26 12:19 PM
Thanks for the answer. I guess i just leave the code as it is. My generated code has the copyright notice you mentioned.