I hope that the STM32CubeMX code generation tool can add user-defined keywords to ensure that the user's own added code STM32CubeMX is not deleted when the code is generated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-11 8:06 PM
for example:
“
/* USER CODE BEGIN Includes */
....
/* USER CODE END Includes */
/* USER CODE BEGIN 0 */
...
/* USER CODE END 0 */
�?
I found that these keywords only work for this definition in the generated code, but after I added them in the original location without these keywords,
Will still cover my own code when generating with STM32CubeMX,
I hope to improve these small problems and increase the ease of use of the Cube library.
- Labels:
-
STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-11 8:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-11 8:17 PM
Will still cover my own code when generating with STM32CubeMX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-19 7:06 PM
@Khouloud GARSI : I Hope ST to solve this problems�?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-20 1:21 AM
Hi @JLee.0 ,
Your request is forwarded internally. We will answer you ASAP.
Khouloud.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-20 6:34 PM
Thanks very much�?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-25 4:24 AM
hi @JLee.0 ,
As far the "Memory management macros" block of code is concerned, it is not intended to add a user code section in these generated lines of code.
Nevertheless, there is a section of user code at the beginning of the header file where part of the code can be added as you like, which prevents the modification of the generated lines.
Hoping that it clarifies the behavior of the tool; you can also get more details in UM1718 (Help/Help in toolbar of CubeMX tool), i.e. "Generated files options" section.
Regards.
Cyril
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-09-25 4:49 AM
@Cyril FENARD
Thank you very much for your reply.
I mean this tool can provide user-defined keywords to avoid being overwritten by the CubeMX tool. The above image is just an example.
