2016-02-10 10:05 PM
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.2016-02-10 11:31 PM
Dear user,
You shall enable FreeRTOS to see the middleware initialization done in a task. Best regards2016-02-12 08:13 AM
Hello . Yes I use freertos. some init function must be declared in Default task only to work.
usb init , sdio init , and ...