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] [July 2017 Threads]
I ported FreeRTOS in TI MSP430FR5969 board.
The memory composition of this board are both SRAM and FRAM.
The adress space is like below.
SRAM origin : 0x1C00, length = 0x0800
FRAM : origin = 0x4400, length = 0xBB80
FRAM2 : origin = 0x10000,length = 0x4000
I would like to allocate heap to these memory location.
For example, When I create 4 tasks, I would like to allocate 2 of task stack to SRAM and the others to FRAM.
So my questions are,
Is it right that I can use heap_5.c to allocate heap to non-contagious memory region?
when I initialize heap regions to use heap_5.c, is it also right that I can write the code like below?
const HeapRegiont xHeapRegions[] =
{
{ ( uint8t * ) 0x1C00, 0x0400 }, // to use SRAM
{ ( uint8_t * ) 0x4400, 0x0400 }, // to use FRAM
{ NULL, 0 } /* Terminates the array. */
};
/* Pass the array into vPortDefineHeapRegions(). */
vPortDefineHeapRegions( xHeapRegions );
Should configAPPLICATIONALLOCATEDHEAP to be defined 1 to use heap_5.c ?
If I use heap_5.c, Do I still need the code in main.c?
#ifdef ICC430
persistent /* IAR version. */
#else
#pragma PERSISTENT( ucHeap ) /* CCS version. */
#endif
uint8t ucHeap[ configTOTALHEAP_SIZE ] = { 0 };
1.
2.
The answers to these questions are here:
http://www.freertos.org/a00111.html#heap_5
3.
Should configAPPLICATION_ALLOCATED_HEAP to be defined 1 to use
heap_5.c ?
No.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.