embassy icon indicating copy to clipboard operation
embassy copied to clipboard

APB2 SDMMC clocking not enabled for STM32L4 series

Open snakehand opened this issue 2 years ago • 1 comments
trafficstars

I am trying to get a SDMMC example working on STM32L431 and discovered that the SDMMC peripheral was not clocked by the APB2 clock unless I added the following code:

unsafe {
    pac::RCC.apb2enr().modify(|w| w.set_sdmmcen(true));
}

snakehand avatar Aug 13 '23 13:08 snakehand

Feel free to submit a PR to enable the register for your chip during SDMMC initialization :)

MabezDev avatar Aug 13 '23 22:08 MabezDev