Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT




Loading

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.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS