SD Card support issues

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SD Card support issues

1,639件の閲覧回数
mspenard603
Contributor IV

Hi Gents,

 I'm trying to use the following common SD Card with the Eval kit and SDcard SDK example code. However, it is working inconsistently. Failing ~50% of the time.

Could someone explain what the issue and/or limitation is here with these cards?

83541382_640899493322538_7823467535948316672_n.jpg
https://www.amazon.com/gp/product/B003HIWHN0/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

(WORKING)------------

FATFS example to demonstrate how to use FATFS with SD card.

Please insert a card into board.

Card inserted.

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

Create directory......

Create a file in that directory......

Create a directory in that directory......

List the file in that directory......
General file : F_1.DAT.
Directory file : DIR_2.

Write/read file until encounters error......

Write to above created file.
Read from above created file.
Compare the read/write content......
The read/write content is consistent.

Input 'q' to quit read/write.
Input other char to read/write file again.

(FAILURE)----------------------
FATFS example to demonstrate how to use FATFS with SD card.

Please insert a card into board.

Card inserted.

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

Create directory......
Make directory failed.

0 件の賞賛
返信
3 返答(返信)

1,515件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi Mike,

Is there any progress? I tested on my board again. It works fine. I guess this maybe the sd card problem. Can you change a new card and try again?

Regards,

Jing

0 件の賞賛
返信

1,515件の閲覧回数
mspenard603
Contributor IV

Well the root cause was (which I forgot about) our PCB provides only 3.3v to the SD card. So the resolution was to specify BOARD_SD_SUPPORT_180V 0 (false) as a #symbol.

What I don't understand is why the voltage auto-detect function in the SDK works on some cards and not others. As this 32GB SanDisk card above fails to work with the SDK voltage auto-detect. BUT the "same" card in a 4GB variant does work. Any thoughts on this would be helpful.

Making matters more confusing is this is not always reported as a kStatus_SDMMC_SwitchVoltageFail  but sometimes a _SenddScrFailed. Which is what led to my above oversight and this post.


0 件の賞賛
返信

1,515件の閲覧回数
jingpan
NXP TechSupport
NXP TechSupport

Hi,

In SD card standard, there is default two regulator. Vmmc is operation voltage. It is from 2.7~3.6V. It connect to card vdd. Vqmmc is signal voltage, could be 1.8v/3.3v.

Maybe you should try another 4GB Scandisk card.

Regards,

Jing

0 件の賞賛
返信