Skip to main content
INaee.1
Associate II
October 12, 2022
Solved

My custom functions in main.c disappears after re-generating codes from CubeMX

  • October 12, 2022
  • 1 reply
  • 2901 views

Hello ,,

I need help ,

All of my custom functions in main.c disappears after re-generating codes from CubeMX

kindly help

thanks

Imran

This topic has been closed for replies.
Best answer by Peter BENSCH

Welcome, @Community member​, to the community!

where exactly did you insert your code?

Do you know the USER CODE BEGIN and USER CODE END structure?

Regards

/Peter

1 reply

Peter BENSCH
Technical Moderator
October 12, 2022

Welcome, @Community member​, to the community!

where exactly did you insert your code?

Do you know the USER CODE BEGIN and USER CODE END structure?

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
INaee.1
INaee.1Author
Associate II
October 12, 2022

Hi Peter ..

I think,, your question has replied my question. Thanx

No , I haven't placed my functions between USER CODE BEGIN and USER CODE END structure.

I will try and get back to you.

Kind Regards

Imran