Search found 15 matches

by xiaoxufeng
Thu May 23, 2019 5:26 am
Forum: ESP32 IDF
Topic: SDIO slave. How to change timings?
Replies: 9
Views: 1506

Re: SDIO slave. How to change timings?

Hi DiEitch, Can you check whether your SDIO can work in 1-bit? (note, all the pullups should be left as-is, i.e. D1-D3 should be kept high if not used) Seen from the picture, the slave may ignore one of the clocks. This is possible to be caused by the SSN when all the data lines changed from 1-0 or ...
by xiaoxufeng
Mon Apr 22, 2019 5:23 am
Forum: ESP32 IDF
Topic: Need help to overrite one of file from component into ESP32
Replies: 10
Views: 872

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

Each component is treated as an individual part when maintaining the component. Back compatible are only ensured at the component level. I'm afraid that overriding a single file may make you more risky when you update the IDF. Sorry, we don't really have a way to override just one file... overrides ...
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: 10
Views: 872

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: 3
Views: 398

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: 500

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: 7
Views: 694

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: 794

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: 395

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: 1029

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: 9
Views: 1506

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...

Go to advanced search