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
Add 8MHz external crystal for 328P (as in the Pro Mini 3.3V) #168
Comments
Hello, I made the same fix. |
If I'm not mistaken I flashed the optiboot_atmega328.hex, since I used boards-1.6.txt. I downloaded everything using the xml file, so that one was the included bootloader. |
Thanks! optibootlowpower33.name=Optiboot LowPower 1.8++V 8MHz optibootlowpower33.build.board=AVR_UNO optibootlowpower33.upload.tool=arduino:avrdude optibootlowpower33.bootloader.tool=avrdude optibootlowpower33.bootloader.low_fuses=0xFF But this does not work. I have to find a reason... |
Are you on arduino <1.6? If not, you should mimic the boards-1.6.txt file, not the boards.txt. You will see that the syntax is quite different from yours (which is the older one) Also.. check the baud rate; The "optiboot_atmega328.hex" was compiled for a 16MHz atmega328p and 115200 b/s, so you specify 57600 as baud rate (it thinks he's going twice the speed, but it is not, so your pc has to slow down). The "optiboot_atmega328_pro_8MHz.hex", on the other side, COULD need 115200. Verify with a working configuration |
I`m on IDE 1.6.6 from arduino.cc |
I can not run optiboot on ATmega 328p with External oscillator 8MHz 3.3V. |
Wait, I used optiboot with arduino 1.6.6 and atmega328p with external oscillator 8MHz 3.3V, so I'm sure you can.
You are done. After this launch arduino ide, flash the bootloader with an external programmer, connect to the serial port and yiou can upload the sketches |
What about: The 28-pin and 32-pin CPUs uses "optiboot_atmega328.hex" with various upload speed: 57600 and 115200. So, is "optiboot_atmega328.hex" support various baudrate? |
Yeah, sorry, I was using a 28 pin atmega.
|
Ha-ha, I agree with you! Thanks for good idea about upload speed reduction on 8Mhz. |
I too just tried for the first time to bootload a 328p (8MHz, 3.3V), but it took me quite some time to figure out I'd have to change the BAUD rate in the boards.txt from 115200 to 57600 (using [Optiboot] Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328). It looks like I'm not alone with this issue. Is there a chance it will be changed? ;-) |
@fra87 So just to recap here, to use a 8MHz external crystal for the ATmega328P you only need to flash the standard Optiboot bootloader and then use the correct settings from the boards.txt (e.g. for Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328P or Adafruit Feather 328P) to push the sketches from the Arduino IDE? |
@Phoenix1747 Uh, it's been quite a long time since I did this. In any case, the process depends on which version of arduino ide you are using.
If you have arduino 1.6 or greater, it MAY be possible that your boards file is called boards.txt, even if it is the boards-1.6.txt file. Just compare it with the boards.txt file or the boards-1.6.txt file in the repository. In order to do the modification, open the file and go to line 43. As you can see, the section has the comment
So, at line 43 paste the following code:
You will now have the possibility to select "8MHz (ext)" as speed |
Ok thanks! Shouldn't it work though if I just use a custom configuration like this for the Arduino IDE and then just burn the bootloader and write all the sketches to it with this config:
or in addition I could try to use the Arduino Pro Mini 3.3V (8MHz) board from the standard Arduino boards.txt, right?
the IDE will then flash ATmegaBOOT, not optiboot obviously, but if it works :D |
IDE version? |
Latest, 1.8.5. |
Hello
It would be great if you add the support to the 8MHz external crystal for, at least, the 328P. Why, if you just have the 8MHz internal clock? Because boards like the Pro Mini 3.3V have a 8MHz external crystal...
You just have to add these lines
optiboot28.menu.mhz.8MHzExt=8MHz (ext)
optiboot28.menu.mhz.8MHzExt.build.f_cpu=8000000L
optiboot28.menu.mhz.8MHzExt.bootloader.low_fuses=0xFF
optiboot28.menu.mhz.8MHzExt.upload.speed=57600
in the proper section of the boards.txt file
The text was updated successfully, but these errors were encountered: