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 Reply
  • I seem to have crossed my positive and negative inputs on the usb lines on the board. I used your supplied code, and it works perfectly with puTTy. Thanks for your help trouble shooting.

    As a follow up, is there any way to get nrf connect to detect the board as a device? While I can get the puTTy terminal to see the board, it doesn't show up under "connected devices" in vscode.

Children
Related