From 634d3b46a95ff3e4b82ab27dbc94498c8ad95203 Mon Sep 17 00:00:00 2001 From: Carles Cufi Date: Thu, 22 Jun 2017 11:54:48 +0200 Subject: [PATCH] Bluetooth: Set hci_uart RAM config to fit privacy With the introduction of privacy, the system workqueue is now being linked into the image, growing the RAM footprint considerably. In order for the sample to fit in QFAA and QFAB variants of the nRF51 (16KB of RAM) we reduce the workqueue stack size to 512 since the RPA update mechanism doesn't use more than 340 bytes and we stick to 16 connections maximum. Signed-off-by: Carles Cufi --- samples/bluetooth/hci_uart/nrf5.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/bluetooth/hci_uart/nrf5.conf b/samples/bluetooth/hci_uart/nrf5.conf index 9f7325cc41f..14389ab45d2 100644 --- a/samples/bluetooth/hci_uart/nrf5.conf +++ b/samples/bluetooth/hci_uart/nrf5.conf @@ -7,8 +7,9 @@ CONFIG_UART_INTERRUPT_DRIVEN=y CONFIG_UART_NRF5_BAUD_RATE=1000000 CONFIG_UART_NRF5_FLOW_CONTROL=y CONFIG_MAIN_STACK_SIZE=512 +CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512 CONFIG_BLUETOOTH=y CONFIG_BLUETOOTH_HCI_RAW=y -CONFIG_BLUETOOTH_MAX_CONN=20 +CONFIG_BLUETOOTH_MAX_CONN=16 CONFIG_BLUETOOTH_CONTROLLER_ASSERT_HANDLER=y CONFIG_BLUETOOTH_TINYCRYPT_ECC=n