You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/30 02:51:29 UTC
[GitHub] [incubator-nuttx] yjdwbj edited a comment on issue #2276: Atmel sam4s-xplained-pro board can't using built-in SD Card and nand flash
yjdwbj edited a comment on issue #2276:
URL: https://github.com/apache/incubator-nuttx/issues/2276#issuecomment-735514406
@adamfeuer Thanks your reply, I have a SPI over SD sniffer, and installed it to test, at least the worked for a TOSHIBA 8GB SDHC Memory Card. But instert another KINGMAX 256MB SD Card , it's report like below , looks said the CMD9 failed. But the same equipment ( SPI over SD sniffer and KINGMAX 256M SD Card) that is worked for other STM32 board.
```sh
Registering CDC/ACM serial driver
sam_automount_initialize: Initializing automounter(s)
automount_initialize: lower=0x41e404
sam_cardinserted_internal: Slot 0 inserted: NO
Mounting procfs to /proc
sam_sdinitialize: Initializing SERCOM SPI0
sam_sdinitialize: Successfully initialized SPI0
sam_sdinitialize: Binding SPI0 to MMC/SD slot 0
mmcsd_mediainitialize: Send CMD0
mmcsd_sendcmd: CMD0[00000000] R1=01
mmcsd_mediainitialize: Card is in IDLE state
mmcsd_mediainitialize: Send CMD8
mmcsd_sendcmd: CMD8[000001aa] R1=03 R7=ffffffff
mmcsd_mediainitialize: Send CMD55/ACMD41
mmcsd_sendcmd: CMD55[00000000] R1=01
mmcsd_sendcmd: CMD41[00000000] R1=01
mmcsd_mediainitialize: Identified SD ver1 card
mmcsd_mediainitialize: 0. Send CMD55/ACMD41
mmcsd_sendcmd: CMD55[00000000] R1=01
mmcsd_sendcmd: CMD41[00000000] R1=00
mmcsd_mediainitialize: Get CSD
mmcsd_sendcmd: CMD9[00000000] R1=00
mmcsd_getcardinfo: 0. SPI send returned ff
mmcsd_getcardinfo: 1. SPI send returned fc
mmcsd_getcardinfo: 2. SPI send returned 00
mmcsd_getcardinfo: 3. SPI send returned fc
mmcsd_getcardinfo: 4. SPI send returned 00
mmcsd_getcardinfo: 5. SPI send returned 81
mmcsd_getcardinfo: 6. SPI send returned e4
mmcsd_getcardinfo: 7. SPI send returned 83
mmcsd_getcardinfo: ERROR: Did not find start of block
mmcsd_mediainitialize: ERROR: mmcsd_getcsd(CMD9) failed: -5
sam_sdinitialize: Successfully bound SPI0 to MMC/SD slot 0
Mounting /dev/mmcsd0 to /fat
find_blockdriver: pathname="/dev/mmcsd0"
mmcsd_open: Entry
mmcsd_sendcmd: CMD9[00000000] R1=00
mmcsd_getcardinfo: 0. SPI send returned ff
mmcsd_getcardinfo: 1. SPI send returned fc
mmcsd_getcardinfo: 2. SPI send returned 00
mmcsd_getcardinfo: 3. SPI send returned fc
mmcsd_getcardinfo: 4. SPI send returned 00
mmcsd_getcardinfo: 5. SPI send returned 81
mmcsd_getcardinfo: 6. SPI send returned e4
mmcsd_getcardinfo: 7. SPI send returned 83
mmcsd_getcardinfo: ERROR: Did not find start of block
mmcsd_geometry: ERROR: mmcsd_getcsd returned -5
nx_mount: ERROR: Bind method failed: -19
ERROR: Failed to mount the FAT filesystem: -1 (19)
```
![220010423](https://user-images.githubusercontent.com/321919/100563412-4b822d00-32f9-11eb-88d9-3f569277a1a0.jpg)
![990555842](https://user-images.githubusercontent.com/321919/100563428-5210a480-32f9-11eb-969d-9331a37cfd79.jpg)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org