cancel
Showing results for 
Search instead for 
Did you mean: 

how to generate a custom main.c with Freemarker template

bannd1
Associate

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

 

0 REPLIES 0