diff --git a/cc3200/FreeRTOS/FreeRTOSConfig.h b/cc3200/FreeRTOS/FreeRTOSConfig.h index 2e9a514381374e25ab0c8c8937c4b28536e7ba25..27ba880f628f0a60d34b009487bcd7daed093d82 100644 --- a/cc3200/FreeRTOS/FreeRTOSConfig.h +++ b/cc3200/FreeRTOS/FreeRTOSConfig.h @@ -151,4 +151,7 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */ version. */ #define configUSE_PORT_OPTIMISED_TASK_SELECTION 1 +/* We provide a definition of ucHeap so it can go in a special segment. */ +#define configAPPLICATION_ALLOCATED_HEAP 1 + #endif /* FREERTOS_CONFIG_H */ diff --git a/cc3200/main.c b/cc3200/main.c index 78b4e3161c5589fc73dd9511537e1797232e8d85..4a6f6172bf790c0e02d13362143b7bfe1e82326d 100644 --- a/cc3200/main.c +++ b/cc3200/main.c @@ -56,6 +56,9 @@ OsiTaskHandle mpTaskHandle; #endif +// This is the FreeRTOS heap, defined here so we can put it in a special segment +uint8_t ucHeap[ configTOTAL_HEAP_SIZE ] __attribute__ ((section (".rtos_heap"))) __attribute__((aligned (8))); + /****************************************************************************** DEFINE PUBLIC FUNCTIONS ******************************************************************************/