Go Down

Topic: For IDE developper: is merge-sketch-with-bootloader.lua still functional? (Read 2744 times) previous topic - next topic

Jantje

I'm making major progress now :-) 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 :-( )

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
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

facchinm

Hi Jantje,

the merge-sketch-with-bootloader still applies to Yun boards (see https://github.com/arduino/YunWebUI/blob/master/usr/lib/lua/luci/controller/arduino/index.lua#L704 for the relevant webUI code).
However, on the IDE side, this gets called only for cores without a "remote_programmer" rule (code here https://github.com/arduino/Arduino/blob/8385aedc642d6cd76b50ac5167307121007e5045/arduino-core/src/cc/arduino/packages/uploaders/SSHUploader.java#L121).

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

Jantje

Thanks for the input. This is a whole new functionality to the ssh uploader I wasn't aware off.
But it makes sense :)
I guess I'll have to do some coding ;-)
Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Go Up