Skip to content

Commit be8b5d8

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

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_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 GIGA R1"
33
CONFIG_USB_DEVICE_MANUFACTURER="Arduino"
44
CONFIG_USB_DEVICE_VID=0x2341
55
CONFIG_USB_DEVICE_PID=0x0066
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

@@ -23,6 +24,10 @@ CONFIG_LLEXT_HEAP_REGION="SRAM2"
2324
CONFIG_CPP=n
2425
CONFIG_SHELL=n
2526

27+
CONFIG_LOG_BACKEND_UART=y
28+
CONFIG_LOG_BACKEND_UART_AUTOSTART=n
29+
CONFIG_LOG_DEFAULT_LEVEL=2
30+
2631
CONFIG_FPU=y
2732
CONFIG_ADC=y
2833
CONFIG_DAC=y

variants/arduino_giga_r1_stm32h747xx_m7/arduino_giga_r1_stm32h747xx_m7.overlay

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,15 @@
320320
/{
321321
chosen {
322322
zephyr,camera = &dcmi;
323+
zephyr,log-uart = &log_uarts;
323324
/* zephyr,console = &board_cdc_acm_uart; */
324325
};
325326

327+
log_uarts: log_uarts {
328+
compatible = "zephyr,log-uart";
329+
uarts = <&usart1 &board_cdc_acm_uart>;
330+
};
331+
326332
/* used to overcome problems with _C analog pins */
327333
gpioz: gpio@deadbeef {
328334
compatible = "vnd,gpio";

0 commit comments

Comments
 (0)