Q: Atmega328 SMD programming with an adapter?

I never did any µP chip programming, so got a basic question: Can I simply get one of those 32TQFP adapters, fix it to my breadboard, and use an Arduino UNO to program it for later soldering onto a PCB?

I saw some pages were people used a DIP Atmega328 und programmed it via a breadboard, so I guess the SMD + adapter works the same. Or is my thought fundamentally wrong?

1TQFP48.jpg

Why not wait till you have it soldered up and then program it?

KirAsh4:
Why not wait till you have it soldered up and then program it?

I need some extra pins I guess. But what hardware do I need to get the Ardiuno Sketch onto the chip then? And does the chip needs a pre-installed bootloader?

flameproof:
I need some extra pins I guess. But what hardware do I need to get the Ardiuno Sketch onto the chip then? And does the chip needs a pre-installed bootloader?

You could do different directions:
a) Do as you've suggested, pre-program it then solder it on the board. However this also means that you can never change what's on it if you don't break out the necessary pins. And if somehow it gets corrupted, you can't re-burn the bootloader. You end up with the equivalent of a dead stick, which isn't really dead, except you have no way of reviving it.

b) You can break out the ICSP pins and use those to upload sketches to it any time you want. A bootloader is not required.

c) You can break out both the ICSP pins as well s the serial pins needed for FTDI and you can burn the bootloader once (through ICSP) then proceed to upload sketches to it using an FTDI programmer, again, any time you want.

I have done both of the latter two.

flameproof:

KirAsh4:
Why not wait till you have it soldered up and then program it?

what hardware do I need to get the Ardiuno Sketch onto the chip then?bootloader?

You need an ISP programmer: arduino isp programmer for sale | eBay

You need to connect five pins to your programmer (six if you want to be able to the programmer to provide +5V while programming).

The pins are: The three pins of the SPI bus, RESET and GND.

flameproof:
And does the chip needs a pre-installed bootloader?

No, you can program it via SPI.

(In fact this is how you upload the bootloader so you'll need an ISP programmer anyway...)