This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Building an application with Mesh and USB-CDC does not run properly when jlink cable not plugged

Hi
I am using the latest SDK for Mesh and also the latest nrf sdk.
Downloaded and installed both last week.

I have written an application that is derived from the light_switch client example and I merged in the usb-cdc example.
Goal, send a command over virtual serial port to trigger a mesh message to be sent.

I have got to the stage that when I run in Segger IDE using F5 it fires up. From Nordic's phone mesh app I can see it there waiting to be provisioned.
I also see the virtual comport appear in Windows.

When I now unplug the devkit from my PC and just plug in the virtual serial port cable, I do not see the serial port.

I wrote the app so that using #defines I can disable mesh or usb-cdc functionality.

When I disable usb-cdc but enable mesh, I see the board fireup without the debugger and I can see it waiting to be provisioned.

When I disable mesh but enable usb-cdc, I can see the serail port appear in windows.

Hence independently the work.

When I enable both, I can see it waiting to be provisioned, but I cannot see the serial port -- unless I plug-in the USB cable for jlink


Can you help?

Look forward to hearing from you

Kind regards
Mahendra

Related