fopen sdcard problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,047件の閲覧回数
loicb
Contributor I

Hello,

i work on the example of the sdcard. i have a mcf52259 and MQX3.8.

 

i had build the librairies and after the project.

but i block on the fopen("sdcard:", 0) because i have the message "Unable to open SD card device."

 

I found that the ChipSelect of the spi never be at 0 but i see the clock signal.

 

i have insert the line

#define BSP_SDCARD_GPIO_CS                       (GPIO_PORT_QS | GPIO_PIN3)

in the twrmcf52259.h . Is it a good idea ?

 

In the user_config.h, i had enabled the spi0.

 

Somebody can help me please ?

 

Thanks very much.

 

Loic

ラベル(1)
タグ(2)
1 解決策
848件の閲覧回数
alexandrevincon
Contributor III

Hello,

I've had the same issue with my k60 and mqx4.0. I've struggled for an entire day, and then I tried to use a different SD card and the examle project worked like a charm.

I advise you to try a different SD card (from another manufacturer, for example) a check it works better.

Best regards,

AV.

元の投稿で解決策を見る

1 返信
849件の閲覧回数
alexandrevincon
Contributor III

Hello,

I've had the same issue with my k60 and mqx4.0. I've struggled for an entire day, and then I tried to use a different SD card and the examle project worked like a charm.

I advise you to try a different SD card (from another manufacturer, for example) a check it works better.

Best regards,

AV.