PlatformIo F103c8t6 bibli SDCARD

Bonjour à toutes et à tous.

  1. F411 : je l’ai reçu mais impossible de le programmer avec un ST-Link, je vais attendre un peu dès fois que la config soit revue d’ici là.

  2. Je me suis rabattu sur un F103 pilule bleue qui lui se programme parfaitement avec un ST-Link.
    Les soucis arrive quand je veux ajouter la gestion d’une carte SD.
    Sous PTIO je choisi d’installer la bibliothèque STM32SD.
    Rien ne se passe après avoir cliqué sur Install.

Qu’à cela ne tienne je la télécharge et je la copie manuellement dans le répertoire “lib” du projet.
Et là à la compilation j’obtiens des erreurs pour le moins surprenantes pour une bibliothèque signée d’un employé de STMicro (fpistm). qui plus est j’ai essayé plusieurs versions de cette bibliothèque et à chaque fois ce sont les mêmes erreurs.
Lien de chargement: http://github.com/stm32duino/STM32SD/releases

Les erreurs :

Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/genericSTM32F103C8.html
PLATFORM: ST STM32 8.0.0 > STM32F103C8 (20k RAM. 64k Flash)
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (blackmagic) External (blackmagic, jlink, stlink)
PACKAGES: 
 - framework-arduinoststm32 4.10900.200819 (1.9.0) 
 - framework-cmsis 2.50501.200527 (5.5.1) 
 - toolchain-gccarmnoneeabi 1.90201.191206 (9.2.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 13 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <STM32duino STM32SD> 1.2.2
|   |-- <FatFs> 2.0.3
Building in release mode
Compiling .pio/build/genericSTM32F103C8/src/main.cpp.o
Compiling .pio/build/genericSTM32F103C8/lib580/FatFs/diskio.c.o
Compiling .pio/build/genericSTM32F103C8/lib580/FatFs/drivers/sd_diskio.c.o
Compiling .pio/build/genericSTM32F103C8/lib580/FatFs/ff.c.o

La suite message suivant, code trop long.

La suite :

In file included from lib/STM32SD-1.2.2/src/ffconf.h:9,
                 from /hca/.platformio/lib/FatFs/src/ff.h:29,
                 from /hca/.platformio/lib/FatFs/src/ff_gen_drv.h:58,
                 from /hca/.platformio/lib/FatFs/src/diskio.c:55:
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                            ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                        ^~~~~~~~~~~~~~~~
      |                        SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                               ^~~~~~~~~~~~~~~~
      |                               SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                          ^~~~~~~~~~~~~~~~
      |                          SPI_HandleTypeDef
*** [.pio/build/genericSTM32F103C8/lib580/FatFs/diskio.c.o] Error 1
In file included from lib/STM32SD-1.2.2/src/ffconf.h:9,
                 from /hca/.platformio/lib/FatFs/src/ff.h:29,
                 from /hca/.platformio/lib/FatFs/src/ff_gen_drv.h:58,
                 from /hca/.platformio/lib/FatFs/src/drivers/sd_diskio.c:49:
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                            ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                        ^~~~~~~~~~~~~~~~
      |                        SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                               ^~~~~~~~~~~~~~~~
      |                               SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                          ^~~~~~~~~~~~~~~~
      |                          SPI_HandleTypeDef
In file included from lib/STM32SD-1.2.2/src/ffconf.h:9,
                 from /hca/.platformio/lib/FatFs/src/ff.h:29,
                 from /hca/.platformio/lib/FatFs/src/ff.c:21:
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                            ^~~~~~~~~~~~~~~~~~~~~~
/hca/.platformio/lib/FatFs/src/drivers/sd_diskio.c: In function 'SD_ioctl':
lib/STM32SD-1.2.2/src/bsp_sd.h:59:40: error: unknown type name 'HAL_SD_CardInfoTypeDef'; did you mean 'HAL_SD_CardInfoTypedef'?
   59 | #define BSP_SD_CardInfo                HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~

La suite message suivant

/hca/.platformio/lib/FatFs/src/drivers/sd_diskio.c:240:3: note: in expansion of macro 'BSP_SD_CardInfo'
  240 |   BSP_SD_CardInfo CardInfo;
      |   ^~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:120:24: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                        ^~~~~~~~~~~~~~~~
      |                        SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:121:31: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                               ^~~~~~~~~~~~~~~~
      |                               SPI_HandleTypeDef
/hca/.platformio/lib/FatFs/src/drivers/sd_diskio.c:255:5: warning: implicit declaration of function 'BSP_SD_GetCardInfo'; did you mean 'BSP_SD_CardInfo'? [-Wimplicit-function-declaration]
  255 |     BSP_SD_GetCardInfo(&CardInfo);
      |     ^~~~~~~~~~~~~~~~~~
      |     BSP_SD_CardInfo
/hca/.platformio/lib/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;
      |                             ^
/hca/.platformio/lib/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;
      |                            ^
/hca/.platformio/lib/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;
      |                             ^
lib/STM32SD-1.2.2/src/bsp_sd.h:122:26: error: unknown type name 'SD_HandleTypeDef'; did you mean 'SPI_HandleTypeDef'?
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                          ^~~~~~~~~~~~~~~~
      |                          SPI_HandleTypeDef
*** [.pio/build/genericSTM32F103C8/lib580/FatFs/drivers/sd_diskio.c.o] Error 1
*** [.pio/build/genericSTM32F103C8/lib580/FatFs/ff.c.o] Error 1
In file included from lib/STM32SD-1.2.2/src/Sd2Card.h:40,
                 from lib/STM32SD-1.2.2/src/STM32SD.h:22,
                 from src/main.cpp:2:
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: variable or field 'BSP_SD_GetCardInfo' declared void
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                            ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: 'HAL_SD_CardInfoTypeDef' was not declared in this scope; did you mean 'HAL_SD_CardInfoTypedef'?
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:28: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                            ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:115:52: error: 'CardInfo' was not declared in this scope; did you mean 'SD_CardInfo'?
  115 | void    BSP_SD_GetCardInfo(HAL_SD_CardInfoTypedef *CardInfo);
      |                                                    ^~~~~~~~
      |                                                    SD_CardInfo
lib/STM32SD-1.2.2/src/bsp_sd.h:120:24: error: variable or field 'BSP_SD_MspInit' declared void
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                        ^~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:120:24: error: 'SD_HandleTypeDef' was not declared in this scope; did you mean 'SPI_HandleTypeDef'?
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                        ^~~~~~~~~~~~~~~~
      |                        SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:120:42: error: 'hsd' was not declared in this scope
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                                          ^~~
lib/STM32SD-1.2.2/src/bsp_sd.h:120:47: error: expected primary-expression before 'void'
  120 | void    BSP_SD_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                                               ^~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:121:31: error: variable or field 'BSP_SD_Detect_MspInit' declared void
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                               ^~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:121:31: error: 'SD_HandleTypeDef' was not declared in this scope; did you mean 'SPI_HandleTypeDef'?
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                               ^~~~~~~~~~~~~~~~
      |                               SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:121:49: error: 'hsd' was not declared in this scope
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                                                 ^~~
lib/STM32SD-1.2.2/src/bsp_sd.h:121:54: error: expected primary-expression before 'void'
  121 | void    BSP_SD_Detect_MspInit(SD_HandleTypeDef *hsd, void *Params);
      |                                                      ^~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:122:26: error: variable or field 'BSP_SD_MspDeInit' declared void
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                          ^~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:122:26: error: 'SD_HandleTypeDef' was not declared in this scope; did you mean 'SPI_HandleTypeDef'?
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                          ^~~~~~~~~~~~~~~~
      |                          SPI_HandleTypeDef
lib/STM32SD-1.2.2/src/bsp_sd.h:122:44: error: 'hsd' was not declared in this scope
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                                            ^~~
lib/STM32SD-1.2.2/src/bsp_sd.h:122:49: error: expected primary-expression before 'void'
  122 | void    BSP_SD_MspDeInit(SD_HandleTypeDef *hsd, void *Params);
      |                                                 ^~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:58:40: error: 'HAL_SD_CardInfoTypeDef' does not name a type; did you mean 'HAL_SD_CardInfoTypedef'?
   58 | #define HAL_SD_CardInfoTypedef         HAL_SD_CardInfoTypeDef
      |                                        ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/bsp_sd.h:64:21: note: in expansion of macro 'HAL_SD_CardInfoTypedef'
   64 | #define SD_CardInfo HAL_SD_CardInfoTypedef
      |                     ^~~~~~~~~~~~~~~~~~~~~~
lib/STM32SD-1.2.2/src/Sd2Card.h:62:5: note: in expansion of macro 'SD_CardInfo'
   62 |     SD_CardInfo _SdCardInfo;
      |     ^~~~~~~~~~~
*** [.pio/build/genericSTM32F103C8/src/main.cpp.o] Error 1
==================================================================== [FAILED] Took 3.51 seconds ====================================================================

Processing myenv ()
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: Please specify platform for 'myenv' environment
The terminal process "platformio 'run'" terminated with exit code: 1.

Il y aurait-il des options à configurer dans Platform IO ?