Closed MCUdude closed 3 years ago
Was probably fixed by https://github.com/arduino/arduino-cli/pull/1017 . Did you try the latest prerelease version?
Was probably fixed by #1017 . Did you try the latest prerelease version?
Nope, I haven't. Will do now!
Unfortunately, but the problem still occurs. This is the sketch I'm using to test this. It's an old Optiboot chaucer sketch I've trimmed down to be just the right size to trigger this bug. Just remove a few lines in the array to get the size below the "limit"
Can you paste the verbose compilation output? And arduino-cli --version
too. Thx
I don't have arduino-cli installed. All I have is the latest nightly IDE (1.8.14) whith arduino-cli bundled (I guess)
So when I run arduino-cli --version
, I get
-bash: arduino-cli: command not found
Where in the install can I find arduino-cli?
EDIT: I did found arduino-builder
.
By executing arduino-builder -version
I got version 1.5.4.
@MCUdude you are on the wrong repo IDE 1.8.14 does not bundle the CLI, but since the mechanics are the same this might be an issue with CLI as well. Would you be so kind to download our Alpha IDE and try that? We'll be releasing a new version of this tomorrow, but it's worth giving it a shot https://github.com/arduino/arduino-pro-ide#nightly-builds
Sorry, I believed arduino-cli was bundled with the latest IDE. And the fact that I got search results for with_bootloader
in the arduino-cli repo made me even more sure.
I just downloaded the Latest Pro IDE (nightly), and I can confirm that *with_bootloader.hex is in fact generated when the sketch size is larger than 65536 bytes. Atleast on Windows. So I guess this bug relates to arduino-builder, not arduino-cli
arduino-builder
is regularly rebuilt upon arduino-cli
, so next java IDE will have the patch included :wink:
arduino-builder is regularly rebuilt upon arduino-cli, so next java IDE will have the patch included 😉
Awesome! Do you have an idea when the next IDE release (1.8.14) will be? The reason why I'm asking is that I'm not sure I should patch MightyCore and MegaCore to use the non .with_bootloader.hex file as a temporary workaround or not. After all, the .with_bootloader files are kinda useful, because you don't wipe the bootloader when you're uploading using a programmer. This is something that could be useful for the official Arduino AVR boards as well IMO 🙂
@facchinm any hints? 😉
I just pushed the updated arduino-builder
to master, so it should produce the hourly builds in a couple of hours. Would you mind testing it and reporting if it works fine? It would be a great speedup for release :wink:
I just pushed the updated arduino-builder to master, so it should produce the hourly builds in a couple of hours. Would you mind testing it and reporting if it works fine? It would be a great speedup for release 😉
Thank you! I'll give it a try tonight and report back
@facchinm I just downloaded the latest nightly, and it does generate *.with_bootloader.hex now for sketches > 65536 bytes now. Horray!
@facchinm another unrelated issue related to the nightly build that I'm not sure where to report is that the Avrdude version that's bundled with the nightly build is not up to date, and does not support the 32U4 based mEDBG programmer (found on the UNO Wifi Rev2). The fix is to install the ATmega megaAVR boards package, but why bundle an "old" Avrdude version with the IDE in the first place?
The nightly bundles just the classic AVR core and its dependencies, so it is expected for avrdude
to just support the bundled targets. As you correctly stated, any additional or third party core that requires an updated version any tool will download and use it alongside the core files :slightly_smiling_face:
Original issue here.
At least for AVR platforms, if the size of the compiled exceeds 65536 bytes, the [sketchname.ino].with_bootloader.hex file is not generated. The reason why I'm stressing this is because MightyCore and MegaCore uses this file actively to prevent wiping the bootloader when uploading using a programmer
Here I'm compiling for Arduino MEGA 2560:
Files in the
/var/folders/6l/ypg6qbw172v1s4vtt6g990tw0000gn/T/arduino_build_435714/
folder:Here is another example where the sketch is just two bytes larger: