cancel
Showing results for 
Search instead for 
Did you mean: 

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

INaee.1
Senior

Hello ,,

I need help ,

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

kindly help

thanks

Imran

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

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.

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