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.
pull/4677/head
Rob Meades 2017-06-30 13:07:12 +01:00
parent 9b082fff55
commit 921d1fa6fa
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@
// Thread stack size for private PPP thread
#ifndef MBED_CONF_LWIP_PPP_THREAD_STACKSIZE
#define MBED_CONF_LWIP_PPP_THREAD_STACKSIZE 512
#define MBED_CONF_LWIP_PPP_THREAD_STACKSIZE 768
#endif
#if LWIP_DEBUG

View File

@ -68,7 +68,7 @@
},
"ppp-thread-stacksize": {
"help": "Thread stack size for PPP",
"value": 512
"value": 768
}
}
}