Search found 16 matches

by rob_bits
Mon Jan 16, 2023 1:11 pm
Forum: ESP-IDF
Topic: Strugling with Ethernet + time critical SPI+MCPWM
Replies: 6
Views: 2062

Re: Strugling with Ethernet + time critical SPI+MCPWM

I created an issue on github with an example code:
https://github.com/espressif/arduino-esp32/issues/7719

Hopefully someone will have any idea to debug the issue.
by rob_bits
Fri Jan 13, 2023 3:15 pm
Forum: ESP-IDF
Topic: Strugling with Ethernet + time critical SPI+MCPWM
Replies: 6
Views: 2062

Re: Strugling with Ethernet + time critical SPI+MCPWM

Frankly speaking I didn't perform any detailed analysis since I don't know your code and I'm not SPI expert. I based it on assumption that Polling Transaction via DMA takes 10 µs as per https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/spi_master.html#transaction...
by rob_bits
Thu Jan 12, 2023 12:27 pm
Forum: ESP32 Arduino
Topic: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
Replies: 3
Views: 1246

Re: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM

The heap was running out... There was a dummy 32kB static allocation in my code that consumed too much memory. After removing that dummy array from the code the webserver + wifi + spi are wokring well.
by rob_bits
Thu Jan 12, 2023 7:05 am
Forum: ESP32 Arduino
Topic: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
Replies: 3
Views: 1246

Re: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM

Thanks for the suggestion! I will definitely try this out.
Yes, you are right. SPIFFS.begin returns bool. The esp_vfs_spiffs_register() function returns with the error and SPIFFS.begin just prints the error before it returns.
by rob_bits
Wed Jan 11, 2023 4:25 pm
Forum: ESP32 Arduino
Topic: Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM
Replies: 3
Views: 1246

Calling SPIFFS.begin(true) -> esp_vfs_spiffs_register returns with ESP_ERR_NO_MEM

I have a complex firmware with lot of functionality for a unique design board withESP32-WROVER-IE-N16R8. Now as I merge different functions together I ran into issue with SPIFFS. Especially calling SPIFFS.begin(true) funtion, it returns with ESP_ERR_NO_MEM . Previously it was working well with webse...
by rob_bits
Mon Jan 09, 2023 1:51 pm
Forum: ESP-IDF
Topic: Strugling with Ethernet + time critical SPI+MCPWM
Replies: 6
Views: 2062

Re: Strugling with Ethernet + time critical SPI+MCPWM

Hey @ESP_ondrej, thanks for the comment You mentioned: you use the SPI quite extensively What do you think, What is the bottleneck of my problem? So when SPI is reading/writing RAM with ~4.5us period (x4 transfer during 18us period), does it blocks the internal memory bus for too long and that cause...
by rob_bits
Fri Jan 06, 2023 8:04 am
Forum: ESP-IDF
Topic: Strugling with Ethernet + time critical SPI+MCPWM
Replies: 6
Views: 2062

Re: Strugling with Ethernet + time critical SPI+MCPWM

The second thing that I havent described, if the SPI is not used at all on CORE1, however if I enable the MCPWM on GPIO the ethernet also got broken. Especially if I call this line of code during initialization: esp_rom_gpio_connect_out_signal((gpio_num_t)20, mcpwm_periph_signals.groups[MCPWM_UNIT_0...
by rob_bits
Thu Jan 05, 2023 12:35 pm
Forum: ESP-IDF
Topic: Strugling with Ethernet + time critical SPI+MCPWM
Replies: 6
Views: 2062

Strugling with Ethernet + time critical SPI+MCPWM

I have a problem that I cannot figure out and I runs out ideas... I am using a unique hardware with ESP32Wrover module. I am using Platformio with arduino and idf framework, platformio 5.3.0 release (Arduino v2.0.6 and ESP-IDF to v4.4.3). The following functionalities needs to be implemented: 1. Eth...
by rob_bits
Wed Jan 04, 2023 3:03 pm
Forum: General Discussion
Topic: RTOS running on one core only
Replies: 37
Views: 51508

Re: RTOS running on one core only

Long time this topic was commented, however I have an additional comment on how to get this run. Basically if you would like to run a separate function on Core 1 you will face issues that others observed, if the interrupts are disabled on core1. And I figured out, if everything is ran from RAM on th...
by rob_bits
Tue Dec 20, 2022 10:44 am
Forum: ESP-IDF
Topic: MCPWM - how to get the output state of PWMxA or PWMxB
Replies: 5
Views: 1430

Re: MCPWM - how to get the output state of PWMxA or PWMxB

Cool, great. This simplifies a lot. Thanks.

Btw, is there any other "loopback" GPIO? And is there any documentation about this GPIO20?

Thanks!