Emmc interface failed

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

Emmc interface failed

1,160 Views
vasudhevan
Contributor V

Hi,

     I imported evkmimxrt1064_sdcard_fatfs_freertos example code.

     If i connect sd card working fine.

     If i connect emmc to sd converter evk board i am getting error.

    

SDCARD fatfs freertos example.

Card inserted.

Make file system......The time may be long if the card capacity is big.
Make file system failed.

sdcard.jpg

Why i am getting error ?

How to solve the issue ?

Thanks & Regards,

    Vasu

Labels (1)
0 Kudos
7 Replies

1,032 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi  Vasudhevan G ,

  Do you test the sdcard polling code?

SDK_2.7.0_EVK-MIMXRT1064\boards\evkmimxrt1064\sdmmc_examples\sdcard_polling

  Just check whether the emmc card detect, write and erase have problems or not at first.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 Kudos

1,032 Views
vasudhevan
Contributor V

Hi Kerry,

     I imported sdcard_polling example code.

     

        /* card information log */
        CardInformationLog(card);

         This line code is blocked.

  If i pause the debugger fsl_usdhc.c line is no 714 while function blocking.

 

Debug Log:

 

SDCARD polling example.

Please insert a card into board.

Card inserted.

SDCARD polling example.

Please insert a card into board.

Card inserted.

         

Thanks & Regards

        Vasu

0 Kudos

1,032 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Vasudhevan G,

  Do you mean when you comment the following line?

pastedImage_1.png

Then you can detect the card?

Could you tell me your card capacity size? Do you test your emmc card with other host? whether it can be detected or not? Just make sure this card has no problem.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 Kudos

1,032 Views
vasudhevan
Contributor V

Hi Kerry,

   Do you mean when you comment the following line?

          Nothing i changed if pause debugger blocking here only.

  Then you can detect the card?

         No it's not detecting.

   Could you tell me your card capacity size?

         16GB FORESEE emmc card.

   Do you test your emmc card with other host?

         I checked with ubuntu pc and linux boards detecting fine.

   emmc.PNG

      

Thanks & Regards

        Vasu

0 Kudos

1,032 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Vasudhevan G,

  I checked the normal SD code log, it like this:

SDCARD polling example.

Please insert a card into board.

Card inserted.

Card size 3911680 * 512 bytes

Working condition:

  Voltage : 3.3V

  Timing mode: High Speed

  Freq : 49500000 HZ

Read/Write/Erase the card continuously until encounter error......

Write/read one data block......
Compare the read/write content......
The read/write content is consistent.
Write/read multiple data blocks......
Compare the read/write content......
The read/write content is consistent.
Erase multiple data blocks......

Input 'q' to quit read/write/erase process.                
Input other char to read/write/erase data blocks again.

After printf the card insterted, it will initialize the sd card, you emmc capacity size is large, so it may need more time.

So, do you wait a long time, any progress?

Please also put an breakpoint in :

pastedImage_1.png

When debug it, for the long time, whether the breakpoint can be enter or not?

I want to know your sd_cardInit is OK or not.

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 Kudos

1,032 Views
vasudhevan
Contributor V

Hi Kerry,

   SD card working fine. 

   Issue in emmc.

SDCARD polling example.

Please insert a card into board.

Card inserted.

Card size 31116288 * 512 bytes

Working condition:

  Voltage : 1.8V

  Timing mode: SDR104

  Freq : 198000000 HZ

Read/Write/Erase the card continuously until encounter error......

Write/read one data block......
Compare the read/write content......
The read/write content is consistent.
Write/read multiple data blocks......
Compare the read/write content......
The read/write content is consistent.
Erase multiple data blocks......

Input 'q' to quit read/write/erase process.                
Input other char to read/write/erase data blocks again.

How to solve issue in emmc ?

Based on this only we need to design our custom hardware.

0 Kudos

1,032 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Vasudhevan G,

   How long when you use the 16G SD card to detect it and printf the card size?

   When you use the emmc, and set the breakpoint under  CardInformationLog(card); whether the breakpoint can stop or not? Just check whether SD_CardInit can be finished or not?

pastedImage_1.png

  What's your emmc version?

pastedImage_2.png

Kerry

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 Kudos