-
Notifications
You must be signed in to change notification settings - Fork 76
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
Block files with bootloader #26
Comments
To reflash the bootloader I use this tutorial: https://learn.sparkfun.com/tutorials/installing-an-arduino-bootloader |
And thank you for this amazing plugin! |
@benlye Marlin.ino.mega.hex
Marlin.ino.with_bootloader.mega.hex
http://www.microchip.com/forums/m1006173.aspx Now.. See in file with bootloader then start the bootloader part.. after the last line of file without BL. in Marlin.ino.with_bootloader.mega.hex
And test this part of file with bootloader in one hex to text converter:
Result Hex to text
|
@benlye |
I can see another way to do this, which wouldn't require decoding the hex data... We know which MCU the user has, and the datasheets tell us the start addresses of the flash bootloader section for each MCU we support, so we can just look for any matching lines. For example, an Atmega2560 supports 512, 1024, 2048, or 4096 word bootloaders, with 4096 being the default. The start address for each of those is 0x3FC00, 0x3F800, 0x3F000, and 0x3E000, with 0x3E000 being the default. In the Atmega2560 file with the bootloader we see this line: Which instructs that each subsequent data record should be offset by I'll work on a way to implement this check and throw a warning. It's should be fairly straight-forward. |
=D |
+1 Totally bricked my cr-10s because of this. Ordered an Arduino uno so i can reflash the bootloader. The fun never ends :) |
I've released v1.0.0 which will warn if 'bootloader' is in the hex file name. |
This issue has been automatically locked because there was no further activity after it was closed. Please open a new issue for any related problems. |
Block files with bootloader in name.
I tried sending a firmware with bootloader and it corrupted my card. After that the only solution was to write the bootloader again with another arduino.
Files without the bootloader work perfectly!
** Marlin.ino.with_bootloader.mega.hex
The text was updated successfully, but these errors were encountered: