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

NRF52840 DK - Connecting to Windows with x2 different dev boards results in the same COM port being assigned

The issue:

1) Program x2 NRF52840 dev boards 

2) comment board A to windows, windows reports COM n

3) unplug board A and connect board B

4) windows reports the same COM port as board A

5) I have to have x2 boards connected to the same PC in order to test an NRF52840 based product, each board is switched on/off independently so 

 

Is there any way of programming a unique serial number into the NRF52840 Dev board for the USB serial device so windows assign a different Com Port for each device?

Please note I am using the correct port (the one on the side), Serial comms is working OK its just that all boards appear as the same number when connected.

Parents Reply
  • I have just searched through the Nordic-nrf5-SDK source code and found a header file app_usbd_serial_num_generate.h  but can find anything in the Nordic documentation, Is this what is required?

    /**
    * @defgroup app_usbd_serial_num USBD serial number generator
    * @ingroup app_usbd
    *
    * @brief @tagAPI52840 Generate a standard USB serial number that is unique for each device.
    * @{
    */

    /**@brief Function for generating a default serial number string based on FIRC->DEVICEADDR.
    *
    * After calling this function, the serial number is ready for the USB driver.
    *
    * The generated serial number shows up as a 12-hexidecimal-digit string with no delimiters
    * (e.g 123456ABCDEF). The byte string is also printed on the PCA10059 dongle. It is also used as
    * the default advertising address in the SoftDevice.
    */

    void app_usbd_serial_num_generate(void);

Children
No Data
Related