Skip to content

Commit e885dc6

Browse files
committed
portentah7: add log uart
uart will be used by loader for logging when SHELL is not enabled
1 parent be8b5d8 commit e885dc6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.conf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ CONFIG_USB_DEVICE_PRODUCT="Arduino Portenta H7"
33
CONFIG_USB_DEVICE_MANUFACTURER="Arduino"
44
CONFIG_USB_DEVICE_VID=0x2341
55
CONFIG_USB_DEVICE_PID=0x005b
6+
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
67

78
CONFIG_USB_CDC_ACM=y
8-
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=512
9+
CONFIG_USB_CDC_ACM_RINGBUF_SIZE=1024
910
CONFIG_UART_LINE_CTRL=y
1011
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
1112

@@ -17,6 +18,10 @@ CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=-1
1718
CONFIG_CPP=n
1819
CONFIG_SHELL=n
1920

21+
CONFIG_LOG_BACKEND_UART=y
22+
CONFIG_LOG_BACKEND_UART_AUTOSTART=n
23+
CONFIG_LOG_DEFAULT_LEVEL=2
24+
2025
CONFIG_FPU=y
2126
CONFIG_ICACHE=y
2227
CONFIG_DCACHE=y

variants/arduino_portenta_h7_stm32h747xx_m7/arduino_portenta_h7_stm32h747xx_m7.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,12 @@
248248
zephyr,console = &usart6;
249249
zephyr,shell-uart = &usart6;
250250
zephyr,cdc-acm-uart0 = &usart6;
251+
zephyr,log-uart = &log_uarts;
252+
};
253+
254+
log_uarts: log_uarts {
255+
compatible = "zephyr,log-uart";
256+
uarts = <&usart6 &board_cdc_acm_uart>;
251257
};
252258

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

0 commit comments

Comments
 (0)