2021-08-06 01:49 AM
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?
2021-08-18 06:47 AM
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.
2023-11-14 04:28 AM
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 :)