cancel
Showing results for 
Search instead for 
Did you mean: 

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

THerb.2
Associate

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?

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

1 REPLY 1

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