Nrf52840 Development board with Adafruit NRF52 Core

Has anyone seen a set of variant files that allow the nrf52840 development board that you can get at low cost on sites like ali;

nrf52840 Development Board

With the Adafruit NRF52 core;

https://github.com/adafruit/Adafruit_nRF52_Arduino

The changes to variant.h and variant.cpp dont look too difficult, but the appropriate settings in boards.txt dont look very obvious.

I have bought some of these. If there is any knowledge out there that I need to learn to get these working please let us know.

I have found that this is something called a nice!nano and can be programmed as a keyboard with little effort. I would like to know how this works with arduino, I would like to make a gamepad with it, so very similar but not quite right. I found the appropriate bootloader: GitHub - adafruit/Adafruit_nRF52_Bootloader: USB-enabled bootloaders for the nRF52 BLE SoC chips and that's where i get a little lost.

There is no published variant files for Arduino, as far as I know, hence my question.

The clone nice!nano boards are used with the Meshtastic software, but that runs under PlatformIO.

How do you make variant.h files? I will learn it if there are resources available but my searches are coming up short.

You look at the structure of a known working variant.h file and copy it ?

The name of these well designed cheap boards:
Super mini nrf52840, similar Nice!Nano.

Perfect support for arduino Ide using:

The bootloader loads by connecting RESET Pin to GND two times within 500ms. You see a USB Drive with the name supermini (direct use for uf2 files and e.g. Circuitpython) and a usb serial port. In the Arduino IDE 2.3.3 switch to the super mini board and burn the according bootloader.

I used the 2.3.3 Arduino IDE and installed directly from github into the sketches folder.

The red led on the board ist defined as LED_BUILDIN or BLUE_LED, there is no RED_LED defined.

Pin VCC_EXT set to LOW switches the external LDO off.

I reached 5 microamps on NRF_POWER->SYSTEMOFF = 1
and
9 microamps on delay().
at 2.4V on powering direct via VCCH (on the bottom of the board VCC)
So a 2032 cab with 230mAh last for 2-3 years of delay().

The newer boards are well designed. The older ones have a resistor of 5.6k instead of 10M with causes a leakage of 700ma. You can easily remove this 5.6k resistor. This resistor is between VCCH and CE of the LDO and switches the LDO on at startup until the POWER_PIN (P0.13) ist set to LOW.

Further information:

Via lipo charger you have an additional leakage of around 20-30 microamps if you use the a lipo cell.

Someone has done the work for platformio, which is what I use:

I hope i can get my boards to work. i was able to upload to my boards using adafruit feather nrf52840 express

hello, i might be a bit late but I own the same board varient and needed a bit help. I am a bit new to this but i managed to get it work somehow. i successfully got serial output by connecting it with my phone with BLE. i used it as feather nrf52840 express in the IDE. but now suddenly it stopped working.code still uploads but gpio's dont output as the code, gives me an error "...exit status 1" if i try to get a serial output. Tried everything i found. Also the board link here gives some kind of error. i also couldnt figure out the proper pinout diagram to work in arduino ide.so far i was depended on chat gpt codes. the blue led in my board was constantly lit previously but now when i connect usb power it blinks. red led indicated the dfu mode i guess.
also is it ok if i power it with a 3.7v lipo?the board behave wierdly to say. is there any minimum current rating for the battery? i would really appreciate if someone could ans some of these questions about the board. and if you can please share a simple blink sketch and a pwm output for me as example. thanks

Hi guys, thanks for the hint with the GitHub repository for the Arduino core for nRFMicro, SuperMini nRF52840, and nice!nano v2 boards. I have a nice!nano v2 but when I try to upload there is an issue with the boot loader. Do you have an idea what his problem is?

Upgrading target on /dev/cu.usbmodem101 with DFU package /private/var/folders/v9/d2t7w1qd1070n_5qk0g5n4ym0000gn/T/arduino_build_905458/sketch_sep20a.ino.zip. Flow control is disabled, Single bank, Touch disabled

Failed to upgrade target. Error is: read failed: [Errno 6] Device not configured
Traceback (most recent call last):
  File "serial/serialposix.py", line 575, in read
OSError: [Errno 6] Device not configured

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "__main__.py", line 296, in serial
  File "dfu/dfu.py", line 235, in dfu_send_images
  File "dfu/dfu.py", line 203, in _dfu_send_image
  File "dfu/dfu_transport_serial.py", line 155, in send_init_packet
  File "dfu/dfu_transport_serial.py", line 243, in send_packet
  File "dfu/dfu_transport_serial.py", line 264, in get_ack_nr
  File "serial/serialposix.py", line 581, in read
serial.serialutil.SerialException: read failed: [Errno 6] Device not configured

Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
    Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.

Hi

Here , in this fork, you cant find the 2 variant files and board.txt …..
to add Nice!Nano board (and compatibles like Pro MIcro nRF52840 ) to maintained Adafruit nRF52 core in IDE2.

https://github.com/selimmeric/Adafruit_nRF52_Arduino_Nice-NanoV2

tested yet OK for UART , I2C, LED….

((PDCooks’ core is not usable out of the box with IDE2)