# Issue burning bootloader on ATMEGA328PB with 1.8432Mhz crystal

**URL:** <https://forum.arduino.cc/t/issue-burning-bootloader-on-atmega328pb-with-1-8432mhz-crystal/1301321>\
**Category:** Uploading\
**Created:** [September 13, 2024, 3:09pm UTC](https://forum.arduino.cc/t/issue-burning-bootloader-on-atmega328pb-with-1-8432mhz-crystal/1301321 "2024-09-13T15:09:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dconnhssl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dconnhssl/32/1098591_2.png) [@dconnhssl](https://forum.arduino.cc/u/dconnhssl)\
**Post date:** [September 13, 2024, 3:09pm UTC](https://forum.arduino.cc/t/issue-burning-bootloader-on-atmega328pb-with-1-8432mhz-crystal/1301321/1 "2024-09-13T15:09:59Z")

</div>

Hi, I'm using an AVRISP-MKII to problem a board I've made. This time I'm trying to use a 1.8432Mhz external crystal to keep power down with the benefit of better UART compatibility.

I'm using MINICORE (External 1.8432 Mhz, 1.8V BOD, LTO disabled, 328PB with AVRISP mkii (minicore) programmer.

The first time I try to run the "Burn Bootloader" (so set the fuses) I see good messages in the output: (some of the messages): -  
Device signature = 0x1e9516 (probably m328pb)  
1 bytes of lock written  
reading input file "0b11110110" - writing efuse (1 bytes):  
reading input file "0b11010111" - writing hfuse (1 bytes):  
input file 0b11111111 contains 1 bytes -1 bytes of lfuse verified

But then, after this, I get this message: -  
stk500v2\_command(): command failed  
stk500v2\_program\_enable(): bad AVRISPmkII connection status: Unknown status 0x00  
Double check connections and try again, or use -F to override this check.

After this I never seem to be able to communicate with the ATMEGA328PU again - it's like it's bricked.

I've been trying to see if the problem is the speed the AVRISPmkII is trying to write to the ATMEGA with the low speed crystal (by changing the -B option in the avrdude CLI command - but no options (e.g. -B 4) make any difference

Does anyone have any idea what state I'm getting the ATMEGA328PB into and how to correctly program the chip with a 1.8432Mhz clock configuration ?

thank you very much,

Derek

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [September 13, 2024, 3:48pm UTC](https://forum.arduino.cc/t/issue-burning-bootloader-on-atmega328pb-with-1-8432mhz-crystal/1301321/2 "2024-09-13T15:48:52Z")

</div>

You must ensure that the ISP programmer clock speed is less that 1/4 of the CPU clock speed. 250 kHz would be a good choice.

As an aside, lowering the clock speed does not accomplish much in the way of power saving, because it simply takes that much longer to do whatever is required. Effective use of sleep modes is almost always a better approach.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [March 12, 2025, 3:49pm UTC](https://forum.arduino.cc/t/issue-burning-bootloader-on-atmega328pb-with-1-8432mhz-crystal/1301321/3 "2025-03-12T15:49:10Z")

</div>

Closed on March 12, 2025, 3:49pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
