Last time I bought chips, only the Atmega328 was available instead of the Atmega328P, so I got a set. Unfortunately, loading the bootloader is not as straightforward. I figured out how to create a new board in the board file to use the Atmega328 instead of Atmega328P, but I'm not clear on how to modify the .conf file. It looks like its been changed since the posts I found here a few years ago. Now there's already an entry for the 328 with the correct signature and the 328P is a child of that entry. But it still says the signature doesn't match. What am I missing?
You might want to have a try with GitHub - MCUdude/MiniCore: Arduino hardware package for ATmega8, ATmega48, ATmega88, ATmega168, ATmega328 and ATmega328PB which should make the whole process very easy. However, it can be educational figuring this stuff out from scratch and sounds like you're well along with the process so if you want to continue in that direction then please do this:
- check the box next to File > Preferences > Verbose output during: > upload
- Tools > Burn Bootloader
- After the process fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
- Paste the error in a message here USING CODE TAGS(</> button on the toolbar).
This will give us more information to be able to help you out.
The verbose did the trick. The signature for the chip I was using was wrong, I tried another 328 from the batch and it worked perfectly. So with the changes to the .conf file, you do only need to create a new board file to use the 328.
i'm getting this error
"avrdude: stk500v2_ReceiveMessage(): timeout"
plzz help
Navinsss:
i'm getting this error
"avrdude: stk500v2_ReceiveMessage(): timeout"plzz help
What are you doing when you get this error? Are you uploading with an STK500v2 programmer? Bootloading?
Does your question have anything to do with the rest of this thread? (ie, use of atmega328 for standalone arduino)?