Skip to main content
askari.nima
Associate III
February 11, 2016
Question

Stm32f4cube 1.11.0 have a bug

  • February 11, 2016
  • 2 replies
  • 553 views
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. 

    This topic has been closed for replies.

    2 replies

    stm32cube-t
    ST Employee
    February 11, 2016
    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 III
    February 12, 2016
    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 ...