Skip to content
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

urboot bootloaders in MiniCore only for 1 frequency external crystal #272

Open
hwvern opened this issue Nov 4, 2023 · 4 comments
Open

Comments

@hwvern
Copy link

hwvern commented Nov 4, 2023

I can't find the different bootloaders for 16MHz en 20MHz external crystals in the packages/MiniCore/hardware/avr/3.0.0/bootloaders/urboot/atmega328p/ folders. On Github of StefanRueger they can be found both, and they seem to differ.

@MCUdude
Copy link
Owner

MCUdude commented Nov 4, 2023

If you download the entire urboot.hex repo and unzip it, it occupies over 70 GB with more than 5 million files. That's way too much to bundle with MiniCore, so I've only added the ones this core will use though Arduino, and in the future, PlatformIO.

The reason why you can't find different bootloaders for 16 and 20 MHz is because there isn't any! The bootloader is utilizing autobaud, which automatically adjusts to the host (Avrdude) baudrate. When you have a bootloader that can do this, there's no need to have separate bootloaders for 16 and 20 MHz.

@hwvern
Copy link
Author

hwvern commented Nov 4, 2023

It only works with a the 20Mhz 328p. I copied the 16Mhz version and renamed it, and now it also works for this version. Issue #271 is then solved. Comparing both from Stefan's github showed difference.

@MCUdude
Copy link
Owner

MCUdude commented Nov 4, 2023

It only works with a the 20Mhz 328p

What only works at 20 MHz? The Urboot bootloader that's being used if you burn the bootloader when the 16 MHz option is selected?

Can you enable verbose upload in the IDE settings and post the output log when you burn the bootloader, and when you try to upload your program using the bootloader?

@hwvern
Copy link
Author

hwvern commented Nov 4, 2023

I was wrong; it works with 16Mhz, but not with 20MHz. I burned again with an Nano as ISP, and then uploaded a sketch.
Burn_bootloader on 16MHz 328p.txt
Burn_bootloader on 20MHz 328p.txt
Upload sketch 16MHz 328p.txt
Upload sketch 20MHz 328p.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants