Couldn't build as per Log below
3nd0y opened this issue · comments
Obsolete PIO Core v4.2.1 is used (previous was 4.3.1)
Please remove multiple PIO Cores from a system:
https://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system
Processing bluepill_f103c8 (platform: ststm32; board: bluepill_f103c8; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/bluepill_f103c8.html
PLATFORM: ST STM32 6.0.0 > BluePill F103C8
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:
- framework-arduinoststm32 3.10700.191028 (1.7.0)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 22 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <LiquidCrystal_I2C>
| |-- 1.0
|-- 1.0
|--
| |-- 1.6
| |-- 1.0
|-- 1.2.2
| |-- 2.0.3
|-- 1.0
|-- 1.6
Building in release mode
Compiling .pio\build\bluepill_f103c8\src\main.cpp.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\diskio.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\drivers\sd_diskio.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\ff.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\ff_gen_drv.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc932.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc936.c.o
Compiling .pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc949.c.o
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from c:\users\fmukhtarif.platformio\lib\fatfs_id1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\option\cc932.c:6:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src/ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src/ff_gen_drv.h:58,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:49:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff_gen_drv.h:58,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\diskio.c:55:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from c:\users\fmukhtarif.platformio\lib\fatfs_id1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\option\cc936.c:6:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff.c:21:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc932.c.o] Error 1
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from c:\users\fmukhtarif.platformio\lib\fatfs_id1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\option\cc949.c:6:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c: In function 'SD_ioctl':
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:59:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define BSP_SD_CardInfo HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:240:3: note: in expansion of macro 'BSP_SD_CardInfo'
BSP_SD_CardInfo CardInfo;
^~~~~~~~~~~~~~~
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\diskio.c.o] Error 1
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc936.c.o] Error 1
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/ffconf.h:9:0,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff.h:29,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff_gen_drv.h:58,
from C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\ff_gen_drv.c:49:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:255:5: warning: implicit declaration of function 'BSP_SD_GetCardInfo'; did you mean 'BSP_SD_CardInfo'? [-Wimplicit-function-declaration]
BSP_SD_GetCardInfo(&CardInfo);
^~~~~~~~~~~~~~~~~~
BSP_SD_CardInfo
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:257:29: error: request for member 'LogBlockNbr' in something not
a structure or union
(DWORD)buff = CardInfo.LogBlockNbr;
^
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:268:28: error: request for member 'LogBlockSize' in something not a structure or union
(WORD)buff = CardInfo.LogBlockSize;
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\FatFs_ID1805\src\drivers\sd_diskio.c:279:29: error: request for member 'LogBlockSize' in something not a structure or union
(DWORD)buff = CardInfo.LogBlockSize / SD_DEFAULT_BLOCK_SIZE;
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\drivers\sd_diskio.c.o] Error 1
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\option\cc949.c.o] Error 1
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\ff_gen_drv.c.o] Error 1
*** [.pio\build\bluepill_f103c8\libb76\FatFs_ID1805\ff.c.o] Error 1
In file included from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/Sd2Card.h:40:0,
from C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/STM32SD.h:22,
from src\main.cpp:7:
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: variable or field 'BSP_SD_GetCardInfo' declared void
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: 'HAL_SD_CardInfoTypeDef' was not declared in this scope
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: note: suggested alternative: 'HAL_SD_CardInfoTypedef'
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:52: error: 'CardInfo' was not declared in this scope
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:115:52: note: suggested alternative: 'SD_CardInfo'
void BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
^~~~~~~~
SD_CardInfo
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: variable or field 'BSP_SD_MspInit' declared void
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: error: 'SD_HandleTypeDef' was not declared in this scope
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:24: note: suggested alternative: 'SPI_HandleTypeDef'
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:42: error: 'hsd' was not declared in this scope
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:120:47: error: expected primary-expression before 'void'
void BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: variable or field 'BSP_SD_Detect_MspInit' declared void
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: error: 'SD_HandleTypeDef' was not declared in this scope
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:31: note: suggested alternative: 'SPI_HandleTypeDef'
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:49: error: 'hsd' was not declared in this scope
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:121:54: error: expected primary-expression before 'void'
void BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
^~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: variable or field 'BSP_SD_MspDeInit' declared void
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: error: 'SD_HandleTypeDef' was not declared in this scope
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:26: note: suggested alternative: 'SPI_HandleTypeDef'
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~~~~~~~~~~~~~
SPI_HandleTypeDef
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:44: error: 'hsd' was not declared in this scope
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:122:49: error: expected primary-expression before 'void'
void BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
^~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:58:40: error: 'HAL_SD_CardInfoTypeDef' does not name a type; did you mean 'HAL_SD_CardInfoTypedef'?
#define HAL_SD_CardInfoTypedef HAL_SD_CardInfoTypeDef
^
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/bsp_sd.h:64:21: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
#define SD_CardInfo HAL_SD_CardInfoTypedef
^~~~~~~~~~~~~~~~~~~~~~
C:\Users\fmukhtarif.platformio\lib\STM32duino STM32SD_ID1810\src/Sd2Card.h:62:5: note: in expansion of macro 'SD_CardInfo'
SD_CardInfo _SdCardInfo;
^~~~~~~~~~~
src\main.cpp: In function 'void setup()':
src\main.cpp:73:5: error: 'myFile' was not declared in this scope
myFile = SD.open("example.txt", FILE_WRITE);
^~~~~~
src\main.cpp:73:5: note: suggested alternative: 'File'
myFile = SD.open("example.txt", FILE_WRITE);
^~~~~~
File
*** [.pio\build\bluepill_f103c8\src\main.cpp.o] Error 1
====================================================== [FAILED] Took 22.20 seconds ======================================================
The terminal process terminated with exit code: 1Terminal will be reused by tasks, press any key to close it.
Hi @3nd0y
This is normal it does not build as BP has no SDIO peripheral.
I guess you try to use an SD card shield over SPI, in this case use the default SD library from Arduino.
If your board really have SDIO and your MCU support it, you should specify build flag in platformio: build_flags = -DHAL_SD_MODULE_ENABLED
. For example, genericSTM32F103RC
has SDIO, but it is disabled by default. But your stm32f103c8 don't have it, as I know