2024-12-06 01:15 AM - last edited on 2024-12-06 05:26 AM by Andrew Neil
Hi,
I worked for last three weeks STM32H743iik6 project with SD card .SD card with SPI interface but I got FR_NOT_READY error.I have checked hardware connection.same code work in stm32f and stm32 l series.I don't know reason for stm32h series not working.please any one have code stm32h series please send me.
2024-12-06 02:01 AM
Stm32h7xx is very different from stm32f4 and stm32l, in that it uses many more caches and other performance-enhancing techniques. Unless you add things like __dsb() and cache-related code where necessary (I explicitly disable cacheing in memory-regions where I use DMA, but ST seem to favour explicit flushing/invalidating before/after DMA) you are likely to hit problems.
This is a bit of a long-shot. What revision is your stm32h743?
Years ago I started a project around a stm32h743 (actually trying to port from a board that took stm32f767 because I wanted more RAM). But I have up after struggling for a long time with the SD-card interface. This was with stm32h743 Revision Y, which has loads of errata to do with its sdmmc peripheral.
I have recently revisited the project using the newer Revision V that has many of the sdmmc errata fixed. The sdmmc bit currently works (based on HAL; I am not a fan of HAL and I intend to rewrite the code when I get the opportunity).
2024-12-06 02:38 AM
Hello @SK52
Please refer to the example Projects/STM32H743I-EVAL/Examples/SD in the STM32CubeH7 firmware as a starting point for your application.