For testing stand alone projects, I often build a
minimalist setup on a breadboard with a 328P with an Uno configured as an ISP programmer. And I always deviate from the instructions because otherwise things just don't work. And this is where you guys come in.
The minimalist setup is just the 328P on a breadboard, no external clock. However, I have never been able to make that work. I've made sure everything is wired up correctly, the only thing missing is the crystal and caps. However, whenever I try to burn the bootloader provided for that setup, the IDE fails telling me it's not the right chip, recheck connections or use -F to bypass check. NOTE: Yes, I am specifically picking the bootloader that you download from that page, it's listed as '
ATmega328 on a breadboard (8 MHz internal clock)' in the IDE.
However, as soon as I add a crystal circuit, or just an oscillator, everything works like a charm. Bootloader burns and sketches run. I can even remove the external clock after burning the bootloader and it continues to work as expected. HOWEVER, if I tried to re-burn the bootloader, it will fail again and I have to add the external clock back in. I have tried this both with DIP as well as TQFP packages, same results. It refuses to burn the bootloader till there's a crystal in the circuit. (side note: soldering tiny wires on a TQFP for the external oscillator is a P.I.T.A.!!)
Has anyone else experienced this? Technically, and according to the instructions, one should be able to burn that bootloader without any external components, yet I'll be damned if I can get that to work. I get all of my ICs from Mouser or Digikey (I suspect a lot of you are doing the same.)
So, what's going on?