New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vTaskDelayUntil() method not working. (IDFGH-2044) #391
Comments
vTaskDelayUntil is an untested function as of now, we can't guarantee it works, so by default, it aborts rather than executing possibly buggy code. If you're still okay with using it, in menuconfig under FreeRTOS there should be an option to turn off these aborts. |
Thanks Spritetm, it makes sense now.
Will try it anyways disabling the aborts.
Cheers.
…On 2 March 2017 at 17:06, Jeroen Domburg ***@***.***> wrote:
vTaskDelayUntil is an untested function as of now, we can't guarantee it
works, so by default, it aborts rather than executing possibly buggy code.
If you're still okay with using it, in menuconfig under FreeRTOS there
should be an option to turn off these aborts.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#391 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJBBJgPpQxC1m7VMD9AcDFd2-dMmAixMks5rhqm9gaJpZM4MQ3-w>
.
|
Hi, do you have any roadmap on this function test ? Thank you |
@Spritetm I'd also be interested to know when this function might be elevated from "untested" to supported - it's a very useful function for periodic tasks. |
@DavidAntliff, it is now tested, see 637ba2e |
Hi,
I'm using v3.1rc2 (22da5f6) release `C:/msys32/home/Davide/esp/esp-idf/components/freertos/tasks.c:1343 (vTaskDelayUntil)- assert failed! Backtrace: 0x40096260:0x3ffdbfa0 0x40096403:0x3ffdbfc0 0x40092207:0x3ffdbfe0 0x400ed68d:0x3ffdc000 Entering gdb stub now. I have also got in another test a quite same assert fail for vTaskDelay function `C:/msys32/home/Davide/esp/esp-idf/components/freertos/tasks.c:1443 (vTaskDelay)- assert failed! Backtrace: 0x40096260:0x3ffe3460 0x40096403:0x3ffe3480 0x400922ad:0x3ffe34a0 0x400eec3f:0x3ffe34c0 Entering gdb stub now. How can I avoid this assert fail? Thanks |
I am also getting a crash with this function, basic coredump details pasted below. The unusual bit here is that it shows for the parameters in the last 2 function calls. The delay would normally be between 1-10 ticks (mSec in my case) Is this correct? `espcoredump.py v0.2-dev==================== ESP32 CORE DUMP START ==================== ================== CURRENT THREAD REGISTERS =================== ==================== CURRENT THREAD STACK ===================== ======================== THREADS INFO =========================
======================= ALL MEMORY REGIONS ======================== |
Is it possible you have some heap corruption issue or something? Because last few
Also address of |
xTicksToWait=4294967295 is portMAX_DELAY and valid, possibly not a problem there. Without knowing the specific tasks I cannot comment on the pvBuffer=0x0 since a number of macros call xQueueGenericReceive() |
Hi, During weekend I have 3 devices on test and all of them they blocked due to assertion failed on vTaskDelay (same task for all of them). Here is the gdb backtrace `C:/msys32/home/Davide/esp/esp-idf/components/freertos/tasks.c:1443 (vTaskDelay)- assert failed! Backtrace: 0x40096530:0x3ffdcf00 0x400966d3:0x3ffdcf20 0x400925fd:0x3ffdcf40 0x400ee57c:0x3ffdcf60 Entering gdb stub now. 0x40096530 in invoke_abort () I can't understand what is the root of the assertion failed. Should I enable coredump to give more details? I'm working on esp-idf v3.1 Thanks |
We're seeing the same assertion failure on 3.3:
Did this issue get closed with a resolution? |
Hi @stuarthatchbaby, could you help to paste the backtrace of this assert here, commands to get the backtrace: xtensa-esp32-elf-addr2line -piaf -e *.elf 0x4008eef7:0x3ffd4d30 0x4008f20d:0x3ffd4d50 0x400970f1:0x3ffd4d70 0x400f48f1:0x3ffd4d90 0x400f4914:0x3ffd4dd0 You can choose to paste the *elf here, then we can get the backtrace for analysis. |
I did so in #4230 |
When i try to use vTaskDelayUntil APIMethod it causes a panic abort during runtime, with the following debug output.
Untested FreeRTOS function vTaskDelayUntil
C:/msys32/home/esp-idf/components/freertos/tasks.c:1261 (vTaskDelayUntil)- assert failed!
abort() was called at PC 0x40082dba
Guru Meditation Error: Core 0 panic'ed (abort)
Backtrace: 0x40008155:0x3ffc9560 0x40007d16:0x3ffc9580 0x400f1f61:0x3ffc95a0
Rebooting...
What could be the reason, a bug in the method or something in the user application?
P.S. : #define INCLUDE_vTaskDelayUntil 1 , is in place in the RTOSconfiguration as per the freeRTOS documentation.
The text was updated successfully, but these errors were encountered: