CDC COM Port Stops Working Without J-Link RTT Viewer on Custom nRF52840 Board

Hello,

We are using the nRF52840_CKAA_R7 package of the nRF52840 on our custom board. The USB pin connections are designed based on the nRF9160-DK's nRF52840 reference.

I am trying to run the console sample from the nRF Connect SDK (NCS) on this custom board. However, the sample doesn't seem to work as expected.

Details and Observations:

  1. The USB pin connections on our custom board match those of the nRF9160-DK's nRF52840 setup.
  2. The sample builds and flashes successfully without any errors.
  3. When I use the J-Link RTT Viewer, the CDC COM USB port works as expected, and I can see the output through the USB connection.
  4. However, when I disconnect the J-Link RTT Viewer, the CDC COM USB port stops working entirely, and no output is available over USB.

Troubleshooting Steps Taken:

  • Verified the USB pin configurations in the device tree files.
  • Checked the power supply to the USB port on the custom board to ensure it remains active after disconnecting J-Link RTT Viewer.
  • Confirmed that the USB initialization happens in the firmware.

Suspected Issues:

I suspect there might be some missing configurations or initialization steps that are causing this behavior. For instance:

  1. The USB device tree bindings or pin configurations might need adjustments specific to our custom board.
  2. The firmware might not be correctly managing the USB power or initialization when the J-Link RTT Viewer is not active.

Question:

What changes or additional configurations should I make in the code to ensure the USB CDC COM port works independently of the J-Link RTT Viewer?

If there are any logs or outputs you need me to share, please let me know.

Thank you for your help!

Parents Reply Children
No Data
Related