Serial Communication with nrf5340 and Windows 10

How do I get to the point that I can print a simple "Hello World" on a terminal from a custom board?

I have a custom board the is based on the nrf5340. Specifically, I am using the Raytac MDBT53-1M module. I am able to program the board and I have verified that the blinky sample functions normally. However, I cannot figure out how to get serial communication working with the USB.

I have attempted to run the zephyr cdc_acm sample but when I flash the board, windows won't recognize it as a USB device. I have added the following lines to the prj.conf file:

CONFIG_USB_COMPOSITE_DEVICE=y
CONFIG_CDC_ACM_IAD=y

as suggested on CDC_ACM USB not recognized by windows as serial port · Issue #17266 · zephyrproject-rtos/zephyr · GitHub but this doesn't seem to fix the problem.

Parents
  • Hi,

    I did a quick test on my end using the following device tree overlay:

    / {
    	chosen {
    		zephyr,console = &cdc_acm_uart0;
    	};
    };
    
    &zephyr_udc0 {
    	cdc_acm_uart0: cdc_acm_uart0 {
    		compatible = "zephyr,cdc-acm-uart";
    	};
    };
    

    And with that I got terminal over CDC ACM working on Windows 10. Does it work if you do this on your end? If not, can you share the entier project with your modifications?

Reply
  • Hi,

    I did a quick test on my end using the following device tree overlay:

    / {
    	chosen {
    		zephyr,console = &cdc_acm_uart0;
    	};
    };
    
    &zephyr_udc0 {
    	cdc_acm_uart0: cdc_acm_uart0 {
    		compatible = "zephyr,cdc-acm-uart";
    	};
    };
    

    And with that I got terminal over CDC ACM working on Windows 10. Does it work if you do this on your end? If not, can you share the entier project with your modifications?

Children
Related