FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [October 2015 Threads] configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by yukunduan on October 22, 2015 Why my project stop in this assert:configASSERT( pxLink->pxNextFreeBlock == NULL );
It,s in vPortFree.
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by yukunduan on October 22, 2015 This is the debug massage:
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by yukunduan on October 22, 2015
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by rtel on October 22, 2015 ...because the block being freed was either not first allocated by pvPortMalloc(), or was allocated by pvPortMalloc() but has since been corrupted, or was allocated by pvPortMalloc() but has already been freed.
In all cases - it means the block you are trying to free is not valid.
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by yukunduan on October 22, 2015 The photo is much to big.Please look it in the new title bar or save in the local.
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by heinbali01 on October 22, 2015
the block you are trying to free is not valid
It may be helpful to look at the call-stack when the ASSERT is entered. Look at what place you're freeing a memory block. Check if you have freed it already.
Or maybe you're freeing an uninitialised pointer?
If not, things are a bit more complex. You will have to see if there is code writing outside a given space. Especially code that write in the heap space is suspect. Check all parameters of memset() and memcpy().
Regards.
configASSERT( pxLink->pxNextFreeBlock == NULL );Posted by yukunduan on October 23, 2015 Oh,maybe the problem is I delete some tasks doubly.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|