STM32CubeIDE (Version: 1.11.0) removes freeRTOS initialization code
Hello,
I using STM32CubeIDE to create my Code with STM32CubeMX.
With version STM32CubeMX V6.6.1 there where no problems.
Now with the update V6.7.0 and the project migration all the freeRTOS initialization stuff will no more generated.
Following code:
/* Create the queue(s) */
/* creation of mailboxCanRx */
mailboxCanRxHandle = osMessageQueueNew (32, sizeof(CanRxMsgStruct), &mailboxCanRx_attributes);
/* creation of mailboxCanTx */
mailboxCanTxHandle = osMessageQueueNew (64, sizeof(CanTxMsgStruct), &mailboxCanTx_attributes);
/* creation of mailboxEemCmd */
mailboxEemCmdHandle = osMessageQueueNew (64, sizeof(EemJobStruct), &mailboxEemCmd_attributes);
/* Create the thread(s) */
/* creation of taskMain */
taskMainHandle = osThreadNew(osTaskMain, (void*) &taskMain_attributes.stack_size, &taskMain_attributes);
/* creation of taskWatchdog */
taskWatchdogHandle = osThreadNew(osTaskWatchdog, (void*) &taskWatchdog_attributes.stack_size, &taskWatchdog_attributes);
/* creation of taskCanRx */
taskCanRxHandle = osThreadNew(osTaskCanRx, (void*) &taskCanRx_attributes.stack_size, &taskCanRx_attributes);
/* creation of taskCanTx */
taskCanTxHandle = osThreadNew(osTaskCanTx, (void*) &taskCanTx_attributes.stack_size, &taskCanTx_attributes);
/* creation of task10ms */
task10msHandle = osThreadNew(osTask10ms, (void*) &task10ms_attributes.stack_size, &task10ms_attributes);
/* Create the event(s) */
/* creation of canRxEvent */
canRxEventHandle = osEventFlagsNew(&canRxEvent_attributes);
/* creation of canTxEvent */
canTxEventHandle = osEventFlagsNew(&canTxEvent_attributes);
/* creation of eepromFinished */
eepromFinishedHandle = osEventFlagsNew(&eepromFinished_attributes);will now replaced with:
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* Copyright (c) 2022 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
* in the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*
******************************************************************************
*/
/* USER CODE END Header */
/**
* @}
*/
/**
* @}
*/And all code with I try to put between "USER CODE BEGIN Header" and "USER CODE END Header" will be replaced after regenerating the project,
Is this a bug with the new version?
(Controller: STM32F446RCTx)
Thanks for help
