Skip to content

Commit fdc397d

Browse files
committed
opta: add log uart
uart will be used by loader for logging when SHELL is not enabled
1 parent dacc129 commit fdc397d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ CONFIG_USB_DEVICE_VID=0x2341
55
CONFIG_USB_DEVICE_PID=0x0064
66

77
CONFIG_USB_CDC_ACM=y
8-
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=512
8+
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
99
CONFIG_UART_LINE_CTRL=y
1010
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
1111

@@ -23,6 +23,10 @@ CONFIG_LLEXT_HEAP_REGION="SRAM2"
2323
CONFIG_CPP=n
2424
CONFIG_SHELL=n
2525

26+
CONFIG_LOG_BACKEND_UART=y
27+
CONFIG_LOG_BACKEND_UART_AUTOSTART=n
28+
CONFIG_LOG_DEFAULT_LEVEL=2
29+
2630
CONFIG_FPU=y
2731
CONFIG_ADC=y
2832
CONFIG_DAC=n

variants/arduino_opta_stm32h747xx_m7/arduino_opta_stm32h747xx_m7.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
zephyr,console = &usart6;
4141
zephyr,shell-uart = &usart6;
4242
zephyr,uart-mcumgr = &usart6;
43+
zephyr,log-uart = &log_uarts;
44+
};
45+
46+
log_uarts: log_uarts {
47+
compatible = "zephyr,log-uart";
48+
uarts = <&usart6 &board_cdc_acm_uart>;
4349
};
4450

4551
/* used to overcome problems with _C analog pins */

0 commit comments

Comments
 (0)