WGR7
(WGR7)
January 29, 2024, 11:49pm
1
Hi,
I’m having a issue when trying using FreeRTOS. These messeges are ariving and freezing the system. What’s wrong? What could causing this issue?
Regards.
file [MyFolder/freertos/tasks.c]
func [vTaskSwitchContext]
line [3137]
listCURRENT_LIST_LENGTH(&(pxReadyTasksLists[uxTopPriority])) > 0
vAssertCalled
rtel
(Richard Barry)
January 30, 2024, 12:11am
2
Where are these messages displaying?
Which chip and compiler are you using?
Is this happening in a demo project provided by us, or a project you created yourself?
Please provide a github link to the line in tasks.c that is causing the issue as you don’t mention which FreeRTOS version you are using. This is an example of how to link to line 3137 in version 10.6.2 https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/V10.6.2/tasks.c#L3137
@WGR7 Usually this type of assertion happens when memory corruption occurs in a task control block. I would recommend the following:
Examine the stack size of each of your tasks and increase the stack size of tasks which may require more stack space.
Temporarily disable portions of your code to determine which portion of your code is corrupting the heap or stack.
Use a tracing tool to determine which portions of your application run prior to the assertion.
WGR7
(WGR7)
January 31, 2024, 12:18pm
4
Hi,
I discovered the issue’s cause. I was calling a queuee operation before create the queuee.
TKs.
aggarg
(Gaurav Aggarwal)
February 1, 2024, 6:01am
5
Thank you for reporting back!