From 242501cd60911cf8bfd185ef02e71f57ddc51cf7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 4 Feb 2016 16:39:34 +0200 Subject: [PATCH] drivers/nble: Increase rx stack size Since application callbacks happen from the rx thread we cannot have the stack as small as just 256 bytes. Make it 2kB for now, but later this needs to be adjusted to some reasonable minimum with the help of the stack analysis code, and then probably accompanied by a Kconfig option for apps to increase if if needed. Change-Id: Ie8e2ac41701101b874378ded1435a6fb06bae497 Signed-off-by: Johan Hedberg --- drivers/nble/uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nble/uart.c b/drivers/nble/uart.c index b07d0a889dc..539cdc448a4 100644 --- a/drivers/nble/uart.c +++ b/drivers/nble/uart.c @@ -41,7 +41,7 @@ static NET_BUF_POOL(rx_pool, NBLE_IPC_COUNT, NBLE_BUF_SIZE, &rx, NULL, 0); static struct nano_fifo tx; static NET_BUF_POOL(tx_pool, NBLE_IPC_COUNT, NBLE_BUF_SIZE, &tx, NULL, 0); -static BT_STACK_NOINIT(rx_fiber_stack, 256); +static BT_STACK_NOINIT(rx_fiber_stack, 2048); static struct device *nble_dev;