AnsweredAssumed Answered

Keep user codes

Question asked by Hamidreza Mirtaheri on Feb 19, 2018
Latest reply on Apr 20, 2018 by Clive One

How can one keep the custom codes in a subroutine where there is no by default a special place for it?

For instance I'm using 

MX_TIM1_Init(void)

in which there is no dedicated space for my codes such as

/* USER CODE BEGIN MX_TIM1_Init*/ 

or something like this.
I tried to put it in different way by naming it as 

/* USER CODE BEGIN MX_TIM1_Init*/ , /* USER CODE BEGIN 10*/   etc.

Bit still my codes are being deleted after a restart.

 

 

Outcomes