Skip to content

Commit 921d1fa

Browse files
committed
Increase PPP stack size from 512 bytes to 768 bytes.
PPP is running close to the edge of its default thread stack size of 512 bytes. When it experiences an FCS error on the incoming data (for example. caused by character loss when the incoming serial rate is too high for it to process in time) it performs some additional work which overruns the thread's stack, hitting the OS "stack underflow" check. Increasing the PPP stack size to 768 bytes resolves this problem.
1 parent 9b082ff commit 921d1fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/FEATURE_LWIP/lwip-interface/lwipopts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108

109109
// Thread stack size for private PPP thread
110110
#ifndef MBED_CONF_LWIP_PPP_THREAD_STACKSIZE
111-
#define MBED_CONF_LWIP_PPP_THREAD_STACKSIZE 512
111+
#define MBED_CONF_LWIP_PPP_THREAD_STACKSIZE 768
112112
#endif
113113

114114
#if LWIP_DEBUG

features/FEATURE_LWIP/lwip-interface/mbed_lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
},
6969
"ppp-thread-stacksize": {
7070
"help": "Thread stack size for PPP",
71-
"value": 512
71+
"value": 768
7272
}
7373
}
7474
}

0 commit comments

Comments
 (0)