2026-05-05 12:39 PM - last edited on 2026-05-06 8:05 AM by Andrew Neil
Title edited to highlight that this is a build error, "Unknown destination type (ARM/Thumb)"
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
Solved! Go to Solution.
2026-05-06 11:59 AM
Hi @Andrew Neil you are the great!!
I change the GCC, use GNU Tools for STM32 (13.3.rel1) and the occurrence of the "dangerous relocation: unsupported relocation" has been resolved! but yet persist in dosen't find the functions HAL_SD_Init, HAL_SD_IRQHandler and MX_FATFS_Init:
Description Resource Path Location Type
make: *** [makefile:69: FIRM_NORAM_CM7.elf] Error 1 FIRM_NORAM_CM7 C/C++ Problem
undefined reference to `HAL_SD_Init' FIRM_NORAM_CM7 line 0, external location: ..\workspace_2.1.0\CCK7700\CM7\Core\Src\main.c:829 C/C++ Problem
undefined reference to `HAL_SD_IRQHandler' FIRM_NORAM_CM7 line 0, external location: ...\workspace_2.1.0\CCK7700\CM7\Core\Src\stm32h7xx_it.c:215 C/C++ Problem
undefined reference to `MX_FATFS_Init' FIRM_NORAM_CM7 line 0, external location: ...\workspace_2.1.0\CCK7700\CM7\Core\Src\main.c:263 C/C++ Problem
I'm incluse in propities this library:
but not find, any sugestion?
thanks with your help!
2026-05-07 4:37 AM
Hello @JEAN_121188
I reproduced the behavior with STM32CubeMX 6.17, and the Build was finished without errors.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-05-07 5:50 AM
Hello!!!
The problem today resolved!!! two methods are used: firts the solution by @Andrew Neil with solution of the occurrence of the "dangerous relocation: unsupported relocation.
Secound with Brasil support ST: Was movie archive of the comum path from projetc:
I would like to thank everyone who helped me @Mahmoud Ben Romdhane @Saket_Om and @Andrew Neil
Thank's all!!