Skip to content

Commit 708fde4

Browse files
committed
nano33ble: add log uart
uart will be used by loader for logging when SHELL is not enabled
1 parent 166f00d commit 708fde4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@ CONFIG_USB_DEVICE_VID=0x2341
1919
CONFIG_USB_DEVICE_PID=0x035A
2020

2121
CONFIG_USB_CDC_ACM=y
22-
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=512
22+
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
2323
CONFIG_UART_LINE_CTRL=y
2424
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
2525

2626
CONFIG_CPP=n
2727
CONFIG_SHELL=n
2828

29+
CONFIG_LOG_BACKEND_UART=y
30+
CONFIG_LOG_BACKEND_UART_AUTOSTART=n
31+
CONFIG_LOG_DEFAULT_LEVEL=2
32+
2933
CONFIG_ADC=y
3034
CONFIG_PWM=y
3135

variants/arduino_nano_33_ble_nrf52840_sense/arduino_nano_33_ble_nrf52840_sense.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@
4242
};
4343
};
4444

45+
/{
46+
chosen {
47+
zephyr,log-uart = &log_uarts;
48+
};
49+
50+
log_uarts: log_uarts {
51+
compatible = "zephyr,log-uart";
52+
uarts = <&uart0 &board_cdc_acm_uart>;
53+
};
54+
};
55+
4556

4657
/ {
4758
zephyr,user {

0 commit comments

Comments
 (0)