Skip to content

Commit 29433d3

Browse files
committed
[gen4] network: increase rtlkncp thread stack size
1 parent 8ec558e commit 29433d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hal/network/lwip/realtek/rtlncpnetif.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ RealtekNcpNetif::~RealtekNcpNetif() {
7777
void RealtekNcpNetif::init() {
7878
registerHandlers();
7979
SPARK_ASSERT(lwip_memp_event_handler_add(mempEventHandler, MEMP_PBUF_POOL, this) == 0);
80-
SPARK_ASSERT(os_thread_create(&thread_, "rltkncp", OS_THREAD_PRIORITY_NETWORK, &RealtekNcpNetif::loop, this, OS_THREAD_STACK_SIZE_DEFAULT_HIGH) == 0);
80+
// XXX: stack size. some rtl SDK calls appear to be stack hungry
81+
SPARK_ASSERT(os_thread_create(&thread_, "rltkncp", OS_THREAD_PRIORITY_NETWORK, &RealtekNcpNetif::loop, this, OS_THREAD_STACK_SIZE_DEFAULT_HIGH * 2) == 0);
8182
}
8283

8384
void RealtekNcpNetif::setWifiManager(particle::WifiNetworkManager* wifiMan) {

0 commit comments

Comments
 (0)