What are the differences begin user begin sections 1 to 4. (Generated by Cube MX, IDE). Which types of codes should be written there and why there is four different (or more) user code begin sections?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-09 3:01 AM
This just looks like a comment but it seems a code outside these comment have different affect.
/* USER CODE BEGIN 1 */
/* USER CODE END 1 */
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-18 9:33 AM
I have found the answer to myself.
The user code sections that are between two comment lines are dedicated to write the code inside the lines. Anycode written outside of these sections will be removed in case of anychange at CubeIDE interface (*.ioc)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-05-18 9:33 AM
I have found the answer to myself.
The user code sections that are between two comment lines are dedicated to write the code inside the lines. Anycode written outside of these sections will be removed in case of anychange at CubeIDE interface (*.ioc)
