I am currently using Adafruit nrf52832 feather bootloader and nRFconnect to upload the code in Arduino IDE into the nRF52832 DK board, similarly could you suggest bootloader and tools settings in Arduino IDE to upload the Arduino code into the nRF52840 DK ?
Note:
Tried using the Adafruit nRF52840 Express bootloader and few other bootloaders of Adafruit to program my nRF52840 DK. I anticipate I am going wrong in selecting the bootloader and tools settings
Open the Boards Manager from the Tools -> Board menu and install the “Adafruit nRF52 by Adafruit” package.
Select the Correct Board and Bootloader:
Under Tools -> Board, select “Adafruit Feather nRF52840 Express”.
For the Programmer, choose “Bootloader DFU for Bluefruit nRF52” under Tools -> Programmer.
Burn the Bootloader:
With the board and programmer selected, use Tools -> Burn Bootloader to burn the bootloader onto the nRF52840 DK.
Upload Your Sketch:
After burning the bootloader, you should be able to upload your sketches normally using the Arduino IDE.
Make sure no other program is using the serial port and that the correct bootloader version matches the one on your Bluefruit device. The baud rate should be set to 115200, and flow control must be off. Ensure the target is in DFU mode; you might need to ground the DFU pin and reset, then release both to enter DFU mode.
If you encounter issues, double-check these settings and ensure that the board is correctly entered into DFU mode.