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

Reply Children
Related