Skip to main content
yuri CH
Senior
Dec 11, 2018 11:36 AM UTC
Question

CubeMX code generation

​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
Nov 26, 2020 4:09 PM UTC

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