Skip to content

Commit 901bf11

Browse files
committed
Bluetooth: Controller: Enable OUTPUT_DISASSEMBLY_WITH_SOURCE with LTO
Enable OUTPUT_DISASSEMBLY_WITH_SOURCE when using LTO to help find the assertion check in the source code corresponding to the faulting instruction address. arm-none-eabi-addr2line tool is not able to resolve the source file and line number when using LTO. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent e25b8f4 commit 901bf11

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

samples/bluetooth/hci_ipc/nrf5340_cpunet_iso-bt_ll_sw_split.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=512
88
CONFIG_HEAP_MEM_POOL_SIZE=4096
99
CONFIG_CBPRINTF_REDUCED_INTEGRAL=y
1010

11+
# Use link time optimization for code size reduction
1112
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
1213
CONFIG_LTO=y
1314

15+
# Generate .lst file, to find HCI h/w error event given PC
16+
CONFIG_OUTPUT_DISASSEMBLY=y
17+
CONFIG_OUTPUT_DISASSEMBLY_WITH_SOURCE=y
18+
1419
CONFIG_BT=y
1520
CONFIG_BT_HCI_RAW=y
1621

samples/bluetooth/hci_uart/overlay-all-bt_ll_sw_split.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# Use link time optimization for code size reduction
2+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
3+
CONFIG_LTO=y
4+
5+
# Generate .lst file, to find HCI h/w error event given PC
6+
CONFIG_OUTPUT_DISASSEMBLY=y
7+
CONFIG_OUTPUT_DISASSEMBLY_WITH_SOURCE=y
8+
19
CONFIG_BT=y
210
CONFIG_BT_HCI_RAW=y
311

samples/bluetooth/observer/overlay_bbc_microbit-bt_ll_sw_split.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ CONFIG_BT_CTLR_LOW_LAT_ULL=y
4848
# Use unreserved timespace scanning
4949
CONFIG_BT_CTLR_SCAN_UNRESERVED=y
5050

51-
# Code size reduction
51+
# Use link time optimization for code size reduction
5252
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
5353
CONFIG_LTO=y
54+
55+
# Generate .lst file, to find HCI h/w error event given PC
56+
CONFIG_OUTPUT_DISASSEMBLY=y
57+
CONFIG_OUTPUT_DISASSEMBLY_WITH_SOURCE=y
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Zephyr open source Bluetooth Low Energy Controller
22
CONFIG_BT_LL_SW_SPLIT=y
33

4-
# Optimizations
5-
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
6-
CONFIG_LTO=y
7-
84
# Disable Bluetooth controller features not needed
95
CONFIG_BT_CTLR_CONN_PARAM_REQ=n
106
CONFIG_BT_CTLR_EXT_REJ_IND=n
@@ -13,3 +9,11 @@ CONFIG_BT_CTLR_MIN_USED_CHAN=n
139

1410
# Buffer sizes
1511
CONFIG_BT_CTLR_RX_BUFFERS=1
12+
13+
# Use link time optimization for code size reduction
14+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
15+
CONFIG_LTO=y
16+
17+
# Generate .lst file, to find HCI h/w error event given PC
18+
CONFIG_OUTPUT_DISASSEMBLY=y
19+
CONFIG_OUTPUT_DISASSEMBLY_WITH_SOURCE=y

0 commit comments

Comments
 (0)