Skip to main content
Visitor II
March 14, 2024
Question

SD card not detect in fp-ai-vision1

  • March 14, 2024
  • 1 reply
  • 1652 views

I am using STM32H747-DISCO with the FP-AI-VISION1 package, I have updated my drivers and solved the screen problem. Now I am facing an issue with the SD card. It is given that an SD card with class 10 is recommended, I am using SanDisk Ultra microSDHC class 10. While testing it shows SD is not detected, I don't know what the problem is, SD is working fine with my PC. Please help me out. 

 

 

IMG_20240314_160717427~2.jpg

 

IMG_20240314_160842963~2.jpg

 

    This topic has been closed for replies.

    1 reply

    Visitor II
    March 26, 2024

    I have the exact same issue, on my STM32H747I-DISCO board (revision D03) using the same Sandisk 32 GB SDHC Ultra Micro-SD card (model number SDSQUA4-032G-GN6MA) that you show on the picture.

    I have tried the SD card example program described in this tutorial, with some modifications suggested in the user forum:

    • I chose P18 as Detect_SDIO pin.
    • I changed hsd1.Init.BusWide to SDMMC_BUS_WIDE_1B to get a 1 bit wide data bus.
    • I changed hsd1.Init.ClockDiv to 0x80.

    After these changes, the example program worked and formatted the SD card to FAT32 and then wrote a text file to it.

    But when I instead compiled and flashed the STM32H747I_DISCO_PersonDetect_MobileNetv2_CM7 binary from  FP-AI-VISION1_V3.1.0, I also got the message "Error. SD card not detected" when I tried to enter the "Frame Capture" mode and select RAW or BMP file format.

    I have tried combinations of the following, with no success:

    • Externally formatting the SD card to FAT16 (a single 4 GB partition)
    • Setting USE_SD_BUS_WIDE_4B to 0U in stm32h747i_discovery_sd.h (although there is a conflicting define of the same constant in stm32h747i_discovery_conf.h, already set to 0)
    • Setting hsd->Init.ClockDiv to 0x80 in stm32h747i_discovery_sd.c

    Any help would be appreciated!

    Visitor II
    March 30, 2024

    Thank you for the information, SD card is detected in BSP example which is used to test the drivers, I think we should mimic library files related to SD to get success.

    Try C:\Users\User\STM32Cube\Repository\STM32Cube_FW_H7_V1.11.1\Projects\STM32H747I-DISCO\Examples\BSP project to check SD card once.

    Visitor II
    April 5, 2024

    Thank you for the advice!

    I opened the BSP directory of STM32Cube_FW_H7_V1.11.1 as shown in the project explorer below:

    magnus_lindhe_0-1712316105069.png

    I compiled both the CM4 and CM7 projects and programmed them via ST Link (CM4 first), but the result is that the LCD screen of the STM32H747I-DISCO is filled with random noise and I cannot interact with the demo. Do I need to update some LCD drivers to make it work, or is there something else missing?