Custom templates information

By default, STM32PackCreator generates packs with a default template inside. This allows STM32CubeMX to generate a header file with all pack parameter defines: [Vendor name].[Pack name]_conf.h

STM32PackCreator allows as well for pack developers to specify their own templates for a given mode of the Pack and for a selection of

Freemarker is the language used to write freemarker templates. Pack developers can write custom templates, add them to their Packs using STM32PackCreator and check the generated code using STM32CubeMX


Mode Choose for which top-level components the custom template shall be attached.
Category Specifies if the custom template is an header file or a source file.
Template name Specifies the name of the custom template.
Description Enter a description.
Condition Keep the condition "Always" or select/create an other condition.
Generated file name Specifies the name of the generated file with the right extension.
Generated file destination Specifies where the file should be generated.
A custom path can be specified. The path is relative to the toolchains folder level. For example, when the selected toolchain is EWARM and the custom path is specified as "../Common", STM32CubeMX generates a Common folder at the same level and next to the EWARM folder.
Parameters added to template Select the parameters the generated code will use.