CDC ACM UART missing dependency

Hi there. I am trying to run USB UART on microcontroller nRF52840 (own board design). I am using Console over CDC ACM UART Sample. After build I am getting this error:

"CONFIG_UART_CONSOLE was assigned the value y, but got the value n. Missing dependencies: SERIAL_HAS_DRIVER",

I cant see any COM port after flashing the program, I think the reason is for whatever reason the CONFIG_UART_CONSOLE is disabled. I was trying to look what dependency it is, here is the link: https://docs.zephyrproject.org/1.14.1/reference/kconfig/CONFIG_SERIAL_HAS_DRIVER.html. I am not sure about the description of dependency, does it mean that nRF52840 doesn't have a driver to run CDC ACM UART or is there some wrong configuration. I was also defining .board file to work with CDC ACM UART. I have used the same exampe with nRF52840 dongle and it works well, no missing dependency. I was trying to use the same configuration for my custom board as I did for dongle.

Thanks for answers.

Parents
  • I was also trying using the nrf52840dk_nrf52840 board file as my build board. I didnt get the problem above but after flashing the board with CDC ACM UART Sample I am getting problems with USB recognition, the problem is:

    A request for the USB device descriptor failed. (Code 43)

    These are outputs from USB Device Events:

    Device USB\VID_0000&PID_0002\5&13260716&0&2 had a problem starting.
    
    Driver Name: usb.inf
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Service: 
    Lower Filters: 
    Upper Filters: 
    Problem: 0x2B
    Problem Status: 0x0

    Device USB\VID_0000&PID_0002\5&13260716&0&2 was configured.
    
    Driver Name: usb.inf
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Driver Date: 06/21/2006
    Driver Version: 10.0.18362.1110
    Driver Provider: Microsoft
    Driver Section: BADDEVICE.Dev.NT
    Driver Rank: 0xFF0000
    Matching Device Id: USB\DEVICE_DESCRIPTOR_FAILURE
    Outranked Drivers: usb.inf:USB\DEVICE_DESCRIPTOR_FAILURE:00FF2000
    Device Updated: false
    Parent Device: USB\ROOT_HUB30\4&e9dd3d8&0&0

    Device USB\VID_0000&PID_0002\5&13260716&0&2 was not migrated due to partial or ambiguous match.
    
    Last Device Instance Id: USB\VID_0951&PID_1607\5&13260716&0&2
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Location Path: ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS02)
    Migration Rank: 0xF000FFFFFFFF0022
    Present: false
    Status: 0xC0000719

    I also cant see any COM port. Is it possible that there is some problem with hardware? Mybe bad USB-C connector or something.... Thanks for answers.

Reply
  • I was also trying using the nrf52840dk_nrf52840 board file as my build board. I didnt get the problem above but after flashing the board with CDC ACM UART Sample I am getting problems with USB recognition, the problem is:

    A request for the USB device descriptor failed. (Code 43)

    These are outputs from USB Device Events:

    Device USB\VID_0000&PID_0002\5&13260716&0&2 had a problem starting.
    
    Driver Name: usb.inf
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Service: 
    Lower Filters: 
    Upper Filters: 
    Problem: 0x2B
    Problem Status: 0x0

    Device USB\VID_0000&PID_0002\5&13260716&0&2 was configured.
    
    Driver Name: usb.inf
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Driver Date: 06/21/2006
    Driver Version: 10.0.18362.1110
    Driver Provider: Microsoft
    Driver Section: BADDEVICE.Dev.NT
    Driver Rank: 0xFF0000
    Matching Device Id: USB\DEVICE_DESCRIPTOR_FAILURE
    Outranked Drivers: usb.inf:USB\DEVICE_DESCRIPTOR_FAILURE:00FF2000
    Device Updated: false
    Parent Device: USB\ROOT_HUB30\4&e9dd3d8&0&0

    Device USB\VID_0000&PID_0002\5&13260716&0&2 was not migrated due to partial or ambiguous match.
    
    Last Device Instance Id: USB\VID_0951&PID_1607\5&13260716&0&2
    Class Guid: {36fc9e60-c465-11cf-8056-444553540000}
    Location Path: ACPI(_SB_)#ACPI(PCI0)#ACPI(XHC_)#ACPI(RHUB)#ACPI(HS02)
    Migration Rank: 0xF000FFFFFFFF0022
    Present: false
    Status: 0xC0000719

    I also cant see any COM port. Is it possible that there is some problem with hardware? Mybe bad USB-C connector or something.... Thanks for answers.

Children
No Data
Related