question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difficulties when burning bootloader with Arduino as ISP (Mini/Mighty/MegaCore)

See original GitHub issue

See MiniCore #115 for more details.

It’s impossible to set the upload baud rate for the bootloader when burning bootloader with Arduino as ISP. this is because ArduinoISP relies on upload_speed = 19200 to work. However, when this is specified, a bootloader with a baud rate of 19200 is always selected, no matter what board_upload.speed is defined to.

  • board_upload.speed should be used when doing “regular” uploads using -carduino as upload protocol (using a bootloader).
  • upload_speed should be used when the user is uploading using a programmer to upload, or setting the fuses/burning bootloader.

This is only an issue with programmers that uses a serial port and a baud rate to communicate with Avrdude. @ivankravets @valeros I guess it should be an easy fix.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MCUdudecommented, May 7, 2020

Not sure about this, board_hardware.uart option is mainly used with your cores and upload_flags option might be used for UART upload as well. Besides, in most cases burning fuses/bootloader is one-time operation, right?

OK, at least my idea is not thought through yet. We can leave this for now and focus on the other thing.

In the most cases, it’s not an option since board_upload.speed is always present (set by a user or default value from a board manifest).

Yes, that is right, sorry. Then I think we agree. Use board_bootloader.speed is present to get the correct bootloader file. If not, use board_upload.speed. OK?

0reactions
MCUdudecommented, May 8, 2020

Thank you! Will give this a try very soon. I’ll report back if I find any issues 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bootloder wont burn (arduino as isp)(solved)
I am having issues burnig the bootloader for the arduino uno. Tme IDE keeps giving me this error: avrdude: Yikes! Invalid device signature....
Read more >
Burn Bootloader | Troubleshooting Guide For Arduino
Instructions for burning the bootloader: Connect an ISP programmer to the ICSP header on your Arduino board. Select the target board from the...
Read more >
Arduino as ISP to Burn Bootloader on AVR Microcontroller
Step by step tutorial how to use Arduino Uno as ISP (In-system programming) to burn bootloader on Arduino Nano (ATmega 328) or Arduino...
Read more >
Burn a New Bootloader - Arduino Pro Mini - Instructables
There are a number of ways to burn a bootloader to an Arduino device, but the one I used (for convenience and speed)...
Read more >
Installing an Arduino Bootloader - SparkFun Learn
However, "ArduinoISP" will not work if it is selected. Finally, select Burn Bootloader. This will take the board you selected in the Arduino...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found