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.

  • 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.

  • Hello,

    I don't suppose I would be able to reproduce what you are seeing on an actual nRF52840 DK? 

    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",

    It looks like something is missing in your boardfiles. Is it possible for you to zip a project that I can unzip into my unmodified SDK to replicate the issue? If so, can you please upload it, so that I can have a look at what you did with your board files?

    Best regards,

    Edvin

  • Hi. I solved the problem. I cant run these three CONFIG options enabled = CONFIG_DEBUG=y, CONFIG_LOG=y, CONFIG_LOG_MODE_MINIMAL=n. If I enable them, CDC ACM UART doesnt work. Do I need to set some additional CONFIG options or debug and logs doesnt work over CDC ACM UART? Thanks.  

  • Hello,

    I think this is rather a device tree configuration. What board file do you use in your project (.dts or .overlay files)?

    Best regards,

    Edvin

Related