Thank you guys, that fixed the issue.ESP_ondrej wrote: ↑Wed Jan 18, 2023 8:37 amSPI and EMAC shares the DMA. Could you please try to decrease `dma_burst_len` in your EMAC config (`eth_esp32_emac_config_t esp32_emac_config`) to e.g. `ETH_DMA_BURST_LEN_2`?
Search found 15 matches
- Wed Jan 25, 2023 12:09 am
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
Re: SPI master MOSI starts later than SCK when network activity
- Wed Jan 18, 2023 2:46 am
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
Re: SPI master MOSI starts later than SCK when network activity
Hi yake827, thank you for your help. I implemented your suggestions, but the problem still persists with the exact same symptoms.
See https://github.com/szekelyisz/esp32-spibug for updated code.
See https://github.com/szekelyisz/esp32-spibug for updated code.
- Fri Jan 13, 2023 3:51 pm
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
Re: SPI master MOSI starts later than SCK when network activity
One more strange thing can be seen at the end of the SPI transaction showing the problem. According to the bit pattern in memory MOSI should end in 7 short pulses followed by 1 long pulse. But this is what happens:
- Fri Jan 13, 2023 3:45 pm
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
Re: SPI master MOSI starts later than SCK when network activity
Here's a bit of help to catch the problem. The bit pattern is crafted so that when MOSI is wired to an addressable LED strip (WS2812B and friends) it should cause all LEDs to emit a dim light (red, green and blue all set to 1 which is the minimum brightness). When the error happens, all LEDs blink o...
- Fri Jan 13, 2023 3:03 pm
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
Re: SPI master MOSI starts later than SCK when network activity
Hi, thank you for your answer. Here's a capture with the CS signal included: error2.png There are 2 more strange things I discovered. I changed the pattern to [0b10010010, 0b01001001, 0b00100110] (so it's the bit pattern 100 repeated over 3 bytes with the exception of the last repetition which is 11...
- Wed Jan 11, 2023 1:01 am
- Forum: ESP-IDF
- Topic: SPI master MOSI starts later than SCK when network activity
- Replies: 8
- Views: 4224
SPI master MOSI starts later than SCK when network activity
In an application I want to send big SPI transactions of 12288 bytes in a continuous way, repeating every 40 ms. The SPI data rate is set to 2.5 MHz so there should be ~680 us between each transaction without overrun. Works like a charm. But as soon as I start sending data (1 UDP packet of 4096 byte...
- Thu Nov 24, 2022 10:34 pm
- Forum: ESP-IDF
- Topic: How to resolve conflicting component names
- Replies: 1
- Views: 2398
How to resolve conflicting component names
Hi, I have a component in my project called button. It uses the button component from the registry. When I try to build, I get this error: ERROR: Cannot process component requirements. Multiple candidates to satisfy project requirements: requirement: "button" candidates: "espressif__button, button" ...
- Thu Oct 29, 2020 6:36 am
- Forum: Hardware
- Topic: Interrupts from SPI master delayed
- Replies: 0
- Views: 1691
Interrupts from SPI master delayed
I have an application where I need to trigger short SPI transfers quite often (at around a rate of 13000 Hz) and on time. But a few times every second I'm unable to meet the deadline because something is blocking hardware interrupts from the peripheral. Here's an illustration of the problem: Screens...
- Thu Oct 22, 2020 5:52 am
- Forum: Hardware
- Topic: My board wouldn't boot, why?
- Replies: 2
- Views: 3067
Re: My board wouldn't boot, why?
The solution is to pull EN low momentarily. This boots up the board into download mode.
How to make sure the board boots up without intervention after power is applied?
How to make sure the board boots up without intervention after power is applied?
- Thu Oct 22, 2020 4:24 am
- Forum: Hardware
- Topic: My board wouldn't boot, why?
- Replies: 2
- Views: 3067
My board wouldn't boot, why?
I built a board hosting a ESP32-WROOM-32D module. After assembling, I just can't get it to do anything. Schematics are according to the datasheet. Here's what I checked: pin 1 (GND) is low pin 2 (3V3) is high (3.24V) pin 3 (EN) is high pin 14 (MTDI/GPIO12) is low pin 26 (GPIO0) is low to enter downl...