Hi, I've been doing some work on making my own "arduino" compatible board using SMD version of Atmega168 20AU (the same as used on Arduino Nano). I have been able to solder it perfectly, so regarding the size, I love this chip. But, I had some problems uploading program. At first I used only USBtinyISP to upload the sketch like described here, without using bootloader. It worked, let's say. But the program was about at 1/10 of it's speed (for example, blink sketch with 100ms delays in between worked with a delay of approximately 1s). Then I wanted to upload the bootloader and then everything came to a stop. It just wouldn't upload the bootloader: avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check. After trying this, I couldn't even upload the sketch, so whatever I try, I get this message. (remember, I was able to upload the sketch before trying to upload the bootloader).
My question is: has anyone dealed with this kind of problem, or at least used this kind of Atmega in he(she)'s own project and made it work?