Blink sketch won't verify/compile

I am an Arduino novice:

Platform - Mac Latest OS - have sufficient storage
Seeed nRF 52840 Sense
Correct board and port selected - using data upc-c cable
Arduino IDE 2.2.1. All relevant preferences are not blocked

When I try to verify/compile - blink sketch get the following error message

fork/exec /Users/les/Library/Arduino15/packages/Seeeduino/hardware/nrf52/1.1.7/tools/adafruit-nrfutil/macos/adafruit-nrfutil: permission denied

Compilation error: fork/exec /Users/les/Library/Arduino15/packages/Seeeduino/hardware/nrf52/1.1.7/tools/adafruit-nrfutil/macos/adafruit-nrfutil: permission denied

Any help will be appreciated.

Your topic has been moved to a more relevant forum category as whatever the problem is it does not relate to IDE version 1.x which is where it was originally posted

Have you verified what’s in that path and permissions ?

Sorry functioning at an elementary level - please guide me on how to verify what's in the path and permissions? Thanks

are you familiar with unix command line?

you would have to go to

/Users/les/Library/Arduino15/packages/Seeeduino/hardware/nrf52/1.1.7/tools/adafruit-nrfutil/macOS/

and check permissions on the file adafruit-nrfutil

did you install the Seeeduino's tools as admin?

Jackson: Thank you for your followup

Verified that les (me) has "read and write" permission for /Users/les/Library/Arduino15/packages/Seeeduino/hardware/nrf52/1.1.7/tools/adafruit-nrfutil/macOS.

I think - The Seeduino tools appear to have automatically installed when I used Arduino IDE 2.2.1 Board manager to select the Seeed nRF52 Board 1.1.7 Therefore, unsure if that is an "admin" install..

Hi @lesfuji. Please try this:

  1. Close all Arduino IDE windows if the IDE is already running.
  2. Open macOS Launchpad.
  3. Type terminal in the "Search" field.
  4. Click on the "Terminal" icon.
    A "zsh" window will open.
  5. Type the following command in the zsh window:
    chmod +x /Users/les/Library/Arduino15/packages/Seeeduino/hardware/nrf52/1.1.7/tools/adafruit-nrfutil/macos/adafruit-nrfutil
    
  6. Press the Enter key.

Now try compiling the sketch for the "Seeed nRF 52840 Sense" board again. Hopefully this time it will succeed without any error.

Thank you. Followed your directions The sketch was verified and uploaded.

You are welcome. I'm glad it is working now.

Regards,
Per

So you were just missing execution right (what the +x added) for the file

Weird the tools are not installed properly. (I don’t have that board)

I was able to reproduce it so it wasn't only some quirk of @lesfuji's installation. The file is downloaded from a release asset in Adafruit's adafruit/Adafruit_nRF52_Arduino repository:

Specifically the "nrfjprog-9.4.0-mac.tar.bz2" link under the "Assets" section of that page.

too bad they missed this.

@ptillisch Thank you for this solution!

For others with the problem, the 1.1.8 update for Seeed nRF52 hardware has this same error and this solution works perfectly (obviously change 'les' in the address to your user name on mac)

Sorry to comment again, but has anyone actually gotten blink.ino AND a serial connection to work using:

Mac OS
Arduino IDE 2.3.2 (current)
Seeed nRF52 Board core v1.1.8 (non-mbed)

I'm able to upload the blink sketch to the MCU, but then lose serial connection. The LED does blink, but the Mac OS no longer detects the board and new code can't be uploaded unless the RESET is pressed twice. Have also tried with an earlier BSP (v1.1.1) and earlier Arduino IDE (1.8.16)

I have no issue with the mbed board core and the blink.ino