Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDcardread issue Tiva123gxl #12500

Closed
shijogeorge24 opened this issue Jun 14, 2024 · 15 comments
Closed

SDcardread issue Tiva123gxl #12500

shijogeorge24 opened this issue Jun 14, 2024 · 15 comments

Comments

@shijogeorge24
Copy link

hey all ,

I was working with a Tiva C to use an SD card. Even though the log says the bring-up is successful, I can't mount the device. How can I fix this issue? I have tested with 4GB, 8GB, and 16GB cards. None of them seem to be working.

tm4c_bringup: starting bring up
tm4c_i2ctool: hello register i2c
tm4c_i2c_register: bus info=0
tm4c_i2c_register: bus info=1
tm4c_i2c_register: bus info=2
tm4c_i2c_register: bus info=3
tm4c_bringup: Initializing SPI port 0
tiva_ssibus_initialize: port: 0
ssi_setmodeinternal: mode: 0
ssi_setbitsinternal: nbits: 8
ssi_setbitsinternal: CR0: 00000007
ssi_setfrequencyinternal: frequency: 400000
ssi_setfrequencyinternal: CR0: 00006307 CPSR: 00000002
ssi_enable: CR1: 00000002
tm4c_bringup: Successfully initialized SPI port 0
tm4c_bringup: Binding SPI port 0 to MMC/SD slot 0
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
tiva_ssistatus: Returning SPI_STATUS_PRESENT
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->95
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->95
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
mmcsd_mediainitialize: ERROR: Send CMD0 failed: R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x2000443c rxbuffer: 0x20004444 nwords: 1
ssi_txuint8: TX: 0x2000443c->ff
ssi_rxuint8: RX: 0x20004444<-00
tm4c_bringup: Successfully bound SPI port 0 to MMC/SD slot 0
tm4c_dev_gpio_init: hello world

NuttShell (NSH) NuttX-12.5.1
nsh> ABDF
tm4c_bringup: starting bring up
tm4c_i2ctool: hello register i2c
tm4c_i2c_register: bus info=0
tm4c_i2c_register: bus info=1
tm4c_i2c_register: bus info=2
tm4c_i2c_register: bus info=3
tm4c_bringup: Initializing SPI port 0
tiva_ssibus_initialize: port: 0
ssi_setmodeinternal: mode: 0
ssi_setbitsinternal: nbits: 8
ssi_setbitsinternal: CR0: 00000007
ssi_setfrequencyinternal: frequency: 400000
ssi_setfrequencyinternal: CR0: 00006307 CPSR: 00000002
ssi_enable: CR1: 00000002
tm4c_bringup: Successfully initialized SPI port 0
tm4c_bringup: Binding SPI port 0 to MMC/SD slot 0
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
tiva_ssistatus: Returning SPI_STATUS_PRESENT
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->95
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->95
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
mmcsd_mediainitialize: ERROR: Send CMD0 failed: R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x2000443c rxbuffer: 0x20004444 nwords: 1
ssi_txuint8: TX: 0x2000443c->ff
ssi_rxuint8: RX: 0x20004444<-00
tm4c_bringup: Successfully bound SPI port 0 to MMC/SD slot 0
tm4c_dev_gpio_init: hello world

NuttShell (NSH) NuttX-12.5.1
nsh> ls /dev
/dev:
can0
console
gpio536870914
gpio536870932
i2c0
i2c1
i2c2
i2c3
mmcsd0
null
ttyS0
ttyS1
nsh> mount -t vfat /dev/mmcsd0 /mnt
find_blockdriver: pathname="/dev/mmcsd0"
mmcsd_open: Entry
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
tiva_ssistatus: Returning SPI_STATUS_PRESENT
tiva_ssistatus: Returning SPI_STATUS_PRESENT
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->40
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->95
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->ff
ssi_rxuint8: RX: 0x2000426c<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
ssi_transfer: txbuffer: 0x20004294 rxbuffer: 0x2000429c nwords: 1
ssi_txuint8: TX: 0x20004294->ff
ssi_rxuint8: RX: 0x2000429c<-00
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
ssi_transfer: txbuffer: 0x2000424c rxbuffer: 0x20004254 nwords: 1
ssi_txuint8: TX: 0x2000424c->ff
ssi_rxuint8: RX: 0x20004254<-00
mmcsd_waitready: Card still busy, last response: 00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->40
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->00
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->95
ssi_rxuint8: RX: 0x2000426c<-00
ssi_transfer: txbuffer: 0x20004264 rxbuffer: 0x2000426c nwords: 1
ssi_txuint8: TX: 0x20004264->ff
ssi_rxuint8: RX: 0x2000426c<-00
mmcsd_sendcmd: CMD0[00000000] R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
mmcsd_mediainitialize: ERROR: Send CMD0 failed: R1=00
tiva_ssiselect: devid: 65536 CS: de-assert
mmcsd_open: Failed to initialize card
ssi_transfer: txbuffer: 0x200042d4 rxbuffer: 0x200042dc nwords: 1
ssi_txuint8: TX: 0x200042d4->ff
ssi_rxuint8: RX: 0x200042dc<-00
nx_mount: ERROR: Bind method failed: -19
nsh: mount: mount failed: 19
nsh> ls /dev
/dev:
can0
console
gpio536870914
gpio536870932
i2c0
i2c1
i2c2
i2c3
mmcsd0
null
ttyS0
ttyS1
nsh>

@shijogeorge24
Copy link
Author

added a pull-up resistor to the CS line. Now, registering works fine, but the mount is still not working.

tm4c_bringup: starting bring up
tm4c_i2ctool: hello register i2c
tm4c_i2c_register: bus info=0
tm4c_i2c_register: bus info=1
tm4c_i2c_register: bus info=2
tm4c_i2c_register: bus info=3
tm4c_bringup: Initializing SPI port 0
tiva_ssibus_initialize: port: 0
ssi_setmodeinternal: mode: 0
ssi_setbitsinternal: nbits: 8
ssi_setbitsinternal: CR0: 00000007
ssi_setfrequencyinternal: frequency: 400000
ssi_setfrequencyinternal: CR0: 00006307 CPSR: 00000002
ssi_enable: CR1: 00000002
tm4c_bringup: Successfully initialized SPI port 0
tm4c_bringup: Binding SPI port 0 to MMC/SD slot 0
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
tiva_ssistatus: Returning SPI_STATUS_PRESENT
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 400000
ssi_enable: CR1: 00000002
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-fe
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-09
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
mmcsd_mediainitialize: Send CMD0
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->95
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
mmcsd_sendcmd: CMD0[00000000] R1=01
mmcsd_mediainitialize: Card is in IDLE state
mmcsd_mediainitialize: Send CMD8
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->48
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->01
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->aa
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->87
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-aa
mmcsd_sendcmd: CMD8[000001aa] R1=01 R7=000001aa
mmcsd_mediainitialize: 0. Send CMD55/ACMD41
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->77
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
mmcsd_sendcmd: CMD55[00000000] R1=01
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->69
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
mmcsd_sendcmd: CMD41[40000000] R1=01
mmcsd_mediainitialize: 22. Send CMD55/ACMD41
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->77
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-01
mmcsd_sendcmd: CMD55[00000000] R1=01
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->69
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->40
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD41[40000000] R1=00
mmcsd_mediainitialize: Send CMD58
ssi_transfer: txbuffer: 0x200043fc rxbuffer: 0x20004404 nwords: 1
ssi_txuint8: TX: 0x200043fc->ff
ssi_rxuint8: RX: 0x20004404<-ff
ssi_transfer: txbuffer: 0x200043b4 rxbuffer: 0x200043bc nwords: 1
ssi_txuint8: TX: 0x200043b4->ff
ssi_rxuint8: RX: 0x200043bc<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->7a
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->00
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-c0
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-ff
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-80
ssi_transfer: txbuffer: 0x200043cc rxbuffer: 0x200043d4 nwords: 1
ssi_txuint8: TX: 0x200043cc->ff
ssi_rxuint8: RX: 0x200043d4<-00
mmcsd_sendcmd: CMD58[00000000] R1=00 OCR=c0ff8000
mmcsd_mediainitialize: OCR: c0ff8000
mmcsd_mediainitialize: Identified SD ver2 card/with block access
mmcsd_mediainitialize: Get CSD
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-ff
ssi_transfer: txbuffer: 0x2000438c rxbuffer: 0x20004394 nwords: 1
ssi_txuint8: TX: 0x2000438c->ff
ssi_rxuint8: RX: 0x20004394<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->49
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->00
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->00
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->00
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->00
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->ff
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->ff
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->ff
ssi_rxuint8: RX: 0x200043ac<-ff
ssi_transfer: txbuffer: 0x200043a4 rxbuffer: 0x200043ac nwords: 1
ssi_txuint8: TX: 0x200043a4->ff
ssi_rxuint8: RX: 0x200043ac<-00
mmcsd_sendcmd: CMD9[00000000] R1=00
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-ff
mmcsd_getcardinfo: 0. SPI send returned ff
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-fe
mmcsd_getcardinfo: 1. SPI send returned fe
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-40
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-0e
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-00
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-32
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-5b
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-59
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-00
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-00
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-1d
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-8a
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-7f
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-80
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-0a
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-40
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-40
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-b9
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-8c
ssi_transfer: txbuffer: 0x200043d4 rxbuffer: 0x200043dc nwords: 1
ssi_txuint8: TX: 0x200043d4->ff
ssi_rxuint8: RX: 0x200043dc<-04
mmcsd_dmpcsd: CSD
mmcsd_dmpcsd: CSD_STRUCTURE: 1.1
mmcsd_dmpcsd: TAAC:
mmcsd_dmpcsd: TIME_VALUE: 0x01
mmcsd_dmpcsd: TIME_UNIT: 0x06
mmcsd_dmpcsd: NSAC: 0x00
mmcsd_dmpcsd: TRAN_SPEED:
mmcsd_dmpcsd: TIME_VALUE: 0x06
mmcsd_dmpcsd: RATE_UNIT: 0x02
mmcsd_dmpcsd: CCC: 0x5b5
mmcsd_dmpcsd: READ_BL_LEN: 9
mmcsd_dmpcsd: READ_BL_PARTIAL: 0
mmcsd_dmpcsd: WRITE_BLK_MISALIGN: 0
mmcsd_dmpcsd: READ_BLK_MISALIGN: 0
mmcsd_dmpcsd: DSR_IMP: 0
mmcsd_dmpcsd: C_SIZE: 7562
mmcsd_dmpcsd: VDD_R_CURR_MIN: 7
mmcsd_dmpcsd: VDD_R_CURR_MAX: 6
mmcsd_dmpcsd: VDD_W_CURR_MIN: 7
mmcsd_dmpcsd: VDD_W_CURR_MAX: 6
mmcsd_dmpcsd: C_SIZE_MULT: 8
mmcsd_dmpcsd: SD ER_BLK_EN: 1
mmcsd_dmpcsd: SD SECTOR_SIZE: 127
mmcsd_dmpcsd: SD WP_GRP_SIZE: 0
mmcsd_dmpcsd: WP_GRP_EN: 0
mmcsd_dmpcsd: R2W_FACTOR: 2
mmcsd_dmpcsd: WRITE_BL_LEN: 9
mmcsd_dmpcsd: WRITE_BL_PARTIAL: 0
mmcsd_dmpcsd: FILE_FORMAT_GROUP: 0
mmcsd_dmpcsd: COPY: 1
mmcsd_dmpcsd: PERM_WRITE_PROTECT: 0
mmcsd_dmpcsd: TMP_WRITE_PROTECT: 0
mmcsd_dmpcsd: FILE_FORMAT: 0
mmcsd_dmpcsd: CRC: 5c
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 20000000
ssi_setfrequencyinternal: CR0: 00000107 CPSR: 00000002
ssi_enable: CR1: 00000002
mmcsd_decodecsd: SPI Frequency
mmcsd_decodecsd: Maximum: 25000000 Hz
mmcsd_decodecsd: Actual: 20000000 Hz
mmcsd_decodecsd: Read access time: 11 ticks
mmcsd_decodecsd: Write access time: 26 ticks
mmcsd_decodecsd: Sector size: 512
mmcsd_decodecsd: Number of sectors: 7744512
tiva_ssistatus: Returning SPI_STATUS_PRESENT
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x2000443c rxbuffer: 0x20004444 nwords: 1
ssi_txuint8: TX: 0x2000443c->ff
ssi_rxuint8: RX: 0x20004444<-ff
mmcsd_spislotinitialize: mmcsd_mediainitialize returned OK
tm4c_bringup: Successfully bound SPI port 0 to MMC/SD slot 0
tm4c_dev_gpio_init: hello world

NuttShell (NSH) NuttX-12.5.1
nsh> ls /dev
/dev:
can0
console
gpio536870914
gpio536870932
i2c0
i2c1
i2c2
i2c3
mmcsd0
null
ttyS0
ttyS1
nsh> mount -t vfat /dev/mmcsd0 /mnt
find_blockdriver: pathname="/dev/mmcsd0"
mmcsd_open: Entry
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 20000000
ssi_enable: CR1: 00000002
tiva_ssistatus: Returning SPI_STATUS_PRESENT
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x200042c4 rxbuffer: 0x200042cc nwords: 1
ssi_txuint8: TX: 0x200042c4->ff
ssi_rxuint8: RX: 0x200042cc<-ff
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x200042d4 rxbuffer: 0x200042dc nwords: 1
ssi_txuint8: TX: 0x200042d4->ff
ssi_rxuint8: RX: 0x200042dc<-ff
ssi_disable: CR1: 00000000
ssi_setmodeinternal: mode: 0
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setbitsinternal: nbits: 8
ssi_enable: CR1: 00000002
ssi_disable: CR1: 00000000
ssi_setfrequencyinternal: frequency: 20000000
ssi_enable: CR1: 00000002
tiva_ssiselect: devid: 65536 CS: assert
ssi_transfer: txbuffer: 0x2000423c rxbuffer: 0x20004244 nwords: 1
ssi_txuint8: TX: 0x2000423c->ff
ssi_rxuint8: RX: 0x20004244<-ff
ssi_transfer: txbuffer: 0x200041f4 rxbuffer: 0x200041fc nwords: 1
ssi_txuint8: TX: 0x200041f4->ff
ssi_rxuint8: RX: 0x200041fc<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->49
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->00
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->00
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->00
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->00
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
ssi_transfer: txbuffer: 0x2000420c rxbuffer: 0x20004214 nwords: 1
ssi_txuint8: TX: 0x2000420c->ff
ssi_rxuint8: RX: 0x20004214<-ff
mmcsd_sendcmd: ERROR: Failed: i=9 response=ff
mmcsd_getcardinfo: ERROR: CMD9/10 failed: R1=ffffffff
tiva_ssiselect: devid: 65536 CS: de-assert
ssi_transfer: txbuffer: 0x2000425c rxbuffer: 0x20004264 nwords: 1
ssi_txuint8: TX: 0x2000425c->ff
ssi_rxuint8: RX: 0x20004264<-ff
mmcsd_geometry: ERROR: mmcsd_getcsd returned -5
nx_mount: ERROR: Bind method failed: -19
nsh: mount: mount failed: 19
nsh>

@dishilov
Copy link

Could you check that the card is formatted Fat32 (xFat or other formats are not supported).

@shijogeorge24
Copy link
Author

shijogeorge24 commented Jun 15, 2024 via email

@dishilov
Copy link

From the mailing list archive, can you try the following advice from Gregory: mailing list response

@shijogeorge24
Copy link
Author

shijogeorge24 commented Jun 15, 2024 via email

@dishilov
Copy link

dishilov commented Jun 15, 2024 via email

@shijogeorge24
Copy link
Author

shijogeorge24 commented Jun 15, 2024 via email

@acassis
Copy link
Contributor

acassis commented Jun 16, 2024

Shijo, if you can use same sdcard with a STM32 board with SDCard support, this way you confirm your setup is correct

@shijogeorge24
Copy link
Author

shijogeorge24 commented Jun 16, 2024 via email

@acassis
Copy link
Contributor

acassis commented Jun 17, 2024

I think for STM32L4 family only the board nucleo-l496zg has support. It is better to use a generic STM32F4 board, like STM32F4Discovery

@shijogeorge24
Copy link
Author

i have tested with stm32f411re board

nsh> mount -t vfat /dev/mmcsd0 /mnt
spi_setmode: mode=0
spi_setbits: nbits=8
spi_send: Sent: 00ff Return: 00ff Status: 02
nsh: mount: mount failed: 19

attaching my config file is there something missing in the config file ?

configsd.txt

@shijogeorge24
Copy link
Author

@acassis
Copy link
Contributor

acassis commented Jun 19, 2024

@shijogeorge24 did you try to format the card as FAT32 using NuttX mkfatfs?

https://acassis.wordpress.com/2023/11/25/how-to-format-sdcard-on-nuttx-terminal/

@shijogeorge24
Copy link
Author

The issue has been resolved. The problem was that the CS line was not configured at all

/* Configure SSI0 GPIOs (NOTE that SSI0Fss is not initialized here,
. I assumed that whenever we call the function tiva_ssibus_initialize(), it would take care of initializing all the necessary pins, but that was not the case for the CS pin, which was left for the user to configure.
At the moment, I have hardcoded the CS pin in the tiva_ssibus_initialize function. Is there a better way to handle this?

@acassis
Copy link
Contributor

acassis commented Jun 20, 2024

Hi @shijogeorge24 the chip select should be configured at tm4c_ssidev_initialize() as it is done for MCP2515.

If you finally got everything working, please close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants