Browser stuck in "Preparing to download" state when downloading IDE

Not sure if I should start a new thread or not, but having read this I would like to present my problem with IDE2.

Basically I am trying to upload to my iMac with apple silicon

However, when I use this page to download it

It try's to download exactly the same code as when I try and download

In other words there is no difference in what it attempts to download, It is the same code.

This, by the way, hangs with a preparing to down load message. How long should this take? I have given it 15 minuets before giving up and cancelling the load.
I am quite happy if you want to move this somewhere else.
Thanks for reading.

Hi @Grumpy_Mike.

What exactly did you observe that led you to this conclusion?

When I select "macOS Apple Silicon 11 Big Sur or newer (64-bit)" from the menu and click the "DOWNLOAD" button, it triggers a download of this file:

https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.6_macOS_arm64.dmg

(note the arm64 suffix)

When I select "macOS Intel 10.15 Catalina or newer (64-bit)" from the menu and click the "DOWNLOAD" button, it triggers a download of this file:

https://downloads.arduino.cc/arduino-ide/arduino-ide_2.3.6_macOS_64bit.dmg

(note the 64bit suffix)

So everything appears to be working correctly to me, with the Apple Silicon build being downloaded when the user selects the "Apple Silicon" option from the menu, and the x86 build being downloaded when the user selects the "Intel" option from the menu.

Is the message displayed in a browser dialog or notification, or is it on the web page. I haven't seen something like that before. When I try it, my browser just starts a regular file download immediately.

It depends on your Internet connection. The file is 185 MB.

Thanks for the reply.

I saw on the download the same code attempting to be downloaded.
This is what it looks like no matter what option I select.


With the bar moving backwards and forwards

I have never seen it change from the preparing to download to actual downloading, does it do this for you?

No. The download proceeds normally, just like any other file download.

Are you using the Safari browser? I ask so that I can try to reproduce the exact conditions from your machine. I only tried it on Chrome because that is the browser I normally use, but I have all the major browsers installed so I can try it with any of them.

Yes the Safari browser but on a none private page.

Note it has still not passed the preaparing part. Being going more that 20 minuets now.

I tried it on my phone (using Samsung Browser) and it started downloading immediately.
Same with Edge and Chrome.

If it helps... Haha

The only phone I have is a Nokia, so that's a bit above its pay grade. :joy:

1 Like

It has been going now for over three hours still prepairing. So it is not going to happen. Shutting it down now .

By default, Safari asks you whether you want to allow the download:

It stays in that "Preparing to download" state until you click "Allow" in the dialog.

So make sure you have clicked that "Allow" link in the dialog. If you don't see the dialog, open the Safari settings by selecting Safari > Settings... from the macOS menu bar, then configure arduino.cc as "Allow" in the "Website" tab of the settings dialog.

I wonder if there is a dialogue box open waiting for a click. It may be under a window. There are keystrokes that will show all open windows and dialogues.

Interesting enough I see this as a pop up window, but only when I have stoped and closed the download. Also I can't see other options from the Safari Icon on the Icon bar.

Well I tried making the windows small and reducing them to just three open ones and moved them about and I never saw anything to click.

Check your tabs. The dialog appears in a new tab that opens in Safari after you trigger the download.

I've had similar dialog boxes "disappear" under other windows, and apparently not be selectable through normal mechanisms. (though my Mac is significantly older.) Eventually I think I got them back by re-visiting the page, perhaps after restarting the browser.

Just another reason why I do NOT use Safari. I love Mac hardware, but almost all the software is awful. I am still trying to find Apple emails.

The thing is that I only had three windows open and I made them all small so that I could move them round the screen to see any dialogue boxed that might be lurking behind the windows, and I could not see any.

Unless this dialogue box moves with the windows, I can't see if it would evade my scrutiny.

There is an other update to the OS I am running and I am thinking of doing the upgrade to see if anything happens.

The dialog is actually embedded in the browser window itself, not floating free separate from the browser window as is usually the case with dialogs.

OK, I managed to get the downloading fixed by changing the preferences in the Web sites window. I basically converted most of the "ask" options from the Arduino.cc into allow options., and also blocked the discourse web site.

Therefore I was able to download the the latest IDE.

Sadly however I can't get it torn the "blink" example. I am getting the error:-

Sketch uses 286189 bytes (9%) of program storage space. Maximum is 3145728 bytes.
Global variables use 30552 bytes (9%) of dynamic memory, leaving 297128 bytes for local variables. Maximum is 327680 bytes.
"/Users/mikecook/Library/Arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5/dfu-util" --device 0x2341:0x0070 -D "/Users/mikecook/Library/Caches/arduino/sketches/59D45A8224274C718C0E53E1179E5329/Blink.ino.bin" -Q
dfu-util: No DFU capable USB device available
dfu-util 0.11-arduino4

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

Failed uploading: uploading error: exit status 74

I did try a link about resetting the boot loader on the ESP32 (genuine Arduino device) but this failed at the step where you had to wipe the flash memory. This came up with an error message saying this could not be done.

So while my initial question about preparing to download has been solved, I still haven't got the IDE working, so I think I will carry on with this thread rather than start a new one.

This is progress at least!

From this, I am assuming you mean you have an Arduino Nano ESP32 board connected to your computer. Is that correct?

If yes, I'm going to ask you to provide some additional information that might help us to identify the problem:

  1. Connect the Nano ESP32 board to your computer with the USB cable.
  2. Open Arduino IDE's Tools > Port menu.

Please add a reply here on this forum topic to tell us what label (if any) you see after the item for the board's port in the menu.

It might be labeled as one of the following things:

  • "(Arduino Nano ESP32)"
  • "(ESP32 Family Device)"
  • A random ESP32-based board (e.g., "(DFRobot Beetle ESP32-C3)", "(ESP32-S3-Box)", "(ESP32C3 Dev Module)", "(LOLIN S3)", "(WiFiduino32S3)", etc.)

Or you might see only the port name (e.g., "COM42", "/dev/cu.usbmodem211410", "/dev/ttyACM0") in the menu, without any label after it.

Yes this is correct.

I see the following options:-

None of these options "work" that is they all fail with the error message shown in my last post.

Thanks

That is because none of those are the port of the Nano ESP32 board. You can verify this by performing the following procedure:

  1. Close the Tools menu if it is open.
    ā“˜ This is necessary because Arduino IDE only updates the menu at the time it is opened, so you won't see changes to the ports in real time while you have it open.
  2. Unplug the Nano ESP32 board from your computer.
  3. Open the Tools > Port menu.

You will now see that all three of those ports are present even when you don't have the Nano ESP32 connected to your computer. This is because they are the computer's internal serial ports, not in any way related to Arduino boards.


Have you successfully uploaded sketches to this board at some time in the past? Or is this a brand new board that has never had a sketch successfully uploaded?

I ask because one potential cause of the "no port" problem you are experiencing is that the specific sketch program running on the board is causing it to not produce a USB CDC serial port (which might either be an expected result of the program, or due to a bug in the code). But if it is a factory fresh board then we can eliminate that as a possible cause.