Programming ATmega328 (without P)

Because of an endemic ATmega328P shortage I recently bought ATmega328. This should be fine for most applications, as far as I understand. However, Arduino IDE does not recognise it.

avrdude: Expected signature for ATmega328P is 1E 95 0F

         Double check chip, or use -F to override this check.

Wrong microcontroller found.  Did you select the right board from the Tools > Board menu?

The signature for ATmega328P seems to be is 1E 95 14, according to avrdude.conf.

I couldn't find ATmega328 in the board list.

What is the easiest strategy to program it in Arduino IDE? Another Board Manager? Adding something to avrdude.conf?

Thanks, but this board manager is just not working right. I have a ATmega328 at 5V and with external 16MHz resonator. When I used USBasp as a programmer, delays were about 20x too long. I also tried to burn bootloader and since then the chip is not working at all (there is no error on uploading). Also, one cannot choose between 5V and 3.3V. Is there any more reliable board manager?

If you force the bootloader on it, then I think you can use it as a normal Arduino Uno.
I have done that in the past, and perhaps that still works.

The board manager is the screen built into the Arduino IDE which allows you to install different board packages.

I have always found the Minicore boards package to be excellent, so I think you did something wrong.

If using an external 16MHz crystal/oscillator, you need to select that option before burning the bootloader with your USBasp. Then, when you upload sketches via serial, delays should be correct.

If you accidentally burn bootloader with the wrong external clock speed set, you have to connect a crystal/oscillator of the speed you incorrectly set, to be able to burn bootloader again to the speed you really wanted.

Correct. You don't need to. The atmega328 will run happily on either voltage at slower speeds, but needs 5V for higher speeds (>=16MHz).

It is working now. It seems that I had to upload bootloader first to get fuses right. But after the bootloader upload, chip was unresponsive for some time (no upload error, but chip was not working, I don't understand why.) But after a while it miraculously begun working properly.

Thanks for help.

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