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/4760/head
Rob Meades 2017-06-30 13:07:12 +01:00 committed by adbridge
parent b6a5448902
commit f7c516a177
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
}
}
}