MMC (eMMC) support

Discussions and support about ChibiOS/HAL, the MCU Hardware Abstraction Layer.
jayalfredprufrock
Posts: 36
Joined: Tue Jan 13, 2015 6:33 am
Has thanked: 8 times

Re: MMC (eMMC) support

Postby jayalfredprufrock » Thu Mar 19, 2015 11:13 pm

Unfortunately your patch did not fix my problem. I misspoke before, I am in fact using a 8Mhz crystal. I did double check my clock settings and my APB2 was running at 84Mhz (according to STM's clock config tool). I believe SDIO requires < 60Mhz so I divided it down to 42Mhz but I'm still seeing the same issue. Again, I'll check as soon as I can with a scope to verify things.

Exeland
Posts: 12
Joined: Sat Jun 06, 2015 4:33 pm

Re: MMC (eMMC) support

Postby Exeland » Fri Feb 26, 2016 8:25 am

I recently transferred my project to Chibios_2.6.9 ChibiOS_16.1.3 and got some problems with the SDIO interface. In the new version hal layer does not work define SDC_MMC_SUPPORT and my card, which version 1, be a MMC card. I made some corrections in their source code to get it working , but I do not know whether this is true. In function mode_detect I change

Code: Select all

if (sdc_lld_send_cmd_short_crc(sdcp, MMCSD_CMD_APP_CMD, 0, resp) || MMCSD_R1_ERROR(resp[0])){...}

to

Code: Select all

if (sdc_lld_send_cmd_short_crc(sdcp, MMCSD_CMD_APP_CMD, 0, resp){...}

After this all work fine.

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: MMC (eMMC) support

Postby Giovanni » Fri Feb 26, 2016 10:26 am

I will look into this, I am not sure if the change can break some other card type.

Please do not cross-post.

Giovanni

Exeland
Posts: 12
Joined: Sat Jun 06, 2015 4:33 pm

Re: MMC (eMMC) support

Postby Exeland » Fri Feb 26, 2016 10:58 am

Sorry for cross-post.

lerela
Posts: 11
Joined: Tue Mar 21, 2017 7:08 pm
Been thanked: 2 times

Re: MMC (eMMC) support

Postby lerela » Fri Jul 21, 2017 11:26 am

Where did this code go? halconf.h says "MMC support is not yet implemented" but I see that barthess spent a fair amount of time working on this.


Return to “ChibiOS/HAL”

Who is online

Users browsing this forum: No registered users and 5 guests