Compile OK but upload failed. Adafruit nRF52840 works fine on the same computer. The problem is the Linux Modem Manager opens /dev/ttyACMx ports after a port reset which prevents the DFU loader from opening the port. One solution is to “sudo apt remove modemmanager”. Or add a udev rule so modem manager ignores SparkFun boards. This is why the Adafruit board works because I added /etc/udev/rules.d/99-adafruit-boards.txt a long time ago.
I created /etc/udev/rules.d/99-sparkfun-udev.rules which contains the following. This fixes the problem without removing Modem Manager.
# Rule to blacklist SparkFun USB boards from being manipulated by ModemManager.
# Fixes issue with hanging references to /dev/ttyACM* devices
ATTRS{idVendor}=="1b4f", ENV{ID_MM_DEVICE_IGNORE}="1"