Error Detecting Boards: Help for Windows installation

Hi:

Need help for Edge Impulse installation. I am facing some issues in setting up the Arduino Nano 33 BLE for Edge Impulse. I am following the instructions in https://docs.edgeimpulse.com/docs/arduino-nano-33-ble-sense

Using Windows 10, and I get the following error while updating the firmware:

Finding Arduino Mbed core...
Installing Arduino Mbed core...
Downloading missing tool builtin:ctags@5.8-arduino11...
builtin:ctags@5.8-arduino11 already downloaded
Installing builtin:ctags@5.8-arduino11...
Error updating index: invalid handle
Downloading missing tool builtin:ctags@5.8-arduino11...
builtin:ctags@5.8-arduino11 already downloaded
Installing builtin:ctags@5.8-arduino11...
Error installing: creating instance: installing builtin:ctags@5.8-arduino11 tool: installing 
tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: rename 
C:\Users\HP\AppData\Local\Arduino15\tmp\package-748038271\ctags-5.8-arduino11 
C:\Users\HP\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11: 
Access is denied.
Installing Arduino Mbed core OK
Finding Arduino Mbed core OK
Finding Arduino Nano 33 BLE...
Error detecting boards: creating instance: installing builtin:ctags@5.8-arduino11 tool: 
installing tool builtin:ctags@5.8-arduino11: moving extracted archive to destination dir: 
rename C:\Users\HP\AppData\Local\Arduino15\tmp\package-552121183\ctags-5.8- 
arduino11 C:\Users\HP\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8- 
arduino11: Access is denied.
Cannot find a connected Arduino Nano 33 BLE development board via 'arduino-cli 
board list'
If your board is connected, double-tap on the RESET button to bring the board in 
recovery mode
Press any key to continue . . .

Hi @AnaVij,

As there are some “access is denied” error logs, can you right click the flash_windows script and select run as an administrator?
Also, which Arduino CLI version have you installed?

Thanks,
Aurelien

No change with run as administrator

I’m using arduino-cli_0.13.0_Windows_64bit

Also, I tried the update-index https://arduino.github.io/arduino-cli/getting-started/ and got the following message

 arduino-cli core update-index
 Downloading missing tool builtin:ctags@5.8-arduino11...
 builtin:ctags@5.8-arduino11 already downloaded
 Installing builtin:ctags@5.8-arduino11...
 Error updating index: invalid handle

Thanks for the feedback, that looks like an arduino-cli install issue.
Can you paste logs using “-v” option: arduino-cli core update-index -v?
You can also try by starting a terminal as an admin user and run the same command.

Aurelien

C:\Users\HP>arduino-cli core update-index -v
INFO[0000] Using config file: C:\Users\HP\AppData\Local\Arduino15\arduino-cli.yaml
INFO[0000] arduino-cli version 0.13.0
INFO[0000] Checking signature                            
index="C:\\Users\\HP\\AppData\\Local\\Arduino15\\package_index.json" 
signatureFile="C:\\Users\\HP\\AppData\\Local\\Arduino15\\package_index.json.sig" 
trusted=true
INFO[0000] Checking if CLI is Bundled into the IDE
INFO[0000] Loading hardware from: C:\Users\HP\AppData\Local\Arduino15\packages
INFO[0000] Loading package builtin from: 
C:\Users\HP\AppData\Local\Arduino15\packages\builtin
INFO[0000] Checking existence of 'tools' path: 
C:\Users\HP\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loading tools from dir: 
C:\Users\HP\AppData\Local\Arduino15\packages\builtin\tools
INFO[0000] Loading package esp8266 from: 
C:\Users\HP\AppData\Local\Arduino15\packages\esp8266\hardware
INFO[0000] Loaded platform                               platform="esp8266:esp8266@2.3.0"
INFO[0000] Checking existence of 'tools' path: 
C:\Users\HP\AppData\Local\Arduino15\packages\esp8266\tools
INFO[0000] Loading tools from dir: 
C:\Users\HP\AppData\Local\Arduino15\packages\esp8266\tools
INFO[0000] Loaded tool                                   tool="esp8266:esptool@0.4.9"
INFO[0000] Loaded tool                                   tool="esp8266:mkspiffs@0.1.2"
INFO[0000] Loaded tool                                   tool="esp8266:xtensa-lx106-elf- 
gcc@1.20.0-26-gb404fb9-2"
INFO[0000] Adding libraries dir                          
dir="C:\\Users\\HP\\Documents\\Arduino\\libraries" location=user
INFO[0000] Adding libraries dir dir="C:\\Users\\HP\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.3.0\\libraries" location=platform
Downloading missing tool builtin:ctags@5.8-arduino11...
builtin:ctags@5.8-arduino11 already downloaded
INFO[0000] Installing tool                               Tool="builtin:ctags@5.8-arduino11"
Installing builtin:ctags@5.8-arduino11...
WARN[0000] Cannot install tool                           Tool="builtin:ctags@5.8-arduino11" 
error="moving extracted archive to destination dir: rename 
C:\\Users\\HP\\AppData\\Local\\Arduino15\\tmp\\package-921151103\\ctags-5.8- 
arduino11 
C:\\Users\\HP\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8- 
arduino11: Access is denied."
INFO[0000] Executing `arduino core update-index`
Error updating index: invalid handle
ERRO[0000] Error updating index: invalid handle

There is no difference even with admin terminal

Are you logged in with the user “HP” on your computer?
Otherwise it is worth asking on the Arduino forum

I got this fixed. The issue was with the antivirus software.

I turned it off during the install.

Thanks @aurel

2 Likes