Uploading blocked

Hi everybody,

I met a problem:

I uploaded a sketch and everything was ok for this part.
I needed to change something in the code and try to upload it.
From this point, impossible to upload any sketch, the ''upload...'' message is block in IDE.
Yes the Port Com is the good one, yes I try to boot the board thousand time, yes the wire is good, it was the same when everything was working.
It's leonardo board, working with Win 11

Thanks a lot

Hi @fabsim

I'm not sure I understood correctly what you mean by this. Please provide a more detailed description to help me to understand it.

I can see ''uploading...'' and nothing happen...

Still not a clear description. I'll go ahead and assume you are using Arduino IDE 2.x and experiencing this bug:

I'll share the workaround:

  1. Select File > Quit from the Arduino IDE menus.
  2. Restart Arduino IDE.

Thanks for answer
Yes it is IDE 2.0 but it was the same with 1.8
The solution is working now uploading continue.
It's a other subject but i have the error:

Failed uploading: uploading error: exit status 1

In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.


:exclamation: NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.


Please do this:

  1. Select File > Preferences from the Arduino IDE menus.
  2. Uncheck the box next to Show verbose output during: compilation
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the </> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  10. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code tags before you add any additional text to your reply.
  12. Click the Reply button to post the output.

Ok thanks

Le croquis utilise 9538 octets (33%) de l'espace de stockage de programmes. Le maximum est de 28672 octets.
Les variables globales utilisent 311 octets (12%) de mémoire dynamique, ce qui laisse 2249 octets pour les variables locales. Le maximum est de 2560 octets.
avrdude: ser_open(): can't open device "\.\COM8": Acc�s refus�.

Failed uploading: uploading error: exit status 1

The "Access is denied" error happens when the port is open in another application.


Make sure you have selected the port of your Arduino board from the Tools > Port menu in Arduino IDE. It should be labeled "Leonardo" in the menu.


Make sure you don't have any other applications running that might have the port open (including even the Serial Monitor or Serial Plotter of Arduino IDE 1.8). Only one application can have a serial port open at a time.


Try restarting your computer. In rare occasions, a glitch causes the port to get stuck open. This is one possible cause of the "Access is denied" error. Restarting your computer restores the port to the normal working state and so fixes that particular cause of the error.

Ok thanks but i ever try to restart my computer. The port is the good one in tools selection. I will try again...

Hm, it's not working, the error appear and the port is the good one, restart my PC, change usb plug, etc. Yesterday everything worked great...

If you have the "Serial Monitor" tab open in the bottom panel of the Arduino IDE window, try closing it before uploading:

  1. Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close the tab:
    image
  2. Select Tools > Upload from the Arduino IDE menus.

Arduino IDE is designed to be able to upload even with Serial Monitor open and I don't have any specific reason to believe this is the cause of the error, but I don't have any other ideas so it is worth a try just in case.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.