cancel
Showing results for 
Search instead for 
Did you mean: 

User settings being cleared by code generation by Workbench.

Vincent7
Associate III

Hello Everybody,

MCSDK:6.3.0

CubeMX: 6.1.1

Workbench : 6.3.0

CubeIDE : 1.15.0

 

When using Workbench to regenerate the FOC code, the additional peripheral settings I configured in CubeMX, such as IO, Timer, and ADC, are all cleared. As a result, I have to manually reconfigure them every time. Could you please provide a solution to avoid this issue? Thank you.

I remember that in earlier versions of Workbench (v5.4.x), there was an "Update CubeMX" button after generating the code. Pressing this button would preserve the additional peripheral settings. Could you please advise where to enable this feature in the current version?

2 REPLIES 2

@Vincent7 wrote:

additional peripheral settings I configured in CubeMX, such as IO, Timer, and ADC, are all cleared. ?


Are you taking care to keep all your user code within the /* USER CODE xxx */  markers?

Hello Andrew Neil,

Thank you for your reply.

Yes, I wrote everything inside the /* USER CODE xxx */ markers.
The strange thing is, all the code is still there.
But after generating code from Workbench and then clicking "Run CubeMX",
when the CubeMX window pops up, I can see that all my IO/ADC/Timer configurations are gone.