cancel
Showing results for 
Search instead for 
Did you mean: 

cubemx 6.3.0,STM32L562VETx,sd+FATFS,BSP code for SD

MShao.1
Associate III

0693W00000D1iYIQAZ.jpg    Nothing generated by CubeMx: the BSP code has to be added to the project according to the board (ST or custom) in use.   

Does this MCU need to manually transplant the BSP of SD card?

Why did the F103 and f429 MCU have the corresponding BSP code for SD?

0693W00000D1iXEQAZ.jpg

2 REPLIES 2

Hello @MShao.1​ ,

Thanks for your feedback and my apologize for the delay I take to answer.

In fact, starting with L5 series, there is no more BSP code generated by STM32CubeMX, as the BSP support in CubeMX is not fully functional.

For instance, the generated sd_diskio.c file (for SD Card mode) does not call anymore BSP code or FreeRTOS code: it is up to the user now to add the right code in the right USER sections (same for sram_diskio.c file for External SRAM mode).

Since BSP is not well supported by CubeMX, user willing to make it work on a board will have to import the right BSP code and manually complete the project generated by CubeMX.

Hope this answers your question.

Khouloud.

meus_etudiant
Associate

Hi together,

I just had the same issue while trying to figure out why my SD card does not work as expected. Maybe it could be stated more clearly somewhere that one is supposed to link the driver with the fatfs?

Can somebody tell me what you are supposed to do? Implement the functions in sd_diskio.c using the functions provided by the HAL driver?

 

 

cheers,

meus_etudiant :)