2018-04-30 11:23 PM
Dear friends,
I have an issue with uSD reading and writing in DMA mode (How ever I am able to read and write data on SD card when dma template is off). I used CubeMX to configure♯
but it did not work for me ''out of the box''.My CubeMX version is 4.25.0 and L4 MCU package is 1.11.0.
Could you point out what I am doing wrong in configuration or in my code or if it is CubeMX issue, could you please advice me how to solve it?
I found some topics related to SDIO and DMA configuration and tried to implement them :https://community.st.com/0D50X00009XkVtKSAV
?https://community.st.com/0D50X00009Xkf5gSAB
?https://community.st.com/0D50X00009XkYIGSA3
?Below you find screen shots with my settings and my SW4STM32 project including CubeMX file.
My MCU setup:
My CubeMX configuration:
1) Clock
2)Clock factor
3)NVIC
4)DMA
5)Pin configuration
6)FatFS (sector size)
7)DMA template enabled
#fatfs-sdio #stm32l476 #sdio-dma #sd-card #sdio+dma+fatfs #stm32l4-sdioSolved! Go to Solution.
2018-05-11 03:01 PM
Dear Imen,
Thank you very much for this notification. I just update my CubeMX immediately.
I have another question. Did ST MCU application team also fix bsp_driver_sd.c / stm32l4xx_it.c, because sources generated by CubeMX did not work out of the box?
I fixed them according to suggestions of
Kirshin.Evgeny
andVasiliev.Alexander
and upload the template to GitHub.https://github.com/uid17/uSD_DMA_RTOS_STM32l476RG_FIXED
Thank you in advance for your response.
Best regards,
Dmitry.
2018-05-12 01:42 AM
Dear Imen,
I regret to inform you that even after upgrade to CubeMX 4.25.1 PLLM is still missing in the generated code.
Best regards,
Dmitry.
2018-05-14 03:52 AM
Hi
dmitry.kochubey
,I tested with the attached project and the PLLM is well generated, could you retest please.
If you are asked to migrate your project please do it