You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As usual add STM32SD library to project and try to compile. Error message:
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:240:3: error: unknown type name 'BSP_SD_CardInfo'; did you mean 'SD_CardInfo'?
240 | BSP_SD_CardInfo CardInfo;
| ^~~~~~~~~~~~~~~
| SD_CardInfo
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:255:24: warning: passing argument 1 of 'BSP_SD_GetCardInfo' from incompatible pointer type [-Wincompatible-pointer-types]
255 | BSP_SD_GetCardInfo(&CardInfo);
| ^~~~~~~~~
| |
| int *
In file included from .pio/libdeps/black_f407ve/STM32duino STM32SD/src/ffconf.h:9,
from .pio/libdeps/black_f407ve/FatFs/src/ff.h:29,
from .pio/libdeps/black_f407ve/FatFs/src/ff_gen_drv.h:58,
from .pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:49:
.pio/libdeps/black_f407ve/STM32duino STM32SD/src/bsp_sd.h:178:52: note: expected 'HAL_SD_CardInfoTypeDef *' but argument is of type 'int *'
178 | void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypeDef *CardInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:257:29: error: request for member 'LogBlockNbr' in something not a structure or union
257 | *(DWORD*)buff = CardInfo.LogBlockNbr;
| ^
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:267:24: warning: passing argument 1 of 'BSP_SD_GetCardInfo' from incompatible pointer type [-Wincompatible-pointer-types]
267 | BSP_SD_GetCardInfo(&CardInfo);
| ^~~~~~~~~
| |
| int *
In file included from .pio/libdeps/black_f407ve/STM32duino STM32SD/src/ffconf.h:9,
from .pio/libdeps/black_f407ve/FatFs/src/ff.h:29,
from .pio/libdeps/black_f407ve/FatFs/src/ff_gen_drv.h:58,
from .pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:49:
.pio/libdeps/black_f407ve/STM32duino STM32SD/src/bsp_sd.h:178:52: note: expected 'HAL_SD_CardInfoTypeDef *' but argument is of type 'int *'
178 | void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypeDef *CardInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:268:28: error: request for member 'LogBlockSize' in something not a structure or union
268 | *(WORD*)buff = CardInfo.LogBlockSize;
| ^
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:278:24: warning: passing argument 1 of 'BSP_SD_GetCardInfo' from incompatible pointer type [-Wincompatible-pointer-types]
278 | BSP_SD_GetCardInfo(&CardInfo);
| ^~~~~~~~~
| |
| int *
In file included from .pio/libdeps/black_f407ve/STM32duino STM32SD/src/ffconf.h:9,
from .pio/libdeps/black_f407ve/FatFs/src/ff.h:29,
from .pio/libdeps/black_f407ve/FatFs/src/ff_gen_drv.h:58,
from .pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:49:
.pio/libdeps/black_f407ve/STM32duino STM32SD/src/bsp_sd.h:178:52: note: expected 'HAL_SD_CardInfoTypeDef *' but argument is of type 'int *'
178 | void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypeDef *CardInfo);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
.pio/libdeps/black_f407ve/FatFs/src/drivers/sd_diskio.c:279:29: error: request for member 'LogBlockSize' in something not a structure or union
279 | *(DWORD*)buff = CardInfo.LogBlockSize / SD_DEFAULT_BLOCK_SIZE;
| ^
*** [.pio/build/black_f407ve/lib7df/FatFs/drivers/sd_diskio.c.o] Error 1
I also tried to enable -D HAL_SD_MODULE_ENABLED but with no luck. It was already defined. Example sdfat project successfully compiles in ArduinoIDE btw.
Any help?
The text was updated successfully, but these errors were encountered:
As usual add STM32SD library to project and try to compile. Error message:
Platformio config:
I also tried to enable
-D HAL_SD_MODULE_ENABLED
but with no luck. It was already defined. Example sdfat project successfully compiles in ArduinoIDE btw.Any help?
The text was updated successfully, but these errors were encountered: