STM32CubeMX ftl template
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-08 2:08 AM
Posted on March 08, 2016 at 11:08
Hello guys,
Can somebody share a list of all possible variables that I can use in FreeMarker templates inside of STM32CubeMX with me? I am working on a Makefile and .ld (because existing have not very nice license ;)) ) template. And a it is possible to achieve filename of generated file based on a variable? It looks like that existing templates have an external logic, but it could be nice to have the same for custom templates as well. #freemarker #stm32cubemx #cubemx
Labels:
- Labels:
-
STM32CubeMX
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-08 3:37 AM
Posted on March 08, 2016 at 12:37 Hello, The variables are listed in an .ftl template file provided under CubeMX installation folder within the \db\extra_templates directory. Concerning your request about passing the generated file's filename as a variable, this is not supported and will be logged as an enhancement request. Thank you
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-03-08 4:20 AM
Posted on March 08, 2016 at 13:20
Yes, I know that there are two examples (here are only variables about peripherals used) + I can use a bunch of other templates that are in db/templates directory, but it could be nice to have everything in one place. I am interested for project specific variables like are in ioc file (at least project name) and then mcu details like are in mcu/*.xml (I need memory information for ld).
Maybe developers have a better documentation and they could share it with us. Anyway..many thanks.