Issues with setting up nRF52840

I recently purchased nRF52840 and setting it up following instructions.

I have completed steps till updating the “boards.txt” but not able to understand the following step in blue text below (specifically what’s the original directory in this context)?

https://learn.sparkfun.com/tutorials/nr … cuitpython

Then copy the contents of the “variants” folder in this directory into the “variants” folder of the original directory. Nothing should be overwritten, but a new “sparkfun_nrf52840_mini” directory should be added in.

When I try to save/compile the program, I get the following error message. Please advise. Thanks, Ananth

Arduino: 1.8.10 (Mac OS X), Board: “SparkFun Pro nRF52840 Mini, s140 6.1.1 r0, Level 0 (Release)”

In file included from /Users/asankara/Library/Arduino15/packages/adafruit/hardware/nrf52/0.14.0/cores/nRF5/Arduino.h:63:0,

from sketch/Example6_ReadTemperature.ino.cpp:1:

/Users/asankara/Library/Arduino15/packages/adafruit/hardware/nrf52/0.14.0/cores/nRF5/delay.h:28:10: fatal error: variant.h: No such file or directory

#include “variant.h”

^~~~~~~~~~~

compilation terminated.

exit status 1

Error compiling for board SparkFun Pro nRF52840 Mini.

This report would have more information with

“Show verbose output during compilation”

option enabled in File → Preferences.

Hi Ananth,

It sounds like either the variants file for the Pro nRF52840 or the boards.txt file was not modified properly. The “original directory” is going to be the file path listed in your error or something similar to this “~/Library/Arduino15/packages/adafruit/hardware/nrf52/” where is the version number of the boards package.

Double-check to make sure you have both a modified boards.txt file with the [SparkFun board information as well as the sparkfun_nrf52840_mini board definition file your variants folder for the Adafruit nRF52 Arduino core.](https://learn.sparkfun.com/tutorials/nrf52840-development-with-arduino-and-circuitpython#arduino-installation)

Hello, I used the 1.8.19 version of arduino, and then added the sparkfun_pro_nrf52840_mini board information according to nrf52840, but why do I keep reporting this error?

https://user-images.githubusercontent.c … 0a93dd.png

Does anyone know?