Skip to main content
VInox
Visitor II
December 21, 2018
Question

CubeMX 5 + SW4STM32 keeps deleting User Code when regenerating (Mac OS)

  • December 21, 2018
  • 0 replies
  • 465 views

Hello,

All the time I re-generate the code in CubeMX5 it deletes all my code in the main.c

I have Mac OS High Sierra and use SW4STM32, working with MCU STM32F103C8.

I tried all the options in the Code Manager / Code generation tab and nothing :tired_face:

Edit1:

I notice some code is left outside the main loop, otherwise all code inside the main() disappear.

I also tried the old version of CubeMX 4.27 and the same problem arrises. I wonder if it has something to do with SW4STM32.

Edit2:

I uninstalled everything and re-installed again, it seems to be working now. I am not sure what was the problem. I will keep you updated if problem arises again.

This topic has been closed for replies.