Skip to main content
xisco
Senior
February 23, 2024
Question

Modify copyright notice in main.c file

  • February 23, 2024
  • 2 replies
  • 1121 views

Hello,

 

Somebody knows if the copyright notice generated at the beginning of main.c file is stored in a file that I can edit?

I read in this forum that sections outside of user code are copyrighted by ST. If the copyright text is stored in an editable file, I would add a copyright or copyleft for the user code sections in this file to save time.

Using CubeIDE 1.13.2 for Linux

 

Thank you

This topic has been closed for replies.

2 replies

Pavel A.
February 23, 2024

The copyright notice generated at the beginning of main.c is surrounded by /* USER CODE BEGIN Header */  /* USER CODE END Header */. The actual usage requirements on Cube-generated files (what license files or texts are required legally): see the generated text itself:  Since Cube does not currently create the LICENSE file: provided as-is.

 

 * This software is licensed under terms that can be found in the LICENSE file
 * in the root directory of this software component.
 * If no LICENSE file comes with this software, it is provided AS-IS.

 

 

Andrew Neil
Super User
February 23, 2024
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.