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] [November 2014 Threads]
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
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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.