Search found 69 matches
- Mon Jan 14, 2019 12:21 pm
- Forum: Hardware
- Topic: SPI slave driver, last 4 Bytes missing (using DMA)
- Replies: 15
- Views: 22289
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...
- Sun Jan 13, 2019 12:59 pm
- Forum: Hardware
- Topic: SPI slave driver, last 4 Bytes missing (using DMA)
- Replies: 15
- Views: 22289
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?
- Sat Jan 12, 2019 4:42 pm
- Forum: ESP-IDF
- Topic: SPI transaction interval
- Replies: 4
- Views: 7097
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...
- Sat Jan 12, 2019 4:36 pm
- Forum: Hardware
- Topic: SPI slave driver, last 4 Bytes missing (using DMA)
- Replies: 15
- Views: 22289
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...
- Fri Jan 11, 2019 9:44 pm
- Forum: General Discussion
- Topic: [SPI] how to stop using DMA
- Replies: 8
- Views: 12837
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...
- Fri Jan 11, 2019 2:44 pm
- Forum: General Discussion
- Topic: [SPI] how to stop using DMA
- Replies: 8
- Views: 12837
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.
- Fri Jan 11, 2019 2:35 pm
- Forum: ESP-IDF
- Topic: SPI transaction interval
- Replies: 4
- Views: 7097
Re: SPI transaction interval
Hello, I read that you suggest to read bytes from the slave SPI via polling: -Using polling, if you don't mind the CPU being busy while waiting, rather than go do something else. Do you have sample code for that? AFAIK Espressif is currently only supplying a driver SW which is suffering from a desig...
- Wed Jan 09, 2019 7:45 pm
- Forum: Hardware
- Topic: SPI slave driver, last 4 Bytes missing (using DMA)
- Replies: 15
- Views: 22289
Re: SPI slave driver, last 4 Bytes missing (using DMA)
@trancefreak : did you find a solution or workaround for this problem? Unfortunately I encounter the same problem...
- Wed Jan 09, 2019 7:40 pm
- Forum: ESP-IDF
- Topic: [SPI Slave] lost rx_buffer data after spi_slave_transmit
- Replies: 3
- Views: 5032
Re: [SPI Slave] lost rx_buffer data after spi_slave_transmit
@paul719 : did you find a solution for this problem? I am having the same problem. Is there some workaround?
- Tue Jan 08, 2019 5:13 pm
- Forum: ESP-IDF
- Topic: SPI slave design flaw
- Replies: 2
- Views: 3647
Re: SPI slave design flaw
In the driver source for the SPI interface I see in spi_common.c :
Does this imply that there might be a v2 silicon in progress which fixes this problem?
Code: Select all
/*
Code for workaround for DMA issue in ESP32 v0/v1 silicon
*/