2026-05-05 12:39 PM - last edited on 2026-05-06 12:14 AM by Gyessine
Hi!
I'm trying develop code with STM32H745IIT using SDMMC2 in M7 core based in this tutorial:
https://www.youtube.com/watch?v=I9KDN1o6924
My version the CubeMX is: 6.17 and STM32CubeIDE is 2.1.0
Initially I set mode: SD 4 bits Wide bus and configuration is:
NVIC: Enabled
NO constants
GPIO Setting:
- PB3: D2, PB4: D3, PB14: D0, PB15: D1, PD6: CK and PD7: CMD
- DMA: not exist??
Only with this code is the following error generated in CubeIDE:
(HAL_SD_Init): Unknown destination type (ARM/Thumb) in ./Application/User/Core/main.o
(HAL_SD_IRQHandler): Unknown destination type (ARM/Thumb) in ./Application/User/Core/
undefined reference to `HAL_SD_Init'
undefined reference to `HAL_SD_IRQHandler'
Any sugestion?
Thank's
2026-05-06 2:20 AM
Hello @JEAN_121188
Is the macro #define HAL_SD_MODULE_ENABLED is defined in stm32h7xx_hal_conf.h. If this define is missing, the SD HAL APIs such as HAL_SD_Init() and HAL_SD_IRQHandler() may not be compiled correctly.
2026-05-06 2:26 AM
@JEAN_121188 wrote:with this code is the following error generated in CubeIDE:
(HAL_SD_Init): Unknown destination type (ARM/Thumb) in ./Application/User/Core/main.o
(HAL_SD_IRQHandler): Unknown destination type (ARM/Thumb) in ./Application/User/Core/
(red highlighting added)
Are those the only errors ?
Specifically, are you also getting dangerous relocation: unsupported relocation errors ?
If so, see this thread.