Skip to content

Commit 1fbd402

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

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

variants/arduino_portenta_c33_r7fa6m5bh3cfc/arduino_portenta_c33_r7fa6m5bh3cfc.conf

Lines changed: 6 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,16 @@ 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_DEFAULT_LEVEL=2
29+
2730
CONFIG_MAIN_STACK_SIZE=32768
2831
CONFIG_LLEXT_HEAP_SIZE=128
2932
CONFIG_HEAP_MEM_POOL_SIZE=32768
3033
CONFIG_ISR_STACK_SIZE=8192
31-
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=8192
32-
CONFIG_IDLE_STACK_SIZE=8192
34+
#CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=8192
35+
#CONFIG_IDLE_STACK_SIZE=8192
3336
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
3437

3538
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)