Search found 5 matches

by alexey91
Fri Aug 31, 2018 7:20 am
Forum: ESP-IDF
Topic: SDIO Slave. Sending bug.
Replies: 3
Views: 5647

Re: SDIO Slave. Sending bug.

Hi, xiaoxufeng. Thanks for reply. I moved buffer allocation to main, and never free it. And it still failed to send buffer filled with values 0x0F, 0x1F, 0x2F, 0x4F, 0x8F, 0xF0, 0xF1, 0xF2, 0xF4 or 0xF8. I also tried to make this buffer static, DMA_ATTR static uint8_t dataBuf[1200]; but that also ha...
by alexey91
Thu Aug 30, 2018 7:32 am
Forum: ESP-IDF
Topic: SDIO Slave. Sending bug.
Replies: 3
Views: 5647

Re: SDIO Slave. Sending bug.

Hello. A little update for my problem. I tried to send other buffers and found, that this sending bug affected by content of buffer, not by addres. If my buffer filled with bytes, where one half of byte == 0xF, and another part have only one set bit or none (i meam bytes: 0x0F, 0x1F, 0x2F, 0x4F, 0x8...
by alexey91
Wed Aug 29, 2018 2:53 pm
Forum: ESP-IDF
Topic: SDIO Slave. Sending bug.
Replies: 3
Views: 5647

SDIO Slave. Sending bug.

Hello. I've faced some kind of bug i can't understand whet trying to send data from SDIO Slave. I use 4 bit bus and CLK freq is 400kHz. As i read from docs, buffer for sending have to be 4-byte alligned and DMA accessable. I create it like that uint8_t * dataBuf = heap_caps_malloc(600, MALLOC_CAP_DM...
by alexey91
Mon Aug 20, 2018 1:48 pm
Forum: ESP-IDF
Topic: SDIO slave. How to change timings?
Replies: 10
Views: 13910

Re: SDIO slave. How to change timings?

Hi xiaoxufeng. Thanks for your reply. I have updated esp-idf package to the latest version and sdio_slave_timing_t settings started to affect connection in default example. Default value is SDIO_SLAVE_TIMING_PSEND_PSAMPLE, i have changed it to oposite SDIO_SLAVE_TIMING_NSEND_NSAMPLE, and example con...
by alexey91
Fri Aug 17, 2018 12:28 pm
Forum: ESP-IDF
Topic: SDIO slave. How to change timings?
Replies: 10
Views: 13910

SDIO slave. How to change timings?

Hi, I'm tryimg to connect ESP32 (ESP-WROOM-32 module) via SDIO to STM32F4 uC, ESP32 should be a slave. First i've tried SDIO host-slave example, included in esp-idf, using 2 identical esp32 modules, it works almost fine(get timeout error somewhere in middle of transaction cycle). Then i tried to con...