Skip to main content
eBirdman
Senior
September 10, 2018
Question

Why CubeMX generated code wipes out USER CODE areas ?

  • September 10, 2018
  • 2 replies
  • 562 views

I use the latest STM32F4CubeMX and latest TrueStudio and updated firmware library. I have chosen in the Project Settings "code generator" option "Keep User Code when re-generating" but it does not. User code is strictly within the USER CODE labeled areas but it gets removed. Why?

This topic has been closed for replies.

2 replies

Pavel A.
Super User
September 11, 2018

All user code areas get removed or only some?

-- pa

eBirdman
eBirdmanAuthor
Senior
September 28, 2018

It is strange that I don't get notifications of the posts I started here...

All my user code was repeatedly wiped out.... Now I am working in another CubeMX generated project and the user code is preserved. Would be good to know what are the conditions to always keep the user areas ... The CubeMX manual implies that it is always preserved ...