cancel
Showing results for 
Search instead for 
Did you mean: 

TFCard SDIO HAL_SD_ERROR_REQUEST_NOT_APPLICABLE

xieyiteng
Associate

STM32Cube_FW_F1_V1.8.5

STM32CubeIDE:1.13.2

MCU:STM32F103RCT6

problem description::::::::SDIO--------

 

f_mkfs((TCHAR const*)SDPath, 0, 0) or f_open(&SDFile, "STM32.TXT", FA_CREATE_ALWAYS | FA_WRITE|FA_READ)

[ff.c 4170] ---->stat = disk_initialize(pdrv);

[diskio.c 99] ---->stat = disk.drv[pdrv]->disk_initialize(disk.lun[pdrv]);

[sd_diskio.c 94] ---->if (BSP_SD_Init()==MSD_OK)

[bsp_driver_sd.c 62] ----> HAL_SD_ConfigWideBusOperation (&hsd,SDIO_BUS_WIDE_4B)

[stm32faXX_hal_sd.c 2204]---->errorstate = SD_WideBus_Enable(hsd);

[stm32faXX_hal_sd.c 2979]---->return HAL_SD_ERROR_REQUEST_NOT_APPLICABLE;

errorstate = HAL_SD_ERROR_REQUEST_NOT_APPLICABLE

 

 

breakpoint Get::scr[1U]=0x00;

[stm32faXX_hal_sd.c 2959]----> if((scr[1U] & SDMMC_WIDE_BUS_SUPPORT) != SDMMC_ALLZERO)

 

 

 

1 REPLY 1
xieyiteng
Associate

when i use"SDIO_BUS_WIDE_4B"mode,error occurs.

but

The SDIO BUS WIDE 1B works properly.