embassy
embassy copied to clipboard
APB2 SDMMC clocking not enabled for STM32L4 series
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));
}
Feel free to submit a PR to enable the register for your chip during SDMMC initialization :)