Search found 13 matches

by xiaoxufeng
Fri Apr 19, 2019 3:30 pm
Forum: ESP32 IDF
Topic: Need help to overrite one of file from component into ESP32
Replies: 5
Views: 51

Re: Need help to overrite one of file from component into ESP32

Hi, Ritesh You can locally change one IDF file by: 1. modify the files you want 2. goes into the IDF submodule directory. 3. commit all the changes 4. go back to your own repository 5. commit the submodule update (git add [submodule path]; git commit -m "submodule update: ..."), its actually an one-...
by xiaoxufeng
Fri Apr 19, 2019 7:45 am
Forum: ESP32 IDF
Topic: SPI does not send address in master mode
Replies: 2
Views: 46

Re: SPI does not send address in master mode

Hi, The cs_ena_pretrans and address phase are not compatible in full duplex mode, please see: https://espressif-docs.readthedocs-hosted.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_master.html#_CPPv4N29spi_device_interface_config_t15cs_ena_pretransE The driver automatically set the a...
by xiaoxufeng
Mon Apr 08, 2019 4:19 am
Forum: ESP32 IDF
Topic: SDSPI hangs occasionallly
Replies: 3
Views: 160

Re: SDSPI hangs occasionallly

Hi tsc1987, Here is a debugging patch to show: 1. the process of the trans into and out of sending queue, into and out of the returning queue (to avoid he accidently receive the trans elsewhere). 2. when the interrupt triggers, when the interrupt is enabled/disabled, and trans_done is cleared 3. key...
by xiaoxufeng
Mon Mar 25, 2019 11:20 am
Forum: ESP32 IDF
Topic: SPI very slow
Replies: 2
Views: 171

Re: SPI very slow

Hi jollytopper,
What's your clock speed?
Can you provide a piece of simple code for us to test it? From our internal test, one-byte transaction should only take 8us (at 10MHz).
by xiaoxufeng
Mon Mar 11, 2019 3:31 am
Forum: ESP32 IDF
Topic: SD card driving with SPI
Replies: 4
Views: 422

Re: SD card driving with SPI

Hi m3ayko83,

We can't tell exactly what's the problem from the information you given. Personally I guess it's a driver initialization issue.
Can you provide your code and the complete log for us to help you?
by xiaoxufeng
Mon Feb 11, 2019 3:39 pm
Forum: ESP32 IDF
Topic: ESP32 spi_device_queue_trans error
Replies: 2
Views: 162

Re: ESP32 spi_device_queue_trans error

tatulea wrote:
Fri Feb 08, 2019 10:50 am
It looks like the problem was from DMA. I set it to 0 and I had to put it to 1 in order to use DMA in transaction.
Hi tatulea,
Thanks for your sharing of the debug result.
We will add a check in the code to help you detect this in the future.
by xiaoxufeng
Fri Aug 31, 2018 5:21 am
Forum: ESP32 IDF
Topic: SDIO Slave. Sending bug.
Replies: 3
Views: 704

Re: SDIO Slave. Sending bug.

Hi alexey, I think this doesn't make sure all your transactions are done: while(ESP_ERR_TIMEOUT == sdio_slave_send_get_finished(&tst, 0)){}; The driver needs you to keep the buffer until the sending is finished, so you have to check every one of them is finished or not. 1. To check whether is caused...
by xiaoxufeng
Tue Aug 21, 2018 7:38 am
Forum: ESP32 IDF
Topic: SDIO slave. How to change timings?
Replies: 4
Views: 755

Re: SDIO slave. How to change timings?

Hi Alexy, I've just tested on my board again and found no problem: the slave data output right in 10-12.5ns after the launch edge set (posedge if PSEND and negedge if NSEND) at 400KHz. Your problem may be: the hold time requirement is not meet on either side: host->slave side, I saw esp32 host outpu...
by xiaoxufeng
Mon Aug 20, 2018 9:21 am
Forum: ESP32 IDF
Topic: SDIO slave. How to change timings?
Replies: 4
Views: 755

Re: SDIO slave. How to change timings?

Hi Alexy, One more thing, the delay from CLK posedge to data stable time is about 12.5ns from my test (PSEND), which is over half a clock of 50MHz (HS mode). This is possibly why you think the data is given at negedge. You can try again in DS mode or even slower. The protocol allows 14ns after the p...
by xiaoxufeng
Mon Aug 20, 2018 7:56 am
Forum: ESP32 IDF
Topic: SDIO slave. How to change timings?
Replies: 4
Views: 755

Re: SDIO slave. How to change timings?

Hello Alexy, 1. Firstly, yes, you are right, the SD protocol requires timing of: DS mode: launch: negtive edge, latch: postive edge HS mode: launch: postive edge, latch: postive edge If your esp32 launches data at HS mode, it's obviously wrong. BTW, our host cannot launch data at negtive edge now, a...

Go to advanced search