Skip to content

Commit 1cfddb7

Browse files
committed
Fix stack size for LwIP on EFM32GG11
Typo in the config file made the LwIP stack way too small on EFM32GG11 STK3701 target. Additionally, the EMAC thread stack was slightly too small when debug printing is on.
1 parent f15dbf2 commit 1cfddb7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

features/lwipstack/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"LPC546XX": {
126126
"mem-size": 36496
127127
},
128-
"EFM32GG11-STK3701": {
128+
"EFM32GG11_STK3701": {
129129
"mem-size": 36560
130130
},
131131
"RZ_A1_EMAC": {

features/netsocket/emac-drivers/TARGET_Silicon_Labs/sl_emac_config.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
/** Timeout in milliseconds for polling the PHY link status */
3535
#define SL_ETH_LINK_POLL_PERIOD_MS (500)
3636
/** Default Ethernet worker thread stack size in bytes */
37+
#include "mbed_trace.h"
38+
#if MBED_CONF_MBED_TRACE_ENABLE == 1
39+
#define SL_ETH_THREAD_STACKSIZE (768)
40+
#else
3741
#define SL_ETH_THREAD_STACKSIZE (512)
42+
#endif
3843
/** Default Ethernet worker thread stack priority */
3944
#define SL_ETH_THREAD_PRIORITY (osPriorityHigh)
4045
/** Name of interface */

0 commit comments

Comments
 (0)