Skip to content

Commit 58cdfed

Browse files
committed
samples: zephyr: subsys: usb: cdc_acm: Switch to nrf54lm20dk
Switch sample from nrf54lm20pdk to nrf54lm20dk. Update sample configuration to match the original one. Keep execution of this sample on 54H20 and 54LM20 as this version checks more logs (these additional logs are printed only with host computer connected). Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 734f2ae commit 58cdfed

File tree

5 files changed

+35
-44
lines changed

5 files changed

+35
-44
lines changed

samples/zephyr/subsys/usb/cdc_acm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
cmake_minimum_required(VERSION 3.20.0)
88

99
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
10-
project(mass)
10+
project(cdc_acm)
1111

1212
include(${ZEPHYR_BASE}/samples/subsys/usb/common/common.cmake)
1313
FILE(GLOB app_sources ${ZEPHYR_BASE}/samples/subsys/usb/cdc_acm/src/*.c)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
&zephyr_udc0 {
22
cdc_acm_uart0 {
33
compatible = "zephyr,cdc-acm-uart";
4+
label = "Zephyr USB CDC-ACM";
45
};
56
};
Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
CONFIG_USB_DEVICE_STACK_NEXT=y
2+
13
CONFIG_STDOUT_CONSOLE=y
2-
CONFIG_USB_DEVICE_STACK=y
3-
CONFIG_USB_DEVICE_PRODUCT="Zephyr CDC ACM sample"
4-
CONFIG_USB_DEVICE_PID=0x0001
5-
CONFIG_LOG=y
6-
CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y
7-
CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y
84
CONFIG_SERIAL=y
9-
CONFIG_UART_INTERRUPT_DRIVEN=y
105
CONFIG_UART_LINE_CTRL=y
11-
CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
6+
CONFIG_USBD_CDC_ACM_CLASS=y
7+
8+
CONFIG_LOG=y
9+
CONFIG_USBD_LOG_LEVEL_ERR=y
10+
CONFIG_UDC_DRIVER_LOG_LEVEL_ERR=y
11+
CONFIG_USBD_CDC_ACM_LOG_LEVEL_ERR=y
12+
13+
CONFIG_SAMPLE_USBD_PID=0x0001
14+
CONFIG_SAMPLE_USBD_PRODUCT="USBD CDC ACM sample"
Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
sample:
22
name: CDC ACM USB
3+
common:
4+
tags:
5+
- usb
6+
- ci_samples_zephyr_subsys_usb
7+
platform_allow:
8+
- nrf54h20dk/nrf54h20/cpuapp
9+
- nrf54lm20dk/nrf54lm20a/cpuapp
10+
integration_platforms:
11+
- nrf54h20dk/nrf54h20/cpuapp
12+
- nrf54lm20dk/nrf54lm20a/cpuapp
13+
harness: console
14+
harness_config:
15+
type: multi_line
16+
regex:
17+
- "Wait for DTR"
18+
- "cdc_acm_echo: USBD message: New device configuration"
19+
- "cdc_acm_echo: USBD message: CDC ACM line coding"
20+
- "cdc_acm_echo: Baudrate"
321
tests:
4-
nrf.extended.sample.usb_device_next.cdc-acm:
5-
tags:
6-
- usb
7-
- ci_samples_zephyr_subsys_usb
8-
extra_args: CONF_FILE="usbd_next_prj.conf"
9-
platform_allow:
10-
- nrf54lm20pdk/nrf54lm20a/cpuapp
11-
- [email protected]/nrf54lm20a/cpuapp
12-
- [email protected]/nrf54lm20a/cpuapp
13-
- nrf54h20dk/nrf54h20/cpuapp
14-
integration_platforms:
15-
- nrf54lm20pdk/nrf54lm20a/cpuapp
16-
- nrf54h20dk/nrf54h20/cpuapp
17-
harness: console
18-
harness_config:
19-
type: one_line
20-
regex:
21-
- "Wait for DTR"
22-
- "cdc_acm_echo: USBD message: CDC ACM control line state"
23-
- "cdc_acm_echo: USBD message: CDC ACM line coding"
24-
- "cdc_acm_echo: Baudrate 115200"
22+
nrf.extended.sample.usb_device_next.cdc-acm: {}
23+
nrf.extended.sample.usb_device_next.cdc-acm-workqueue:
24+
extra_args:
25+
- DCONFIG_USBD_CDC_ACM_WORKQUEUE=y

samples/zephyr/subsys/usb/cdc_acm/usbd_next_prj.conf

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)