acassis commented on issue #3711:
URL: 
https://github.com/apache/incubator-nuttx/issues/3711#issuecomment-840771983


   Hi @microhobby it is failing to get card information during the mount 
process, it is failing here:
   ```
     for (i = 0; i < 8; i++)
       {
         response = SPI_SEND(spi, 0xff);
         finfo("%d. SPI send returned %02x\n", i, response);
   
         /* If a read operation fails and the card cannot provide the requested
          * data, it will send a data error token instead.  The 4 least
          * significant bits are the same as those in the R2 response.
          */
   
         if (response != 0 && (response & MMCSD_SPIDET_UPPER) == 0)
           {
             ferr("ERROR: %d. Data transfer error: %02x\n", i, response);
             return -EIO;
           }
   ```
   Did you try with more SDCards ?
   Also, how are you wiring the module? I noticed it is running at relative 
high frequency for SPI (20MHz) :
   ```
   mmcsd_decodecsd:   Maximum:         25000000 Hz
   mmcsd_decodecsd:   Actual:          20833333 Hz
   ```
   Maybe using short wires could help!


-- 
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:
[email protected]


Reply via email to