Associate III
February 3, 2020
Question
What is MX__Init()?????
- February 3, 2020
- 4 replies
- 1043 views
Have a project using CubeMX 5.5.0 from within CubeIDE 1.2.1 on Windows 10 for an STM32F767 using FW 1.15.0. Its a TouchGFX project so it, by default uses FreeRTOS. Whenever I regenerate code, I get this in the DefaultTask:
/* USER CODE BEGIN Header_StartDefaultTask */
/**
* @brief Function implementing the defaultTask thread.
* @param argument: Not used
* @retval None
*/
/* USER CODE END Header_StartDefaultTask */
void StartDefaultTask(void const * argument)
{
/* init code for */
MX__Init();
/* USER CODE BEGIN StartDefaultTask */
printf("\tStarting default task...\n");
/* Infinite loop */
for(;;)
{
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
osDelay(500);
}
/* USER CODE END StartDefaultTask */
}The pin toggle is of course user code but what is MX__Init()? Note two underscores between MX and Init. I thought maybe it was a typo and is supposed to be MX_Init() but there is no function named that either? Is this supposed to be code that is run or a bug/typo?
*.ioc file is attached
Andy
