File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
connectivity/nanostack/mbed-mesh-api Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 241241 "target_overrides" : {
242242 "KW41Z" : {
243243 "mbed-mesh-api.heap-size" : 14000
244+ },
245+ "LPC1768" : {
246+ "mbed-mesh-api.heap-size" : 16383
244247 }
245248 }
246249}
Original file line number Diff line number Diff line change 3232#include "ns_trace.h"
3333#define TRACE_GROUP "m6-mesh-system"
3434
35+ /* For LPC boards define the heap memory bank ourselves to give us section placement
36+ control */
37+ #ifndef ETHMEM_SECTION
38+ # if defined(TARGET_LPC1768 )
39+ # define ETHMEM_SECTION __attribute__((section("AHBSRAM0"),aligned))
40+ # else
41+ # define ETHMEM_SECTION
42+ # endif
43+ #endif
44+
3545/* Heap for NanoStack */
3646#if !MBED_CONF_MBED_MESH_API_USE_MALLOC_FOR_HEAP
37- static uint8_t app_stack_heap [MBED_CONF_MBED_MESH_API_HEAP_SIZE + 1 ];
47+ ETHMEM_SECTION uint8_t app_stack_heap [MBED_CONF_MBED_MESH_API_HEAP_SIZE + 1 ];
3848#else
3949static uint8_t * app_stack_heap ;
4050#endif
You can’t perform that action at this time.
0 commit comments