Search found 1249 matches

by victor_pv
Sat May 27, 2017 2:13 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

@victor - the most of the CMD6 settings works with SDIO and 1.8V signalling only. AFIK the only setting applicable for 3.3V signalling is the High Speed mode setting. The CMD6 reads 64bytes where you get some information. Max speed - you can set here is 50MHz, as the 25 and 50 are the only supporte...
by victor_pv
Fri May 26, 2017 8:24 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

The timeouts of 100ms is not enough. Let us do 500ms. The gpio settings must be the highest speed. I would follow the voltage settings and CMD6 as well, even 50MHz speed is max for 3.3V signalling. The High Speed mode also sets the i/o of the sdcard to a faster setting. Moreover, it seems the 24MHz...
by victor_pv
Fri May 26, 2017 7:27 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

The fact we have a problem to init the Samsung EVO card is a clear indication there is still a problem.. There is definitely a problem, but doesn't seem to be the init sequence. Check it up compared to the specs in case I missed something, but to me looks right given that we are not going to high s...
by victor_pv
Fri May 26, 2017 7:24 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

BTE this R1 response indicates the card is in receive mode, but not ready to get data: R1 value: 110000000000 I'm thinking the card may be doing some background work after it detects no activity for a while, and we may have to give it more time to get ready, that to avoid the errors after a while in...
by victor_pv
Fri May 26, 2017 7:12 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

I think there is something missing with init sequence. Those crc errors are not because of the wiring, but missing init commands. I would recommend to compare all the commands required with other implementations - like chibios sdio, or others. The init sequence is from the HAL, but I have compared ...
by victor_pv
Fri May 26, 2017 6:41 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

(HAL_SD_ERROR...): #define SDMMC_ERROR_NONE 0x00000000U /*!< No error */ #define SDMMC_ERROR_CMD_CRC_FAIL 0x00000001U /*!< Command response received (but CRC check failed) */ #define SDMMC_ERROR_DATA_CRC_FAIL 0x00000002U /*!< Data block sent/received (CRC check failed) */ #define SDMMC_ERROR_CMD_RSP...
by victor_pv
Fri May 26, 2017 4:03 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

Can you run it a few times in a row to see if it fails any time? I have also discovered that if I let the sketch waiting for a few minutes, the card seems to go to idle, which would need another command to get it in transfer mode again. If you could test that, would be good to confirm it is normal ...
by victor_pv
Fri May 26, 2017 4:02 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

I do not know how it is with SDIO, but in SPI the SDcard goes in idle immediately after deselected (CS=1) and then it takes 200uA current typically. Thanks Pito, good to know. In SDIO mode it is normally in "transfer" state after initialization. From the R1 bits shows that after a while i...
by victor_pv
Fri May 26, 2017 2:41 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

oops, it seemed the card is corrupted, this is caught in my linux dmesg system log [ 4085.713867] sdc: sdc1 [ 4087.396831] FAT-fs (sdc1): error, invalid access to FAT (entry 0x0f006300) [ 4087.396837] FAT-fs (sdc1): Filesystem has been set read-only [ 4098.257323] FAT-fs (sdc1): error, invalid acce...
by victor_pv
Fri May 26, 2017 2:35 pm
Forum: STM32generic
Topic: [STM32GENERIC] SDIO DMA
Replies: 162
Views: 1651

Re: [STM32GENERIC] SDIO DMA

thanks victor, 100 megs (102400000 bytes) test_in.bin strontium branded uSD card class 10 16GB http://www.strontium.biz/products/memory-cards/mobile-memory-cards/ Reading, Writing and calculating CRC of In file... ************************************************* Done in 61185 msecs ***************...

Go to advanced search