2021-01-03 04:08 AM
Hi,
I have custom HW with STM32L496RGTx. On board I have MicroSD card slot.
I would like trying emmc from Hardkernel with microSD reader like this:
I use CubeMX 6.1.1 with STM32L4 v1.16.0 package. If I set sdmmc1 to MMC 1bit in FATFS doesn`t offer SD card.
Why?
How to set up emmc+fatfs+freertos with STM32L496?
Please help
Thank you
Solved! Go to Solution.
2021-01-03 06:56 AM
https://community.st.com/s/question/0D50X0000Bh4xkCSQQ/emmc-prototyping-on-nucleo
https://community.st.com/s/question/0D50X0000B2AxbSSQS/which-external-memory-for-stm32f401
https://community.st.com/s/question/0D50X00009XkhQ7SAJ/stm32f4-emmc-support
2021-01-03 06:44 AM
Not using CubeMX here, but have used these eMMC cards on assorted L4(+) boards.
If you have to use Cube, get it to generate SDMMC code and then modify it to work with the eMMC vs MicroSD
There should also be some Application examples for things like the Eval/Disco boards which could be ported.
2021-01-03 06:56 AM
https://community.st.com/s/question/0D50X0000Bh4xkCSQQ/emmc-prototyping-on-nucleo
https://community.st.com/s/question/0D50X0000B2AxbSSQS/which-external-memory-for-stm32f401
https://community.st.com/s/question/0D50X00009XkhQ7SAJ/stm32f4-emmc-support
2021-01-03 07:35 AM
Oh, thank you.
I thought eMMC cards is widespread device.
Where find example ? I checked L4 1.16 package Eval boards but not finded anything.
Thank you
2021-01-03 08:38 AM
They are not generally consumer devices, and they are expensive in a $/GB sense, hard to mount, and take work/effort. Used in commercial development where compactness and vibration are drivers over price.
Examples tend to be sparse as they are usually developed in closed commercial situations. Very similar to SDIO/SDMMC for cards, ST has forked the code, but it's not really necessary. Fully worked eMMC examples are on one of the H7-DISCO boards (H745?), but the MMC libraries are on all/most platforms at this point.
2021-01-03 08:49 AM
Tried set up only SDMMC. If set up SD 1bit or MMC 1 bit it is doesn't work.
In state figure MMC_STATE_READY
If I set MMC 1bit
I got error in:
SDMMC_ERROR_CMD_RSP_TIMEOUT for CMD1
If I set SD 1bit
I got error in:
SDMMC_ERROR_CMD_RSP_TIMEOUT for CMD55
please help
Thanks