cancel
Showing results for 
Search instead for 
Did you mean: 

User code have been coverd while regenerated using stm32cubeMX even the code is bewteen USERCODE zone.

solaidee
Visitor

Hi,

I encountered a strange problem while using stm32cubeMX in a new project.

Everytime i saved the code files and then regenerated the code using stm32cubeMX,the user code will gone.

1.png

A example,"#include "led.h" " have been insert in the user code zone,then i saved the project,and regenerated code using stm32cubeMX.

2.png

then "#include "led.h" " is missing...

3.png

"Keep User Code When re-generating" already been checked as shown in the figure。

stm32cubeMX version 6.16.1.

any advise will be appreciated,thx.

 

1 REPLY 1
TDK
Super User

Please include your ioc file to see if it can be duplicated.

If you feel a post has answered your question, please click "Accept as Solution".