Feature request: add 'Upload Only' functionality

Dear Arduino Team,

Could you please consider adding feature 'Upload Only' and allow its mapping to a shortcut ?

Currently, the 'Upload' does the usual 15seconds dependency search and after that, Project.elf is built. Every time. It ignores that all binary objects are older than Project.elf so there is no point in rebuilding it.

Thank you
Frank

1 Like

I think you can do this already using arduino-cli upload, on github

1 Like

Splendid, thanks

arduino-cli.exe -v upload --fqbn arduino:avr:mega --port COM18 c:\Users\frank\Documents\Arduino\Blink\

arduino-cli_upload

Is there a way to to map this command to a keyboard shortcut ?

If you have a keyboard that has any macro keys, you can assign it to the macro key using the devices software. If not, if you search

How to map commands to keyboard shortcuts

on the internet, this will show you a number of examples, which should be helpful for what you’re trying to do.

1 Like

Ah sorry, I know about those Apps you talk about. I meant shortcut inside Arduino IDE.

"If you have a keyboard that has any macro keys"
I dont.

Possible related: feat: can skip verify before upload by dankeboy36 · Pull Request #2397 · arduino/arduino-ide · GitHub

1 Like

in Arduino IDE, if you go to file -> advanced -> keyboard shortcuts, and locate the command you are looking for, hover over the command, and on the left, you will see 'Edit keybinding'. Then you can connect that command to a keybinding in arduino IDE

1 Like

"on the left, you will see 'Edit keybinding'"
Great, Thanks. It seems IDE does not provide means to create my own command i.e. 'Upload only'. There are 'Ctrl+U' and 'Ctrl+Shift+U' commands which seems to execute the same command. I wonder how much work it would be to add 'arduino-upload-nobuild-sketch'. Are these commands stored in some config file I could edit ?
image

Thanks. My IDE 2.3.2 seems to not support that property
image

Ah sorry, its an add-on. Will install that.

No I wont, it is beyond my understanding.

As an aside, these commands are not the same. Ctrl+U uploads using the USB interface whilt Ctrl+Shift+U upload using an external programmer

I see. From my beginner's perspective the IDE behaviour seems the same - what I see in the 'Output' view. May I ask for more information about 'USB interface' vs 'external programmer' ?

If you look at a Uno or Nano you will see a 6 pin header, This is the ICSP header and allow you to connect an external programmer such as a USBASP device to the board.

The actual programming device is selected in the IDE Tools/Programmer menu. With the programmer connected to the header you can then use Sketch/Upload Using Programmer from the IDE menu

Why would you want to do this ?
One reason is that it allows you to upload a program to a board that does not have a bootloader program on it and hence no serial interface. One important use of the ICSP interface is to upload the bootloader itself

1 Like

Thanks for taking the time and trying it. Here is the official documentation on how to help with the Arduino IDE tester builds.

Hi,
"Thanks for taking the time and trying it."
Sure, no problem. Here
image

the 3rd step says click "Checks". Where is it on the page ? I dont see it. Thank you.

Thanks for your persistence.

The Checks are per pull request. When you navigate to the PRs page (Pull requests · arduino/arduino-ide · GitHub), you will see all open pull requests. You have to select one of them to see Checks.

If you have any remarks on the feature or if something does not work, please comment on the PR not here. I can adjust it. If you like my contribution, you can leave a comment on the PR that works for you.

1 Like

Great, what am I supposed to do here. I expect some .exe that would apply a patch on my currently installed IDE. Or how does it work?

I appreciate you sticking to this thread.

You can save a lot of time just by reading the docs: arduino-ide/docs/contributor-guide/beta-testing.md at main · arduino/arduino-ide · GitHub

  1. From the list on the left side of the page, click on "Arduino IDE".
  2. Scroll down to the "Artifacts" section of the page that opens.

If you have technical issues, I am here to assist you.

1 Like

At last...I got it installed and arduino.upload.autoVerify = false is doing what I want. Amazing. Thank you.

And thank you very much for patience explainig how to beta test. Please implement 'Compile current file in the editor' next.