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

Parents
  • HI,

    Is there a specific reason you want to use the dongle instead of the DK? 

    The nRF52840 dongle is not very suited for development due to the limited way of programming & debugging, so if you can I would strongly recommend to use the DK instead.

    If you still want to use the dongle then I suggest you have a look at this guide.

  • I already followed that guide to program Dongle using that tutorial. During that process I have mislead one GPIO pin as 21 instead of 20. My question is , Does the wrong GPIO number crashed my Dongle?

    I can make developments using DK also. But , I have to connect Dongle Serially through UART , in order to develop and use the Mesh Serial Example. Therefore it is necessary to make a UART connection in Dongle.

    There is no point in that tutorial for making UART connections in Dongle.

    My simple questions are ,

    1)Does the misplaced GPIO pin crashed my Dongle?

    2)If I have to make UART connection using Dongle, Which GPIO pins I have to use to get perfect UART connection?

    If you have time, tell me the steps to program Dongle using DK through VS Code. Because , Now, I am using Segger to flash programs to Dongles using DK.

    Thankyou for you quick response.

    -Vicky

Reply
  • I already followed that guide to program Dongle using that tutorial. During that process I have mislead one GPIO pin as 21 instead of 20. My question is , Does the wrong GPIO number crashed my Dongle?

    I can make developments using DK also. But , I have to connect Dongle Serially through UART , in order to develop and use the Mesh Serial Example. Therefore it is necessary to make a UART connection in Dongle.

    There is no point in that tutorial for making UART connections in Dongle.

    My simple questions are ,

    1)Does the misplaced GPIO pin crashed my Dongle?

    2)If I have to make UART connection using Dongle, Which GPIO pins I have to use to get perfect UART connection?

    If you have time, tell me the steps to program Dongle using DK through VS Code. Because , Now, I am using Segger to flash programs to Dongles using DK.

    Thankyou for you quick response.

    -Vicky

Children
No Data
Related