-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB_UART_DTR_WAIT not working on nrf52840_pca10059 #16518
Comments
@iod can you please post which sample you are using, and how you are flashing the sample? |
src/main.c #include <stdio.h>
void main(void)
{
printf("hello usb\n");
} prj.conf CONFIG_UART_CONSOLE=y
CONFIG_UART_CONSOLE_ON_DEV_NAME="CDC_ACM_0"
CONFIG_UART_LINE_CTRL=y
CONFIG_USB=y
CONFIG_USB_UART_CONSOLE=y
CONFIG_USB_UART_DTR_WAIT=y # <- not in samples version, that seems to cause the issue flashed: with nrfutil dfu usb-serial to nrf52840_pca10059 expected: to be able to connect to device which prints hello usb actual: ttyACM device no longer shows up after flash |
I tested |
@iod for completeness, can you please test |
Have tested |
I tested |
I have narrowed it down to CONFIG_USB_UART_DTR_WAIT=y that seems to be not working. |
@finikorg any idea why this particular configuration would have stopped working? |
I can only confirm that the problem seems to be the option |
The problem is the init prio (level is APPLICATION anywhere): CDC ACM class: KERNEL_INIT_PRIORITY_DEVICE 50
Workaround: set UART_CONSOLE_INIT_PRIORITY to 91 |
@jfischer-phytec-iot I wanted to confirm that the workaround: CONFIG_UART_CONSOLE_INIT_PRIORITY=91 fixes the issue the issue for me, thank you. |
@jfischer-phytec-iot should we add that line to the sample? |
I am thinking about following:
That default value is only assigned if we put |
It does make sense to initialize USB console after USB Device stack. Note that the value is selected only if we specify USB_UART_CONSOLE in prj.conf, not in menuconfig afterwards. Fixes zephyrproject-rtos#16518 Signed-off-by: Andrei Emeltchenko <[email protected]>
It does make sense to initialize USB console after USB Device stack. Note that the value is selected only if we specify USB_UART_CONSOLE in prj.conf, not in menuconfig afterwards. Fixes #16518 Signed-off-by: Andrei Emeltchenko <[email protected]>
USB_UART_DTR_WAIT no longer working on nrf52840_pca10059 after commit 3880a42
The text was updated successfully, but these errors were encountered: