Search found 37 matches

by ESP_michael
Mon Mar 23, 2020 2:19 am
Forum: General Discussion
Topic: [IDFGH-2892] Endless SPI w/ DMA receive problem
Replies: 5
Views: 8350

Re: Endless SPI w/ DMA receive problem

Hi NiclasH, Could you explain how each signals are controlled? for example CS: by SPI_MASTER or PWM CLK: by SPI_MASTER or PWM and do you use SPI_MASTER or SPI_SLAVE? As far as I know, our SPI_MASTER doesn't provide any feature to "sync" the CS with an signal. It's always triggered by the SW. For SPI...
by ESP_michael
Wed Oct 23, 2019 7:46 am
Forum: ESP-IDF
Topic: multiple definitions of 'operator|='
Replies: 4
Views: 6162

Re: multiple definitions of 'operator|='

Hi ppisljar,

We forgot to add static when defining quick helper function in the header.

Could you please add `static ` at the begining of operator function lines in `esp_attr.h` and have a try? i.e.

https://github.com/espressif/esp-idf/bl ... .h#L84-L94
by ESP_michael
Thu May 23, 2019 5:26 am
Forum: ESP-IDF
Topic: SDIO slave. How to change timings?
Replies: 10
Views: 12579

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 ESP_michael
Mon Apr 22, 2019 5:23 am
Forum: ESP-IDF
Topic: Need help to overrite one of file from component into ESP32
Replies: 10
Views: 10432

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 ESP_michael
Fri Apr 19, 2019 3:30 pm
Forum: ESP-IDF
Topic: Need help to overrite one of file from component into ESP32
Replies: 10
Views: 10432

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 ESP_michael
Fri Apr 19, 2019 7:45 am
Forum: ESP-IDF
Topic: SPI does not send address in master mode
Replies: 3
Views: 4927

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 ESP_michael
Mon Apr 08, 2019 4:19 am
Forum: ESP-IDF
Topic: SDSPI hangs occasionallly
Replies: 3
Views: 4862

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 ESP_michael
Mon Mar 25, 2019 11:20 am
Forum: ESP-IDF
Topic: SPI very slow
Replies: 7
Views: 7878

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 ESP_michael
Mon Mar 11, 2019 3:31 am
Forum: ESP-IDF
Topic: SD card driving with SPI
Replies: 4
Views: 6758

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 ESP_michael
Mon Feb 11, 2019 3:39 pm
Forum: ESP-IDF
Topic: ESP32 spi_device_queue_trans error
Replies: 3
Views: 6956

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.