Skip to main content
Visitor II
July 31, 2024
Question

how to generate a custom main.c with Freemarker template

  • July 31, 2024
  • 0 replies
  • 880 views

Hi ST team,

I want to generate my own file main.c with freemarker template. I refered to tpl_main_c.tfl and tpl_main_h.tfl for details. I tried to copy these file to other directory then changed the name and use them as the template for CubeMX but I got this error like this

bannd1_0-1722387531486.png

I want to ask where is the declaration of this variable? and why didn't the main file template follow this rule below?

bannd1_1-1722387754780.png