Quality RTOS & Embedded Software

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


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

Xilinx Microblaze and Zynq partner