Search found 63 matches

by squonk11
Thu Jan 24, 2019 5:09 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 3069

Re: [SPI] how to stop using DMA

Thank you for providing the link to your code. Are you able to read also more than 64 bytes (e.g. 113 bytes) with your driver without loosing some bytes? As far as I understood the esp-idf driver it is possible to read an arbitrary number of bytes between 1 and 64 bytes without DMA (just using the i...
by squonk11
Sun Jan 20, 2019 12:54 pm
Forum: Hardware
Topic: SPI slave driver, last 4 Bytes missing (using DMA)
Replies: 15
Views: 5492

Re: SPI slave driver, last 4 Bytes missing (using DMA)

@ESP_sprite : Is there a schedule when the new silicon is available? Will it be just a new step of the ESP32 or will it be a feature enhanced version of the ESP32?
by squonk11
Thu Jan 17, 2019 5:02 pm
Forum: Hardware
Topic: SPI slave driver, last 4 Bytes missing (using DMA)
Replies: 15
Views: 5492

Re: SPI slave driver, last 4 Bytes missing (using DMA)

@ESP_sprite : do you know if there will be a new silicon version of the ESP32 with this issue fixed or at least a workaround in ESP-IDF? If not I will need to switch to a different chip because a SPI slave interface suitable for an arbitrary number of incoming data bytes is mandatory for my project.
by squonk11
Thu Jan 17, 2019 4:57 pm
Forum: ESP32 IDF
Topic: Compilation problem with CMake build system under Windows 7
Replies: 7
Views: 2353

Re: Compilation problem with CMake build system under Windows 7

A re-installation of Python27 and the whole tool-chain did the job. Thank you for your support.
by squonk11
Mon Jan 14, 2019 12:21 pm
Forum: Hardware
Topic: SPI slave driver, last 4 Bytes missing (using DMA)
Replies: 15
Views: 5492

Re: SPI slave driver, last 4 Bytes missing (using DMA)

The non-DMA mode (just using the internal buffer of the ESP32) unfortunately is not a solution for me because I need to receive up to 114 bytes and the internal buffer of the ESP32 is only 32 bytes. I am wondering if it might be possible to activate an interrupt instead of a DMA transaction. In orde...
by squonk11
Sun Jan 13, 2019 12:59 pm
Forum: Hardware
Topic: SPI slave driver, last 4 Bytes missing (using DMA)
Replies: 15
Views: 5492

Re: SPI slave driver, last 4 Bytes missing (using DMA)

The information about the amount of transfered bytes from the master is stored in the second byte of the transferred telegram. In order to read this I need to receive the first two bytes separately (or byte by byte). Is there any possibility to achieve that? Even if that needs to be done by polling?
by squonk11
Sat Jan 12, 2019 4:42 pm
Forum: ESP32 IDF
Topic: SPI transaction interval
Replies: 4
Views: 1706

Re: SPI transaction interval

Thanx @zotikus, this design peculiarity is described here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_slave.html with the statement: Also, master should write lengths which are a multiple of 4 bytes. Data longer than that will be discarded. Unfortunately I ha...
by squonk11
Sat Jan 12, 2019 4:36 pm
Forum: Hardware
Topic: SPI slave driver, last 4 Bytes missing (using DMA)
Replies: 15
Views: 5492

Re: SPI slave driver, last 4 Bytes missing (using DMA)

I am quite sure that my problem is related to this statement: Also, master should write lengths which are a multiple of 4 bytes. Data longer than that will be discarded. which can be found here: https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_slave.html . Unfortun...
by squonk11
Fri Jan 11, 2019 9:44 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 3069

Re: [SPI] how to stop using DMA

Thank you for providing your source code! But for master mode now the problem seems to be fixed also in the esp-idf sources. For the slave mode the problem still exists and unfortunalely I urgently need a solution. Currently I am working on a totally stupid solution: I am trying to emulate an SPI sl...
by squonk11
Fri Jan 11, 2019 2:44 pm
Forum: General Discussion
Topic: [SPI] how to stop using DMA
Replies: 8
Views: 3069

Re: [SPI] how to stop using DMA

@michprev : are you willing to share your code of your spi driver? I am currently stuck with the problem that the spi slave driver from Espressif has the problem that in DMA mode for certain telegrams some of the received bytes are missing. So I am searching for another solution.

Go to advanced search