-
Notifications
You must be signed in to change notification settings - Fork 184
Latest release not exporting compiled binary with bootloader #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a windows related issue and was fixed in d869a50. Expect a new release soon. Meanwhile, you can just look at the Arduino output to find out where the hex file is originally stored. Just turn on verbose output in the IDE settings. |
Thanks for the reply. I've tried that already. |
I just merged the changes in d869a50 (in my windows environment) but still have the same problem. |
Verbose output:
|
Just worked for me too with an empty sketch. I'll see if I can narrow down the problem... |
It's working now but I'm afraid I can't tell you what the problem was. It's a big file, currently 8042 lines of code (I know, I know, I need to break it into smaller files) with a number of libraries. Uncommented them, problem persisted. I've done a diff check between my original version and the version which gives me the bootloader and there are no differences. Very strange. |
So I went back to my original file and still had the same problem.
Luckily, they're all called by one line in the main loop. So if I comment out that line, it exports with the bootloader just fine. However, if I close the IDE, then open it again, the same thing happens. I have to comment out that one line. Export. Uncomment it. And Export again. So, I've been able to find a work around, but I can't find anything that's causing the problem. |
@glyndavidson can you try with the previous MightyCore release (v2.0.5) and see if it makes a difference? |
could it be this? |
Possibly. I'm not familiar with Go or the arduino-cli project, so I can't tell what changes that commit brought. @glyndavidson does it work if you export the compiled binary without bootloader? If so, I'm pretty sure @JAndrassy is correct. |
v2.0.7 is available through boards manager. |
Just updated to Arduino IDE 1.8.13 and MightyCore 2.0.6
It used to be the case that when I exported the compiled binary, I would get two hex files, one with bootloader and one without.
Now, I'm only getting the none bootloader version.
If I turn on verbose compiling, I can see this command:
C:\Users\Glytc\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.0.6/scripts/delete_merged_output.bat true C:\Users\Glytc\AppData\Local\Temp\arduino_build_796178\sketch.ino.with_bootloader.hex
If I open up the delete_merged_output.bat file and comment out the line
if "%1" == "false" del "%2"
Then I would expect to find this file:
C:\Users\Glytc\AppData\Local\Temp\arduino_build_796178\sketch.ino.with_bootloader.hex
Right?
But it's not there.
Board: ATMega1284
Clock: External 12Mhz
Bod: Bod Disabled
EEPROM: EEPROM Retained
Compiler LTO: LTO Disabled
Variant: 1284p
Pinout: Standard Pinout
Bootloader: Yes (UART0)
Port: COM6
The text was updated successfully, but these errors were encountered: