-
-
Notifications
You must be signed in to change notification settings - Fork 398
bootloader gets destroyed every time #155
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
Which version of arduino-cli are you using? Please provide the arduino-cli commands you are using to compile and upload. |
command: probably version: |
Is the Arduino IDE uploading without the issue?
If you can test also the latest version of the cli (0.5.0) it would be great. |
I have the same issue, also with a SparkFun pro micro clone. I used a self compiled arduino-cli, commit 550179e |
@bjanders when you compile for a target board you also build a version of the firmware with included bootloader. essentially it becomes a two part operation in which you compile choosing to unfortunately I seem to have found an issue with this particular file in my case, which might be related to an old problem we had with CLI assembling the bootloader binary with the newly created hex. @cmaglie and I are going to investigate asap here's a recap of my actions for a sketch named
|
Thanks for the information! I verified that the method using What I did previously was according to https://arduino.github.io/arduino-cli/latest/getting-started/:
Will this work when the issue has been fixed? Is the problem only for avr:micro or other boards as well? |
@bjanders I remember we fixed it for the SAMD21 a while back, but I need someone to look into this |
I'm sorry, I'm not able to follow what you mean. Which discussion is related to using a programmer are you referring to? The problem I have, i.e the bootloader getting corrupted, manifests itself when I'm not using a programmer, but flashing using the USB bootloader. And it does not manifest itself when I flash with_bootloader.hex when I'm not using a programmer, but again using the USB bootloader. So in my case the issue is never related to a programmer. So, to be specific with an example. The following corrupts the bootloader:
My assumption is that the above should not corrupt the bootloader. (And I'm guessing it gets corrupted because the command will start writing on the bootloader region instead of the actual program region where I assume it is supposed to.) The following does not corrupt the bootloader, and the program works as expected:
(Guessing this works, since it will write in the same region as the first corrupting command, but this time it contains the bootloader as well, so it doesn't matter as long as you are ok with replacing the bootloader. I assume this should corrupt the program, as I assume this would write the bootloader in the program region if it wasn't for the bug.) Should this ticket be reopened, since it's still reproducible with the latest version from git? |
It seems I was wrong. Flashing with the above working command only worked as long as I kept it powered. |
…erns Make platform JSON schema regexes support property references
I can upload sketch, but once I do that the arduino stops getting detected by the computer.
I can fix it by burning arduino bootloader to it (arduino-ide seems to work fine), but if I upload sketch again the same thing happens.
My arduino is a clone of SparkFun pro micro.
The text was updated successfully, but these errors were encountered: