IMX1064 EVK SD Card Issue.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX1064 EVK SD Card Issue.

1,755 Views
Dhevan
Contributor IV

Hi,

     We are facing issue with sd card interface.

     Previously sd card code works fine.

     Recent days sd card not working we are getting error.

     We have tested with evkmimxrt1064_sdcard_polling example code it's blocking fsl_sd.c line number 1923.

       if (SD_ProbeBusVoltage(card) == kStatus_SDMMC_SwitchVoltageFail)
       {
               return kStatus_SDMMC_SwitchVoltageFail;
      }

      Inside above function.

      /* Set card interface condition according to SDHC capability and card's supported interface condition. */
     if (kStatus_Success != SD_ApplicationSendOperationCondition(card,           applicationCommand41Argument))
    {
         error = kStatus_SDMMC_HandShakeOperationConditionFailed;
         break;
   }

 

    Blocking on this function.

   Why suddenly we are facing the issue ?

   Why same example code some time is working and some time not working ?

   Please help us to solve the issue.

0 Kudos
Reply
8 Replies

1,753 Views
Dhevan
Contributor IV

SDK Version - SDK_2.8.6_EVK-MIMXRT1064

0 Kudos
Reply

1,741 Views
mjbcswitzerland
Specialist V

Hi

Please load the binary from here to your board:
https://www.utasker.com/iMX/RT1064.html#usb-msd

Compare to see whether it gives an error message due to the SD card not being able to be mounted or not. (It will allow USB-MSD to SD card to be used and also has a DOS-like interface on the LPUART (utFAT menu), or on USB-CDC for monitoring the card content and analysing files and directories).

Depending on whether you get similar errors or not it may help distinguish between HW and SW issues.
If there is a error code generated tell me which one and I can then give you more details of the exact problem.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html

0 Kudos
Reply

1,710 Views
mjbcswitzerland
Specialist V

Hi Vasu

The debug output shows that there was a timeout when waiting for the SD card to return a response to the CMD55 request in a CMD55/CMD41 sequence.

In fact it looks like the same issue that you have with the example blocking code since I see that it is doing something with the CMD41 argument and presumably never returning.

It would be possible to increase the timeout but if your other reference (without a timeout) gets stuck I doubt that it will solve the issue.

Since the problem looks to be the same with two different software solutions (in the uTasker one it retries by restarting the complete mounting sequence again after a short delay) I would suggest that there is a problem with the SD card itself.

Have you tried with multiple cards?

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html

0 Kudos
Reply

1,697 Views
Dhevan
Contributor IV

Hi,

      We have checked 8gb, 16gb, 32gb sd cards but not working.

      We have tried usb device msd sd card example also there also error.

      We are suspecting hardware issue but voltage and connectivity everything proper we don't know why it's not working.

     Other board sd card example code working fine.

     What may be the hardware issue ?

    

Regards,

 Vasu

       

0 Kudos
Reply

1,694 Views
mjbcswitzerland
Specialist V

Hi

USB-MSD to SD card will also require the SD card to be mounted (which presently fails).

If the same code works on a different board it really does sound like an issue with the EVK. On the EVK there is a dedicated SD card power switch - maybe the voltage is initially Ok but when the initialisation reaches a certain point the power consumption increases and that is when the voltage falls and the SD card fails (?)

Sine you have tested with numerous different SD cards it is not restricted to just one...

Regards

Mark

 

 

0 Kudos
Reply

1,657 Views
Dhevan
Contributor IV

Hi @mjbcswitzerland,

      We are suspecting hardware issue.

      Which component we need to replace ?

     

Thanks & Regards,

         Vasu

0 Kudos
Reply

1,652 Views
mjbcswitzerland
Specialist V

Hi Vasu

I am sorry but I don't know what components may need to be replaced, however I would suspect the power supply. A seconc EVK may be the best solution - if all works well you can then compare voltages and signals.

Regards

Mark

 

0 Kudos
Reply

1,719 Views
Dhevan
Contributor IV

Hi,

      Thanks for your reply.

      I had flashed binary image file and sd card also inserted but getting error.

      Please look into attached log file.

     

Hello, world... MIMXRT1064 [Power-on]
i.MX RT Unique ID: 0x500000b3-677ef5b80537a1d2
Static memory = 0x000014bc
OS Heap use = 0x00000439 from 0x00018000
Initial stack margin 0x0004e994
FlexRAM:
3 Code banks [0x00000000..0x00017fff]
13 Data banks [0x20000000..0x20067fff]
SPI Flash: Winbond 4MByte W25Q32
uFileSystem integrity
Start: 0x700a0000
Granularity: 0x0000c000
End: 0x703abfff
OK
Disk E mounted
TIMEOUT!!!
SD-card not responding: -6
TIMEOUT!!!
SD-card not responding: -6
TIMEOUT!!!
SD-card not responding: -6
TIMEOUT!!!
SD-card not responding: -6

 

Thanks & Regards,

        Vasu

0 Kudos
Reply