Search found 47 matches

by fivdiAtESP32
Fri Dec 28, 2018 11:41 pm
Forum: ESP32 Arduino
Topic: New to ESP32; Question of Performance
Replies: 4
Views: 809

Re: New to ESP32; Question of Performance

FWIW, at 240MHz a counter can be incremented about 265 million times in 10 seconds. Test code: #include <stdio.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_timer.h" void test() { uint64_t starttime = esp_timer_get_time(); uint32_t count = 0; while (count < 265693020) { ...
by fivdiAtESP32
Fri Dec 28, 2018 8:17 am
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

Did you make the change that was suggested here to your code? I'm fairly sure that if this change is made there will be no "guru meditation errors".
by fivdiAtESP32
Thu Dec 27, 2018 7:24 pm
Forum: ESP32 IDF
Topic: Faster, optimized ESP-IDF fork + PSRAM Issues
Replies: 21
Views: 3135

Re: Faster, optimized ESP-IDF fork + PSRAM Issues

@neoniousTR If you think the allocator is better why not create a pull request on GitHub?
by fivdiAtESP32
Thu Dec 27, 2018 6:54 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

It looks like there's a typo.

Replace:

Code: Select all

  if(p2 != NULL)
with:

Code: Select all

  if(i2 != NULL)
to see if it works.
by fivdiAtESP32
Thu Dec 27, 2018 3:17 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

It will only change the main task stack size. When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks. Maybe the issue is being caused because the stacks for the other tasks are not big enough. If stack size is less then esp gives "stack overfl...
by fivdiAtESP32
Thu Dec 27, 2018 2:12 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

It will only change the main task stack size.
When the other 7 or 8 tasks are created the stack size is specified directly in the call to create those tasks.
Maybe the issue is being caused because the stacks for the other tasks are not big enough.
by fivdiAtESP32
Thu Dec 27, 2018 2:00 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

Try with an even bigger number, maybe 10000.
by fivdiAtESP32
Thu Dec 27, 2018 1:43 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

As already mentioned above, changing the main tasks size may fix the issue, but it may not. Try the following: Call "make menuconfig" from a command line, navigate to "Component config > ESP32-specific > (nnnn) Main task stack size", and change nnnn to the number you would like it to be. Note that w...
by fivdiAtESP32
Thu Dec 27, 2018 1:29 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

Your app_main function runs in a task and that task needs a stack for storing things like local variables, arguments passed to functions and function call return address. The stack for this task is called the main stack and it must have a certain number of bytes. If it has less bytes than required t...
by fivdiAtESP32
Thu Dec 27, 2018 12:04 pm
Forum: ESP32 IDF
Topic: guru meditation error
Replies: 18
Views: 2232

Re: guru meditation error

The crash occurs while attempting to do a task context switch. If I had to guess I'd say it's a stack size issue somewhere but I may be incorrect here. There are several configuration options for stack sizes in menuconfig. Try increasing them to see if it helps. Try increasing "Component config > ES...