Is there a directive to demarcate the user code entered?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-19 1:27 AM
Device Configuration Tool Code Generation performs a code update, and if the user enters a code in an unmarked location, that code will be deleted.
Is there a directive (something like #codeuser #endcodeuser) to demarcate the user code entered?
- Labels:
-
STM32CubeIDE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-19 6:03 AM
/* USER CODE BEGIN ... */
your code here
/* USER CODE END ... */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-12-19 8:01 AM
Yes, that I know, thank you,
But what about subroutines that don't have this comment?
Can i add this comment wherever i want and the generator will keep my code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-01-03 5:58 PM
I tried to add comments to delimit the user code, but the compiler did not respect the delimitation and deleted the code while updating the code through the generator tool.
It will be very useful to have a tag for the user to be able to modify the library without the generator deleting the manually entered code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 7:14 AM
I am getting around the lack of user code policy, with the cloning of modified subroutines saved in the predefined locations for user code, but it is very irritating to have to make comments in parts of code when performing a hardware selection update, via Device Configuration Tool.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-02-05 10:15 AM
Microsoft has #pragma region. For similar purposes IIRC.
-- pa
