Defining PIN numbers for nRF52840 Dongles for Mesh Serial example.(UART connection)

I have

Hardware:
nRF52840 DK - 1
nRF52840 Dongle - 1

Software:
nRF5 SDK Mesh - v5.0.0
nRF5 SDK - v17.0.2


I want to program Mesh Serial example on nRF52840 Dongle using Segger Embedded Studio. When I try to convert the program for PCA10059 chipset , it gives me an error
as UART pins are not defined.
Then I defined the UART pins for PCA10059 in pca10059.h file as follows:

#define RX_PIN_NUMBER  13
#define TX_PIN_NUMBER  15
#define CTS_PIN_NUMBER 17
#define RTS_PIN_NUMBER 21
#define HWFC           true

After defining and flashing the program to the Dongle using DK , I didn't get any output. Then, I try to connect that Dongle using my DK , SWD pins
, it won't detect it. In nRF Connect for Desktop , it shows only the J-Link is connected and gives the following error:

12:49:44.939	Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device.
12:49:46.946	Target device closed
12:49:54.784	Unsupported device. The detected device could not be recognized as neither JLink device nor Nordic USB device.

But, PIN 21 is not given as an GPIO pin for Dongle board. PIN 20 is the GPIO pin. I mistakenly changed the PIN 20 to PIN 21.

#define RTS_PIN_NUMBER 21 // Mistakekenly defined PIN 21 instead of PIN 20

1)Does, this crashed my Dongle?
2)I have another Dongle which works perfectly. If I try to configure UART pins for that Dongle, which PINs I have to use
to make the board work perfectly without any defect?
3)How can I program nRF52840 Dongle using nRF52840 DK through VS Code?
4)How can I define PIN number for UART program to nRF52840 Dongles, which can be flashed by VS Code?

Please reply as soon as possible.
Thankyou.

-Vicky

Related