cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX code generation

yuri CH
Senior

​Hi!

i have been using cubemx for a while now, and now i am wondering regarding the code generation. in the main file , for example ,there are user code sections. can i create more of theses sections? or must i use the generated sections only?

1 REPLY 1
Khouloud ZEMMELI
ST Employee

Hello @yuri CH​ 

To ensure that your code will not disappear after each generation of code, you can only put it in the user sections, otherwise, it's not possible to add any code outside these generated sections.

Best Regards,

Khouloud