Skip to main content
Visitor II
June 29, 2024
Question

STM32H745XIH6 SD Card communication issue

  • June 29, 2024
  • 2 replies
  • 2297 views

Hello,

We are using the  Part#STM32H745XIH6 in our current product and it is going to be use in production.

We are very near to release the product but at last we are facing the issue in the SD Card communication and below are the details.

At power ON, SD card is detected by the  STM32H745XIH6 then it check for the Mount status and it is also successfully mounted. Now  STM32H745XIH6 is going to create the file SQLITE and SQLITE-PU files on SD card but the process is stopped and stay at the SD card initializing stage.

We also check the SD card data but nothing is created in SD card...

Please find the Image of the connections for your reference.

Kindly provide the valuable suggestion to clear out the issue to move the product in production.

Regards,

Alpesh

ABora4_0-1719635965212.png

 

 

    This topic has been closed for replies.

    2 replies

    Graduate II
    July 1, 2024

    If you have version control go backwards. Try to write and read text file , dir command .  Write protection for sd card?

    Enable more debug, chek the return status.

    ABora.4Author
    Visitor II
    July 1, 2024

    Hello,

    Let me check as per your comment and update here.

    Regards,

    Alpesh

    Super User
    July 1, 2024

    Hi,

    Mount status and it is also successfully mounted.

    How you know this ?

    Try this : 

    set all pins (to sd-card, Dx, clk, cmd ) to medium speed;

    set clock (in clock tree) to get about 50MHz for sdmmc (i use 100M and div1 (= /2) in sdmmc );

    at first set to 1-bit mode (4-bit is much more critical);

    in program first mount (NOW) , check result:

    fresult = f_mount(&SDfs, (TCHAR const*)SDPath, 1);		// SD card mount NOW

    IF ok, try to read dir, read file ...never mkfs format or write file at first testing... !

    Use a good card with some files (to read something) on it.

    + (in Cube, fatfs settings) enable ex-fat + long filenames, if you want use big sd-cards and >8char names.

    IF working fine, try 4-bit mode...

    ABora.4Author
    Visitor II
    July 2, 2024

    Hello,

    Thank you for the guidance. I will try with the mentioned solutions and update here with the log.

    Meanwhile I want to know that I am able to measure the clock(24MHz), cmd, data and cd on CRO. We can see that the cd pin goes low when sd card was inserted and default is high.

    As we have two board, out of them, in one board sd card is working and other board sd card is not working, Here the hardware and software are same in both the boards.

    Can you please confirm that the issue is whether hardware side OR software side?

    so we can focus on that part as the schematic is attached in this post previously.

    Regards,

    Alpesh

    Super User
    July 2, 2024

    Hi,

    if same software, there is a hardware problem in the not working board.