Fail at the first hurdle

Thanks for the clarification.

Did you disconnect the jumper and power cycle the board after successfully finishing the flashing operation?

That's correct. I was actually thinking about in another topic when you were talking about sharing files between Apple devices. iCloud is a way to easily "network" a few Apple products together through a common folder in iCloud.
Not pertinent to this topic.

Yes, disconnect the jumper, disconnect the Board from usb and power. Reconnect the Board via usb.

I couldn't connect over a laptop USB 3 port after many tries. So I tried switching to a USB A port and it WORKS !. I can run Arduino App Lab and flash memory now

2 Likes

Thanks for that, however, unfortunately, this does not work for me.
To be more specific this is what I get:-

This does not work. Yet again I get

zsh: fork failed: resource temporarily unavailable

This seems to be the permanent state of the zsh port.

Returns the error, unsurprising to me, of

cd Downloads/arduino-flasher-cli-0.2.3-darwin-arm64
cd: no such file or directory: Downloads/arduino-flasher-cli-0.2.3-darwin-arm64

This is because I have no idea where you get the "cli-0.2.3-darwin-arm64" bit as it is never specified in any of the downloads.

EDIT
I restarted my iMac, as things had gone strange with my terminal window. Also I had dragged the unzipped file onto the desktop. Then after the restart I got this message

mikecook@iMac ~ % /Users/mikecook/Desktop/arduino-flasher-cli-0.2.3-linux-arm64
zsh: permission denied: /Users/mikecook/Desktop/arduino-flasher-cli-0.2.3-linux-arm64

Well that is a diffrent result, but as I am the administrator on this machine I am not sure why I don't have this permission.

The issue possibly isn’t about macOS admin rights, but because the file isn’t marked as executable. When you downloaded or unzipped it, macOS didn’t automatically give it execute permission.

Try a chmod +x on it

I'll provide more precise instructions for the image flashing procedure. @Grumpy_Mike please follow these carefully. If you have any questions or problems while doing that, just let us know and we'll provide further assistance.

A. Prepare Board

  1. If connected, disconnect the USB board of the UNO Q board from your computer.

  2. Connect a female-to-female jumper cable between these two pins on the UNO Q board:


    📷

    flash-uno-q.png by Arduino - CC BY-SA 4.0 (crop, annotate, border)

  3. Connect the USB cable of the UNO Q board to your computer.

B. Install Arduino Flasher CLI

  1. Click the following link to download Arduino Flasher CLI:
    https://downloads.arduino.cc/arduino-flasher-cli/arduino-flasher-cli-0.2.3-darwin-arm64.tar.gz
  2. Wait for your web browser to finish the download.
  3. Open the macOS Finder app.
  4. Navigate to the folder that contains the downloaded file.
  5. Control-click on the downloaded file.
    A context menu will open.
  6. Select Open With > Archive Utility from the menu.
    The "Archive Utility" app will extract the downloaded archive file.

This will result in the creation of a folder named arduino-flasher-cli-0.2.3-darwin-arm64, which contains the installation of the Arduino Flasher CLI tool.

C. Flash Image

  1. Control-click on the arduino-flasher-cli-0.2.3-darwin-arm64 folder that was created by the "B. Install Arduino Flasher CLI" procedure above.
    A context menu will open.
  2. Select "New Terminal at Folder" from the menu.
    A "Terminal" window will open, with the arduino-flasher-cli-0.2.3-darwin-arm64 folder as the working directory.
  3. Type the following command in the terminal:
    ./arduino-flasher-cli flash latest
    
  4. Press the Enter key.
    The tool will display a prompt:
    Checking for Debian image releases
    Found Debian image version: 20251006-395
    Do you want to download it? (yes/no)
    
  5. Type y.
  6. Press the Enter key.
    A process of downloading the latest image from the Internet will now start, followed by the operation of flashing it to the UNO Q board.
  7. Wait for the process to finish successfully.
  8. Disconnect the USB board of the UNO Q board from your computer.
  9. Disconnect the jumper cable you connected to the header on the UNO Q board as part of the "A. Prepare Board" procedure.
  10. Connect the USB cable of the UNO Q board to your computer.

Now start Arduino App Lab. Hopefully this time it will detect the UNO Q.

That might have been the issue. macOS’s Archive Utility automatically extracts a .tar.gz preserving the execute permissions, effectively doing what tar -xzf would do.

If you manually extract the .tar.gz without telling tar to preserve permissions (for example, using tar -x instead of tar -xzf or with incorrect options), the execute bits might be lost.

Hi @Grumpy_Mike,

Regarding the “permission denied“ error, it is because you are trying to “execute a folder“.

The correct command line should be

/Users/mikecook/Desktop/arduino-flasher-cli-0.2.3-linux-arm64/arduino-flasher-cli

Also, double-check the name of the extracted folder, because a few archiving tools might extract it in arduino-flasher-cli-0.2.3-linux-arm64.tar instead of arduino-flasher-cli-0.2.3-linux-arm64.

I can’t believe it. This also solved my problem.

That is where it stops working. I can not see any option that says Open With > archive Utility

What I get as options is shown in this screen dump.

Please provide a screenshot of your full screen at that step. The additional context might allow us to understand the problem and how to solve it.

OK here it is, but not sure what it adds.

It appears you may have clicked on the icon in the macOS dock rather than the file in Finder:

Make sure to click on the item in the Finder window. Let us know if you still experience the same problem when you do that.

That seems to be a problem here is what my terminal window says

Last login: Sun Oct 26 08:12:57 on ttys000
mikecook@iMac arduino-flasher-cli-0.2.3-darwin-arm64 % ./arduino-flasher-cli flash latest
Checking for Debian image releases
Found Debian image version: 20251006-395
Do you want to download it? (yes/no)
Y
Downloading Debian image version 20251006-395
Download progress: 1.00 %
//I removed all the tedious in between points
Download progress: 99.05 %
Download of Debian image completed
Unzipping Debian image
arduino-unoq-debian-image-20251006-395/
arduino-unoq-debian-image-20251006-395/disk-sdcard.img.home
arduino-unoq-debian-image-20251006-395/disk-sdcard.img.root
arduino-unoq-debian-image-20251006-395/disk-sdcard.img.esp
arduino-unoq-debian-image-20251006-395/flash/
arduino-unoq-debian-image-20251006-395/flash/rpm.mbn
arduino-unoq-debian-image-20251006-395/flash/multi_image.mbn
arduino-unoq-debian-image-20251006-395/flash/devcfg.mbn
arduino-unoq-debian-image-20251006-395/flash/tz.mbn
arduino-unoq-debian-image-20251006-395/flash/qupv3fw.elf
arduino-unoq-debian-image-20251006-395/flash/xbl_feature_config.elf
arduino-unoq-debian-image-20251006-395/flash/gpt_main1.bin
arduino-unoq-debian-image-20251006-395/flash/prog_firehose_ddr.elf
arduino-unoq-debian-image-20251006-395/flash/gpt_backup1.bin
arduino-unoq-debian-image-20251006-395/flash/storsec.mbn
arduino-unoq-debian-image-20251006-395/flash/boot.img
arduino-unoq-debian-image-20251006-395/flash/imagefv.elf
arduino-unoq-debian-image-20251006-395/flash/zeros_1sector.bin
arduino-unoq-debian-image-20251006-395/flash/featenabler.mbn
arduino-unoq-debian-image-20251006-395/flash/hyp.mbn
arduino-unoq-debian-image-20251006-395/flash/gpt_both0.bin
arduino-unoq-debian-image-20251006-395/flash/gpt_empty0.bin
arduino-unoq-debian-image-20251006-395/flash/uefi_sec.mbn
arduino-unoq-debian-image-20251006-395/flash/gpt_main0.bin
arduino-unoq-debian-image-20251006-395/flash/patch0.xml
arduino-unoq-debian-image-20251006-395/flash/gpt_main2.bin
arduino-unoq-debian-image-20251006-395/flash/gpt_backup0.bin
arduino-unoq-debian-image-20251006-395/flash/km4.mbn
arduino-unoq-debian-image-20251006-395/flash/rawprogram0.xml
arduino-unoq-debian-image-20251006-395/flash/zeros_33sectors.bin
arduino-unoq-debian-image-20251006-395/flash/rawprogram0.nouser.xml
arduino-unoq-debian-image-20251006-395/flash/abl.elf
arduino-unoq-debian-image-20251006-395/flash/gpt_backup2.bin
arduino-unoq-debian-image-20251006-395/flash/cdt.bin
arduino-unoq-debian-image-20251006-395/flash/xbl.elf

WARNING: flashing a new Linux image on the board will erase any existing data you have on it.
Do you want to procede and flash /private/var/folders/0r/5d65776n19q2wvp1wf4bjsxr0000gn/T/flasher-updater-1746828856/arduino-unoq-debian-image-20251006-395 on the board? (yes/no)
yes
Flashing with qdl
Waiting for EDL device

At which point it just hangs, well for at least ten minutes so far.

I suspect this is caused by the same root problem as causes Arduino App Lab to not recognize the board. In this case, it is that the Qualcomm Download tool (qdl) used by arduino-flasher-cli is also not recognizing the connected board.

Unfortunately I don't know what might cause this. Maybe the more knowledgeable @AndreaRichetta and @manchuino will have an idea.

The thing is that I already used this board to run the Arduino App Lab to run the blink LED and the Pin Toggle successfully. Now it no longer works.

1 Like

Just curious there ➜ is it the step that places the board into Emergency Download mode (aka EDL mode) ?

@Grumpy_Mike - are you sure your jumper cable is good ?

As the two pins to be connected are adjacent, you could also use a 2.54mm, 0.1" jumper, as shown below:

Yes that is what I used.

Yes they feel very firm and I have used them many, many times in the past on numerous projects where options are required. For example all my musical instruments for disabled people have one in them in order to swap over between a right handed and left handed mode.