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 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:
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.
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:
Select File > Preferences from the Arduino IDE menus.
Uncheck the box next to Show verbose output during: ☑ compilation
Check the box next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt an upload, as you did before.
Wait for the upload to fail.
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.
Open a forum reply here by clicking the Reply button.
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.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
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�.
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.
If you have the "Serial Monitor" tab open in the bottom panel of the Arduino IDE window, try closing it before uploading:
Click the X icon on the "Serial Monitor" tab in the bottom panel of the Arduino IDE window to close the tab:
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.