cancel
Showing results for 
Search instead for 
Did you mean: 

Hello i'm new at using stm32ide , every time i make a change in the pin editor the generated code remove my application from the main.c file i try to find solutions online i couldn't find any how can i edit my MCAL layer without losing my code ?

DFari.11
Associate
 
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

In the generated files, there are regions marked with USER CODE BEGIN and USER CODE END. You may only modify code within those sections.

Here are three of many such sections:

0693W00000KckJ0QAJ.png

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
TDK
Guru

Keep your code within USER CODE blocks and don't make modifications outside of those.

If you feel a post has answered your question, please click "Accept as Solution".

thanks for your reply

it works with me

TDK
Guru

In the generated files, there are regions marked with USER CODE BEGIN and USER CODE END. You may only modify code within those sections.

Here are three of many such sections:

0693W00000KckJ0QAJ.png

If you feel a post has answered your question, please click "Accept as Solution".