How to use SDHC2 to access sd card?

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

How to use SDHC2 to access sd card?

Jump to solution
533 Views
KishanJPatel
Contributor II

Hello Team,

Actually I am trying to use sdk example for sd_card_polling and porting to SDHC2.

But not able to detect and communicate with sd card.

I am attaching pin configuration details and code changes details. So, you can identified what i made changes.

Could you please suggest if i missed anything to use USDHC2 as sd mode with attached configurations.

Its working properly if i use all pins as GPIO and operating as spi mode.

Thanks in advance,
Kishan Patel

0 Kudos
1 Solution
404 Views
KishanJPatel
Contributor II

Hello Team,

Its working now, the issue was pull-down register connected to the data3 line.
We removed that register and able to access sd-card via sd-mode interface.

 

Thanks & Regards,

Kishan Patel 

View solution in original post

0 Kudos
5 Replies
405 Views
KishanJPatel
Contributor II

Hello Team,

Its working now, the issue was pull-down register connected to the data3 line.
We removed that register and able to access sd-card via sd-mode interface.

 

Thanks & Regards,

Kishan Patel 

0 Kudos
503 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @KishanJPatel,

I do not see any attached files. Could you make sure to attach them on a reply? Also, take a look into this other community post. It also talks about the configuration for using uSDHC2 : https://community.nxp.com/t5/i-MX-RT/Problem-to-use-USDHC2-with-fatfs-sdcard-exemple/m-p/1004795

BR,
Edwin.

0 Kudos
494 Views
KishanJPatel
Contributor II

Hi Edwin,

 

Thank for the suggestion, I seen that conversation and they are trying to default(different) pin configurations for uSHHC2 compared to pins which I am trying to use.

I am attaching the pin detailsuSHHC2 pinout  and updated code(changes in code)uSDHC2 interface to MIMXRT1062DVL6A .
Please let me know if I missed anything or is it possible to access microSdCard using those pins.

 

Thanks,

Kishan Patel

0 Kudos
460 Views
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @KishanJPatel,

Could you please attach the files directly on one of your replies on this post? I am not able to access Google Drive files. Or if you do not wish to attach these files on a public manner, you can also open a ticket to get support via email, and therefore maintain these files confidential.

BR,
Edwin.

0 Kudos
455 Views
KishanJPatel
Contributor II

Hi @EdwinHz 

Sure, I am attaching file here.
I hope now you can get my concern to access the sd card via usdhc2.
Let me know if you still required any inputs from me.

Thanks,

Kishan Patel

0 Kudos