Search found 88 matches

by michprev
Fri Jan 11, 2019 7:12 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 600

Re: [SPI] how to stop using DMA

Unfortunately I have written driver only for SPI master. As I am no longer working with ESP32 I do not plan to extend it also for SPI slave. There is a hardware bug in SPI DMA https://github.com/espressif/esp-idf/blob/72b3c6d6b8ae3da076680c431ec239a0ff4c23d0/components/driver/spi_common.c#L382-L438 ...
by michprev
Thu Dec 13, 2018 5:07 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 600

Re: [SPI] how to stop using DMA

Found the issue, it is not even DMA related. If you set SPI_FASTRD_MODE to 0 and SPI_FREAD_QIO to 1 hardware will still perform QIO transmission. It has been fixed in TRM from 07/12/2018. Also, out of curiosity, is there a reason you're writing your own driver, foregoing the one in esp-idf? In the p...
by michprev
Wed Dec 12, 2018 10:37 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 600

[SPI] how to stop using DMA

Hi, let's say that I want to use SPI with DMA channel and then without DMA channel. To use DMA I set channel in DPORT_SPI_DMA_CHAN_SEL_REG register. I set DPORT_SPI3_DMA_CHAN_SEL to either 1 or 2. SPI DMA transmission is successful but how to stop using DMA now? When I set DPORT_SPI3_DMA_CHAN_SEL to...
by michprev
Sun Nov 25, 2018 11:11 am
Forum: ESP32 IDF
Topic: SPI1 flash driver and DMA
Replies: 1
Views: 193

SPI1 flash driver and DMA

Can someone confirm that spi flash driver running on SPI1 never uses DMA?

Thank you.
by michprev
Sun Nov 25, 2018 8:43 am
Forum: Documentation
Topic: Documentation Requests/Feedback
Replies: 48
Views: 27122

Re: Document Requests

https://docs.espressif.com/projects/esp ... own-issues
Half duplex mode is not compatible with DMA when both writing and reading phases exist.
What does it mean exactly? When SPI_DOUTDIN in SPI_USER_REG is set to zero this issue occurs?
by michprev
Sat Nov 24, 2018 9:47 pm
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 42
Views: 5253

Re: Gripes on ESP32/ESP-IDF

https://github.com/espressif/esp-idf/issues/2738 Now take a look at this issue. It is present in v3.1 release even in master branch at the moment. Because of that assert SPI driver fails whenever trying to use it in DIO/QIO mode. Does it seem like a minor issue to you? This bug exists there over th...
by michprev
Sat Nov 24, 2018 3:58 pm
Forum: Documentation
Topic: Documentation Requests/Feedback
Replies: 48
Views: 27122

Re: Document Requests

Setting SPI_CLKCNT_H too high in SPI_CLOCK_REG register makes in some cases (probably depending on SPI_CLKCNT_N) stop SPI working. This is not documented.
by michprev
Fri Nov 23, 2018 9:08 pm
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 42
Views: 5253

Re: Gripes on ESP32/ESP-IDF

You don't seem to understand the core of this issue but that is OK, I just wanted to illustrate that even Espressif FreeRTOS implementation is not correct (in fact I am quite curious where the issue excatly is). I looked a little into your link and you code. I notice that in your UDP example is bind...
by michprev
Fri Nov 23, 2018 6:22 pm
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 42
Views: 5253

Re: Gripes on ESP32/ESP-IDF

I have prototyped many things with it over this time, using uSD, SPI (peripherals and 5" TFT LCD's) & I2C extensively. Even adding Ethernet capability to it. I have not run into one issue with it. Then you are really a lucky man. While writing my own driver for SPI I have found several issues in ES...
by michprev
Fri Nov 23, 2018 6:06 pm
Forum: General Discussion
Topic: Gripes on ESP32/ESP-IDF
Replies: 42
Views: 5253

Re: Gripes on ESP32/ESP-IDF

Have you considered the possibility that the problem is at your side? Sure, I have. But then I looked at other manufacturers solution and I can clearly say that the problem is not only me. There are certainly bugs in esp-idf (as in any software), but from your posting one could conclude that it is ...

Go to advanced search