cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 with FreeRTOS and eMMC FATFS

lorant124
Associate III

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:

0693W000006HL21QAG.jpg 

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.

0693W000006HL2aQAG.pngWhy?

How to set up emmc+fatfs+freertos with STM32L496?

Please help

Thank you

1 ACCEPTED SOLUTION
5 REPLIES 5

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lorant124
Associate III

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

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
lorant124
Associate III

Tried set up only SDMMC. If set up SD 1bit or MMC 1 bit it is doesn't work.

0693W000006HLRuQAO.pngIn state figure MMC_STATE_READY

If I set MMC 1bit

I got error in:

SDMMC_ERROR_CMD_RSP_TIMEOUT for CMD1

0693W000006HLSOQA4.png 

If I set SD 1bit

I got error in:

SDMMC_ERROR_CMD_RSP_TIMEOUT for CMD55

0693W000006HLS4QAO.png 

please help

Thanks