Quality RTOS & Embedded Software

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


Loading

FreeRTOS+Trace Error

Posted by sindhukrishna on November 8, 2014

I use Hercules Launchpad TMS570LS0432 kit and FreeRTOS v8.1.2, and I use Halcogen for code generation. I tried inserting code for Trace Options available with Tracealyzer from Percepio(FreeRTOS+Trace). After adding the necessary header and source file provided by percepio into the project, code build results in error

error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".kernelHEAP" size 0x2800 . Available memory ranges: RAM size: 0x6300 unused: 0x1a50 max hole: 0x1a50

The software uses on chip RAM for recording the Trace. Kindly suggest a solution to get rid of this error


FreeRTOS+Trace Error

Posted by rtel on November 8, 2014

So you have to save some RAM from somewhere.

Are you using heap1, heap2, heap3, heap4 or heap5.c in the project? (http://www.freertos.org/a00111.html). If you are using heap3.c then configTOTALHEAPSIZE won't make any difference. If you are using any of the others then you can tune configTOTALHEAPSIZE so it does not use any more RAM than necessary. Call xPortGetFreeHeapSize() after all the tasks, queues, semaphores, etc. have been allocated to see how much space is left, and reduce configTOTALHEAPSIZE accordingly. Also if you are using anything other than heap_3.c you can set the size of the heap used by the C library to 0 as it is not used by FreeRTOS at all (unless of course it is being used by any of the HalCoGen generated code).

You can also look in the trace configuration file to reduce the size of the buffer used to hold the trace recorder data - there is a #define that sets the buffer size - the header file is well documented so you will find it easy enough (near the top of the config file).

Regards.


[ 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