cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with SDMMC2

JEAN_121188
Visitor

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:SD.png
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'

SD_Code.png

Any sugestion?

Thank's

2 REPLIES 2
Saket_Om
ST Employee

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.

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.
Saket_Om
Andrew Neil
Super User

@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.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.