2021-08-23 02:44 AM
Everytime i run code generator, the main file is changed between User Code ?
*/
/* USER CODE END Header_StartDefaultTask */
void StartDefaultTask(void const * argument)
{
/* USER CODE BEGIN 5 */
/* Infinite loop */
for(;;)
{
LedTask();
osDelay(1);
}
/* USER CODE END 5 */
}
Solved! Go to Solution.
2021-08-23 03:42 AM
yes i always save the main file before generating code.
Found the issue, when creating another task i accidently copied the "/* USER CODE BEGIN 5 */" label from the main task.
There can be only 1 unique label !
Thank you
2021-08-23 03:02 AM
Did you saved the changes? before autogenerating?
Maybe the /* Infinite loop */ label is messing with the code generator?
2021-08-23 03:42 AM
yes i always save the main file before generating code.
Found the issue, when creating another task i accidently copied the "/* USER CODE BEGIN 5 */" label from the main task.
There can be only 1 unique label !
Thank you
2021-08-23 05:09 AM
ha! good one.
Tag yourself as best answer then