embassy-rs / embassy

Modern embedded framework, using Rust and async.
https://embassy.dev
Apache License 2.0
5.61k stars 777 forks source link

STM32H7 Sdmmc not functional #3049

Open tycodeguy opened 5 months ago

tycodeguy commented 5 months ago

I need to do some logging on my STM32H7, and have tried everything I can to perform initialization and logging from both a Main and an embassy_executor task. I'm creating my peripheral with the new_4bit method, and when doing this, I lock up the chip when trying to call init_card(), or the card() reference grabber. If I simply try to write a block before doing this, I get an error from the returned result.

I'd appreciate help with any debugging steps or recommended fixes.

Thanks!

JanekGraff commented 3 weeks ago

Did you have any success with this? Facing a similar issue on a STM32L4 where init_card() hangs on sending the idle command (here), specifically while waiting for the command status

JanekGraff commented 3 weeks ago

Did you have any success with this? Facing a similar issue on a STM32L4 where init_card() hangs on sending the idle command (here), specifically while waiting for the command status

Nvm, this was a clock configuration issue on my end. Seems the SDMMC Peripheral needs the HSI48 clock which i didn't initialize in my clock configuration.