raise dynamic ram pool size and sdLog ram cache size on STM32F7 (chimera)

This commit is contained in:
Alexandre Bustico
2017-03-09 08:51:20 +01:00
committed by Gautier Hattenberger
parent 3b82986c1f
commit 1ef3ca0547
3 changed files with 12 additions and 15 deletions
@@ -29,20 +29,17 @@
#define TLSF_MALLOC_ARCH_H #define TLSF_MALLOC_ARCH_H
#include <ch.h> #include <ch.h>
#include <hal.h> #include <hal.h>
#include "mcu_periph/ram_arch.h"
#if defined STM32F4XX
#define NODMA_SECTION ".ram4"
#define DMA_SECTION ".ram0"
#elif defined STM32F7XX
#define NODMA_SECTION ".ram0"
#define DMA_SECTION ".ram3"
#else
#error "section defined only for STM32F4 and STM32F7"
#endif
#define HEAP_CCM ccmHeap #define HEAP_CCM ccmHeap
// F7 has more than twice RAM than others families
#if defined STM32F7XX
#define HEAP_CCM_SIZE 65536
#else
#define HEAP_CCM_SIZE 16384 #define HEAP_CCM_SIZE 16384
#define HEAP_CCM_SECTION NODMA_SECTION #endif
#define HEAP_CCM_SECTION FAST_SECTION
#define HEAP_DEFAULT HEAP_CCM #define HEAP_DEFAULT HEAP_CCM
@@ -387,7 +387,7 @@
#define SDLOG_QUEUE_BUCKETS 1024 #define SDLOG_QUEUE_BUCKETS 1024
#define SDLOG_MAX_MESSAGE_LEN 300 #define SDLOG_MAX_MESSAGE_LEN 300
#define SDLOG_NUM_FILES 2 #define SDLOG_NUM_FILES 2
#define SDLOG_ALL_BUFFERS_SIZE (SDLOG_NUM_FILES*8192) #define SDLOG_ALL_BUFFERS_SIZE (SDLOG_NUM_FILES*8*1024)
@@ -456,9 +456,9 @@
sdlog message buffer and queue configuration sdlog message buffer and queue configuration
*/ */
#define SDLOG_QUEUE_BUCKETS 1024 #define SDLOG_QUEUE_BUCKETS 1024
#define SDLOG_MAX_MESSAGE_LEN 252 #define SDLOG_MAX_MESSAGE_LEN 300
#define SDLOG_NUM_FILES 1 #define SDLOG_NUM_FILES 2
#define SDLOG_ALL_BUFFERS_SIZE (SDLOG_NUM_FILES*4096*2) #define SDLOG_ALL_BUFFERS_SIZE (SDLOG_NUM_FILES*16*1024)
/* /*
* WDG driver system settings. * WDG driver system settings.