2025-07-06 11:27 PM
I’m working on a project using STM32H7 (Cortex-M7 core) with eMMC and Azure RTOS FileX to manage file systems.
The buffer is allocated as:
ALIGN_32BYTES (uint32_t fx_mmc_media_memory[FX_STM32_MMC_DEFAULT_SECTOR_SIZE / sizeof(uint32_t)]);
During initialization, I call:
fx_system_initialize();
fx_media_open(&gst_mmc_disk, "eMMC", fx_stm32_mmc_driver, ...);
However, the system crashes with a HardFault inside: SCB_InvalidateDCache_by_Addr()
which is called from: fx_media_open() ->fx_stm32_mmc_driver() ->mmc_read_data() ->invalidate_cache_by_addr()