SD Card / SPI Assistance Needed

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

SD Card / SPI Assistance Needed

ソリューションへジャンプ
1,322件の閲覧回数
Thunder
Contributor III

Hi, I'm using an  HCS08LG32, running at 3.3V to interface with an SD card via SPI.  CLK frequency is at 4M, which is divided by 12 for the SPI SD card init sequence.  Most of the code is borrowed from that provided with the JM60 USB/SDcard demo.  I get thru the init() sequence most (by not all times) and get an error most of the time in writing the SD card.  I seem to be able to read the SD "most" of the time.  In the rare occasions that a write is successful, I can read back the numbers written.   I have the SW code as an attachment here.

Any suggestions welcome.

ラベル(1)
0 件の賞賛
返信
1 解決策
487件の閲覧回数
Thunder
Contributor III

I finally located my problem, that being a typo in one of the SPI commands (writing SPIS instead of SPID in a line of code).  Everything working fine now.

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
488件の閲覧回数
Thunder
Contributor III

I finally located my problem, that being a typo in one of the SPI commands (writing SPIS instead of SPID in a line of code).  Everything working fine now.

0 件の賞賛
返信