2018-05-09 04:10 AM
Hello there,
I am using STM32L452. I would like to interface with a SanDisk eMMC memory (
SDINBDG4-8G-XI1
).In cubeMX, when I configure the project and choose SDMMC1->MMC 4 bits Wide bus, I get the following:
Does that mean that there is no ready HAL functions? Or, for instance, can I use the SD 4 bits Wide bus for communication? Are those interfaces compatible in STM32?
I would appreciate all help.
#sd-card- #emmc #mmc2018-05-09 05:09 AM
Which part specifically?
Not available on 48 pin devices, or some 64-pin ones
2018-05-09 05:33 AM
In the end will need to do that probably. But with having no examples for configuration the task is harder. Do you know either there are any eMMC BSP for other STM32 family MCU's? Also, will this be supported in cubeMX for L4 in future?
DAHMEN.IMEN
?Also there is one thing not clear to me: For the L4 package i could find only the low layer MMC library, while F4 and F7 have HAL library. Are they compatible, or can I not use the HAL one for L4 device? This is additionally unclear, since in the cubeMX project options I cannot choose LL for eMMC but only HAL, which is not there...
2018-05-09 07:15 AM
The hardware is there, the parts I am trying to use it for are:
STM32L452VETx
STM32L452RETx
No external SMPS there.
2018-05-09 07:25 AM
Well it could be a CubeMX 'Computer Says No' moment, I'd just use the HAL
Make sure you have the PLL enabled, not sure if that part allows routing of SYSCLK into the SDMMC
2018-05-09 07:59 AM
The whole SDIO/SDMMC and HAL/LL across the families is a bit quixotic, it might get more unified over time. My concerns tend to be whether things work or not, and keep my top-level code portable
I take this approach to finding the appropriate base example in HAL/LL/SPL, and hack it into shape, then merge in my functionality
https://www.youtube.com/watch?v=SkvY7HuaapE
2018-05-09 08:02 AM
I get the point. But I would just like to know on what I am standing in this eMMC situation- make sure the lib exists or not, but can be copied from F4 for example, because its the same. Also I had no idea there is so much overhead in making the coconut look the way it does after its taken from the tree.
2018-05-09 08:05 AM
Hello
Przenioslo.Lukasz
I forward your questions to the appropriate team to clarify your case.
Best Regards,
Imen
2018-05-09 08:07 AM
Thank you,
I have just created the cubeMX project and imported it to truestudio. The SDMMC1 init function generated is empty:
/* SDMMC1 init function */void MX_SDMMC1_Init(void){}It doesnt even consist of USER CODE BEGIN and END statemens to its not really usable.
2018-05-09 08:50 AM
I'm surprised the guy seems to have all his fingers...