cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F765 to eMMC integration issues

nagaraj
Associate II
Posted on May 17, 2018 at 10:04

Dear All

We are facing some issues on eMMC integration with STM32F765 micro controller , In STM32CUBE we generated SDIO interface source code , eMMC manufacture is says this source code was SDcard interface. How we can generate emmc source code fromSTM32CUBE , or we can get any library on EMMC ? Pls suggest me how to resolve this issues.

#sdio+dma+fatfs #sdio+emmc-example #stm32-sdio-sdio_clk-clock-48mhz #stm32f765

Note: this post was migrated and contained many threaded conversations, some content may be missing.
14 REPLIES 14
Posted on May 22, 2018 at 22:03

Hello Clive,

Can you post some source code ? an example of using an emmc with HAL.

Thanks !

François

Posted on May 22, 2018 at 22:40

Code is currently only being shared with project contributors and sponsors.

I'm looking for some 64GB and 128GB ODROID cards, custom boards with eMMC would also be of interest.

https://www.amazon.com/hz/wishlist/ls/965BMVYDCTDA?&sort=default

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on May 23, 2018 at 10:34

Hi Clive One 

eMMC is working in my board? , Pls confirm and send me read write separate  files . 

Waiting on your comments 

Posted on June 11, 2018 at 13:19

Matteo,

I'll attach a .HEX file for my current demo for the STM32L496G-DISCO, it outputs to the VCP at 115200 8N1, use the ST-LINK Utilities to update the firmware, and then a terminal application of choice to connect to the COM port created by the board's ST-LINK.

This will dump some sectors, read a directory, write and read some test files. Tests access layer with multiple block sizes to ensure data coherency.

I'm using Keil, and using the HAL CubeL4 example trees as a basis for placing the project

E:\CT\STM32Cube\Repository\STM32Cube_FW_L4_V1.0\Projects\32L496GDISCOVERY\Applications\FatFs\MMC-001

ST has just release the V1.0 version, I'll probably port over to that.

http://www.st.com/en/embedded-software/stm32cubel4.html

I have localized versions of these files addressing the MMC specific patches and debugging output, and have a USE_EMMC define to selectively build for SD or MMC use cases.

stm32l4xx_hal_sd_localized.c

stm32l496g_discovery_sd_localized.c

stm32l4xx_ll_sdmmc_localized.c

________________

Attachments :

STM32L496G_DISCO_MMC_001_08JUN2018.hex.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxWz&d=%2Fa%2F0X0000000azQ%2FYcW75RM3b11q2UJVqf9huLbXuZqf5i7A1pwHrPBDkE8&asPdf=false
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 27, 2018 at 21:46

New build for today

________________

Attachments :

STM32L496G_DISCO_MMC_002_27JUN2018.hex.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HxT7&d=%2Fa%2F0X0000000ayS%2FMkzQ.1X.HpHfpNraLR6UlU2OUfsLEQMX.haAnj_9jzI&asPdf=false
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..