Chri's BLOG

Rants, Reviews, Thoughts and Info

Can’t program those new ATMEGA328 chips for your Arduino?

If you’ve recently purchased some new ATMEGA328P chips for your Arduino project, and find as soon as you pop them in, you get a no communication error with avrdude, you probably forgot to set the fuses.

The Arduino uses different settings than the default fuses the ATMEGA328P is shipped with.

No worries!

You will need a cheap USBASP (available from Amazon), I recommend the LC Technology 2.0 one, to reprogram the chip.

Use this simple command in a batch file every time:

avrdude -v -B 10 -c usbasp -p m328p -U lfuse:w:0xFF:m -U hfuse:w:0xDE:m -U efuse:w:0x05:m

Run the batch file, with it all hooked up and you’ll be ready to go with the Arduino!

Enjoy

August 12, 2021 - Posted by | Computers

No comments yet.

What do you think? Leave your thoughts!