2025-07-08 6:37 PM - edited 2025-07-08 6:39 PM
I'm starting a project and need to use the STM32F412G-DISCO board for initial development.
I already had one board purchased in 2020.
I downloaded the latest STM32CubeMX and created a new project based on this board with all default options. STM32CubeMX includes, by default, SDcard support.
When I flash the generated code, the MCU enters the Error_Handler during initialization, right in the
2025-07-15 6:59 AM - edited 2025-07-16 1:20 AM
Hello @edillere;
Which STM32CubeMx version are you using?
Did you get the same issue when working in 1 bit bus wide mode?
Could you try to use the latest STM32CubeMX version to generate your code.
I recommend you to look at SDIO interface not working in 4Bits with STM32F4 Firmware Package - STMicroelectronics Community and at How to create a file system on a SD card using STM32CubeIDE - STMicroelectronics Community
Also, I advise you to test LCD_PicturesFromSDCard example under STM32CubeF4.
This application has been tested with STMicroelectronics STM32412G-DISCOVERY evaluation boards
For the demo issue, thank you for bringing this issue to our attention, I reported internally for checking.
Internal ticket number: 214177 (This is an internal tracking number and is not accessible or usable by customers).
Thank you.
Kaouthar
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.