For IDE developper: is merge-sketch-with-bootloader.lua still functional?

I'm making major progress now :slight_smile: and I'm starting to use my arduino eclipse plugin to upload the sketches.
When doing a upload with the yun one could call merge-sketch-with-bootloader.lua to add the bootloader to the sketch.
From what I can see the arduino IDE is not doing this for the yun shield. However the merge-sketch-with-bootloader.lua script is still available (and my plugin calls it :frowning: )

I looked at the content of merge-sketch-with-bootloader.lua and there is no "selection of the board" so I think it always adds the same bootloader.

So my guess is that merge-sketch-with-bootloader.lua is still the old one and should have been replaced with a "do nothing" script for backwards compatibility.

Best regards
Jantje

Hi Jantje,

the merge-sketch-with-bootloader still applies to Yun boards (see YunWebUI/index.lua at master · arduino/YunWebUI · GitHub for the relevant webUI code).
However, on the IDE side, this gets called only for cores without a "remote_programmer" rule (code here Arduino/SSHUploader.java at 8385aedc642d6cd76b50ac5167307121007e5045 · arduino/Arduino · GitHub).

Since the latest AVR core include such rule, the "sketch+bootloader" hex is automatically uploaded so there is no need to merge the bootloader again on the Linux side

Thanks for the input. This is a whole new functionality to the ssh uploader I wasn't aware off.
But it makes sense :slight_smile:
I guess I'll have to do some coding :wink: