Skip to main content
Visitor II
September 10, 2021
Solved

STM32CubeL4 FATFS BSP: How to use the bspv2.c files and why are there 2 versions?

  • September 10, 2021
  • 1 reply
  • 923 views

Hello,

I want to use a STM32L4P5 for reading and writing data to 2 SD Cards.

In the STM32CubeL4 repo, I find in the FATFS/src/drivers folder the files

sd_diskio_dma_template_bspv1.c and sd_diskio_dma_template_bspv2.c

Each file calls a different BSP versions.

Why are there two versions of this file?

When I use the BSP generated by the STMCubeIDE, the generated functions seem to be compatible to the bspv1 version.

In the example applications in the STMCubeL4 package, I also haven't found any project that uses the bspv2.

Is there any way to get the corresponding BSP driver, that is compatible with the sd_diskio_dma_template_bspv2.c?

    This topic has been closed for replies.
    Best answer by Walid ZRELLI

    Hello @THerb.2​ ,

    The STMCubeL4 package supports the BSP v1.

    Otherwise, FATFS is independent of series, so we have to provide templates for all STM32.

    since the BSP has two implementations v1 and v2, we need to provide the 2 templates

    BeST Regards,

    Walid

    1 reply

    Visitor II
    September 10, 2021

    Hello @THerb.2​ ,

    The STMCubeL4 package supports the BSP v1.

    Otherwise, FATFS is independent of series, so we have to provide templates for all STM32.

    since the BSP has two implementations v1 and v2, we need to provide the 2 templates

    BeST Regards,

    Walid