Atmega328pb dead?

18 views
Skip to first unread message

Scott Baker

unread,
Nov 20, 2024, 4:43:45 PM11/20/24
to dorkbotpdx-blabber
Hi,

I made a few custom circuit boards that use an atmega328pb.
Most of these boards programmed OK, but one fails verification.

I can set the fuses on this (bad) atmega328pb.
It's only the flash programming that fails.
I am using an AVRISP mkII programmer (not using the bootloader)

I asked google and checked the various things that were suggested.
e.g. I checked the clock and reset pins and those look OK
also I have checked the lock fuses and those are also OK.
It's an SMT part so the high-voltage programmer reset won't work

Is there anything I can do to revive this part.
Or is it just dead and needs to be replaced.

73,
Scott

>> here are the programming error messages:
---- cut here ----

avrdude -v -patmega328pb -cstk500v2 -Pusb -Uflash:w:hfrx.ino.hex:i 

Writing | ##################################################
Reading | ################################################## 

avrdude avr_verify() 
        device 0xff != input 0x0c at addr 0x0000 (error)
        device 0xff != input 0x94 at addr 0x0001 (error)
        device 0xff != input 0x3b at addr 0x0002 (error)
        device 0xff != input 0x02 at addr 0x0003 (error)
        suppressing further verification errors
avrdude do_op() error: verification mismatch

avrdude done.  Thank you.


Tom Moxon

unread,
Nov 20, 2024, 4:50:29 PM11/20/24
to dorkbotpd...@googlegroups.com

Can you lift just pin 1 and then try the high-voltage programmer reset?
If you're going to have to perhaps replace it anyway...

--
You received this message because you are subscribed to the Google Groups "dorkbotpdx-blabber" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dorkbotpdx-blab...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dorkbotpdx-blabber/2b29abbb-603c-4e81-8847-a9a130c4f0a5n%40googlegroups.com.

Scott Baker

unread,
Nov 20, 2024, 8:12:38 PM11/20/24
to dorkbotpdx-blabber
Hi Tom,

I thought that you only need HV programming if the fuses are messed up.
And my fuses look OK

avrdude: reading efuse memory ... 0xf7
avrdude: reading hfuse memory ... 0xd9
avrdude: reading lfuse memory ... 0x62
avrdude: reading lock  memory ... 0xff

>> Can you lift just pin 1 and then try the high-voltage programmer reset?
Pulsing the RST pin to 12V just enters HV programming mode, I'm not sure it does more than that
There are additional steps required in order to e.g. reset the flash memory
and I don't have easy access to all the required pins.

Regards,
Scott

Scott Baker

unread,
Nov 21, 2024, 2:11:11 AM11/21/24
to dorkbotpdx-blabber
Reply all
Reply to author
Forward
0 new messages