Skip to main content
yuri CH
Senior
December 11, 2018
Question

CubeMX code generation

  • December 11, 2018
  • 1 reply
  • 592 views

​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?

This topic has been closed for replies.

1 reply

Khouloud ZEMMELI
ST Employee
November 26, 2020

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