Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Unable to program CLUE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Unable to program CLUE

by geekguy on Fri Apr 23, 2021 7:54 pm

Hi,

I am not able to program my CLUE from the Arduino IDE (v1.8.13).

I am getting the error:
Code: Select all | TOGGLE FULL SIZE
Arduino: 1.8.13 (Linux), TD: 1.53, Board: "Adafruit CLUE, 0.3.2 SoftDevice s140 6.1.1, Level 0 (Release)"

Usage: adafruit-nrfutil dfu [OPTIONS] COMMAND [ARGS]...
Try 'adafruit-nrfutil dfu --help' for help.

Error: No such command 'genpkg'.
exit status 2
/opt/arduino-1.8.13/arduino-builder returned 2
Error compiling for board Adafruit CLUE.


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I have already double-checked that I have everything that I need installed and I do. I do not know what the problem is.

8-Dale

geekguy
 
Posts: 304
Joined: Tue Sep 10, 2013 2:43 pm
Location: Beaverton, OR

Re: Unable to program CLUE

by kevinjwalters on Mon Apr 26, 2021 11:51 am

I think I've arduino'ed twice on the CLUE. I just compiled my last code on Windows at level 2 debug with 1.8.13. Towards the end I see a similar step but it doesn't error:

Code: Select all | TOGGLE FULL SIZE
"C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\arm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-objcopy" -O ihex "C:\\Users\\xxxx\\AppData\\Local\\Temp\\arduino_build_851832/clue-mains-frequency.ino.elf" "C:\\Users\\xxxx\\AppData\\Local\\Temp\\arduino_build_851832/clue-mains-frequency.ino.hex"
"C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.19.0/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe" dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application "C:\\Users\\xxxx\\AppData\\Local\\Temp\\arduino_build_851832/clue-mains-frequency.ino.hex" "C:\\Users\\xxxx\\AppData\\Local\\Temp\\arduino_build_851832/clue-mains-frequency.ino.zip"
Zip created at C:\Users\xxxx\AppData\Local\Temp\arduino_build_851832/clue-mains-frequency.ino.zip
Using library Wire at version 1.0 in folder: C:\Users\xxxx\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\0.19.0\libraries\Wire


Turn up debug and check how many versions of adafruit-nrfutil you have. If you have 0 (unlikely) or 2 versions installed that could explain the problem! Might be worth checking if you have Nordic's version installed, there's mention of possible interference in https://github.com/adafruit/Adafruit_nR ... /issues/22

Code: Select all | TOGGLE FULL SIZE
PS C:\> C:\\Users\\xxxx\\AppData\\Local\\Arduino15\\packages\\adafruit\\hardware\\nrf52\\0.19.0/tools/adafruit-nrfutil/win32/adafruit-nrfutil.exe version
adafruit-nrfutil version 0.5.3.post12

kevinjwalters
 
Posts: 982
Joined: Sun Oct 01, 2017 3:15 pm

Re: Unable to program CLUE

by adafruit_support_carter on Mon Apr 26, 2021 12:03 pm

Is this a new install of Arduino? Have ever been able to program the CLUE?

adafruit_support_carter
 
Posts: 21890
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.