use core coupled memory for the FreeRTOS heap

This commit is contained in:
Samuel Sadok
2018-03-12 17:23:55 -07:00
parent 61414bb9bb
commit 21c25c86fe
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -102,7 +102,8 @@
#define configTICK_RATE_HZ ((TickType_t)1000)
#define configMAX_PRIORITIES ( 7 )
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
#define configTOTAL_HEAP_SIZE ((size_t)15360)
#define configTOTAL_HEAP_SIZE ((size_t)65536) // FreeRTOS heap takes up the entire 64kB core-coupled memory
#define configAPPLICATION_ALLOCATED_HEAP 1
#define configMAX_TASK_NAME_LEN ( 16 )
#define configUSE_16_BIT_TICKS 0
#define configUSE_MUTEXES 1
+4
View File
@@ -70,6 +70,10 @@ osSemaphoreId sem_usb_irq;
osThreadId thread_motor_0;
osThreadId thread_motor_1;
osThreadId thread_cmd_parse;
// Place FreeRTOS heap in core coupled memory for better performance
__attribute__((section(".ccmram")))
uint8_t ucHeap[configTOTAL_HEAP_SIZE];
/* USER CODE END Variables */
/* Function prototypes -------------------------------------------------------*/