Skip to content

Commit bdf8830

Browse files
committed
portentac33: enable log backend
c33: enable log backend
1 parent 3110e42 commit bdf8830

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.conf

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
1010
CONFIG_SERIAL=y
1111
CONFIG_UART_LINE_CTRL=y
1212
CONFIG_USBD_CDC_ACM_CLASS=y
13-
CONFIG_CDC_ACM_DTE_RATE_CALLBACK_SUPPORT=y
1413
CONFIG_USBD_CDC_ACM_LOG_LEVEL_ERR=y
1514
CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y
1615
CONFIG_USBD_LOG_LEVEL_ERR=y
@@ -24,12 +23,17 @@ CONFIG_ARM_MPU=n
2423
CONFIG_CPP=n
2524
CONFIG_SHELL=n
2625

26+
CONFIG_LOG_BACKEND_UART=y
27+
CONFIG_LOG_BACKEND_UART_AUTOSTART=n
28+
CONFIG_LOG_BUFFER_SIZE=1024
29+
CONFIG_LOG_DEFAULT_LEVEL=2
30+
2731
CONFIG_MAIN_STACK_SIZE=32768
2832
CONFIG_LLEXT_HEAP_SIZE=128
2933
CONFIG_HEAP_MEM_POOL_SIZE=32768
3034
CONFIG_ISR_STACK_SIZE=8192
31-
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=8192
32-
CONFIG_IDLE_STACK_SIZE=8192
35+
#CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=8192
36+
#CONFIG_IDLE_STACK_SIZE=8192
3337
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
3438

3539
CONFIG_ADC=y

variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.overlay

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
};
66
};
77

8+
/{
9+
chosen {
10+
zephyr,log-uart = &log_uarts;
11+
};
12+
13+
log_uarts: log_uarts {
14+
compatible = "zephyr,log-uart";
15+
uarts = <&uart9 &board_cdc_acm_uart>;
16+
};
17+
};
18+
819
&flash0 {
920
partitions {
1021
mcuboot: partition@0 {

0 commit comments

Comments
 (0)