Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

[NRF5 SDK] Usbd_cdc_acm don't close port

Hi,

I'm making an firmware for the nrf52840 that communicate throw usb to a computer.

First I used the uart library that works fine but required the Jtag and Jling which is integrated to the development board to be seen by the computer as a serial communication port.

But my objective if to put the firmware on nrf52840 dongle that don't have the Jtag and Jling.

After few research, I found that I need to implement the USBD_CDC_ACM to my firmware which permit to be able to see the serial port on the computer.

However, for my use case, I need to not close the serial connection during a board reboot (with JTag, when the board reboot, the serial port doesn't close and so, my program on my computer doesn't need to reopen the port and can just wait a serial event) but with usbd_cdc_acm the serial port is automatically closed and need to be reopen by the computer.

Is it possible to change that ?

Also, is it possible to disable the DTR (Data Terminal Ready) capability of Usbd like its done with JTag and Uart ?

Regards

Used sdk :

- nRF5_SDK_17.0.2

- nrf5_SDK_for_Mesh_v5.0.0

Parents Reply Children
No Data
Related