cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f4cube 1.11.0 have a bug

askari.nima
Associate II
Posted on February 11, 2016 at 07:05

when I enable USB host and FatFs , Init function in Main created . But it dose not work

int main(void)

{

  /* USER CODE BEGIN 1 */

  /* USER CODE END 1 */

  /* MCU Configuration----------------------------------------------------------*/

  /* Reset of all peripherals, Initializes the Flash interface and the Systick. */

  HAL_Init();

  /* Configure the system clock */

  SystemClock_Config();

  /* Initialize all configured peripherals */

  MX_GPIO_Init();

  MX_DMA_Init();

  MX_ADC1_Init();

  MX_ADC2_Init();

  MX_CRC_Init();

  MX_FSMC_Init();

  MX_IWDG_Init();

  MX_SDIO_SD_Init();

  MX_SPI1_Init();

  MX_SPI2_Init();

  MX_SPI3_Init();

  MX_TIM1_Init();

  MX_UART4_Init();

  MX_USART1_UART_Init();

  MX_USART2_UART_Init();

  MX_USART6_UART_Init();

  MX_FATFS_Init(); // <<<<<<<

  MX_USB_HOST_Init(); // <<<<<<<

this 2 function must be in a task. 

2 REPLIES 2
stm32cube-t
Senior III
Posted on February 11, 2016 at 08:31

Dear user,

You shall enable FreeRTOS to see the middleware initialization done in a task.

Best regards
askari.nima
Associate II
Posted on February 12, 2016 at 17:13

Hello . Yes I use freertos. some init function must be declared  in Default task only to work.

usb init , sdio init , and ...