Two easy ISP Questions

I recently bought a USBTiny programmer. When I use it with REL 22 of the IDE it takes "forever" to load the bootloader - about a minute or better. I think I read somewhere that there is a switch or something to make it load much faster. If that is true, can someone tell me how to change boards.txt or whatever to change this.

Having put the bootloader on with the USBTiny, is there a simple way to also load a sketch also using the USBTiny? I need to keep the bootloader.

Thanks,
Sparks

If the USBTiny implements the STK500 protocol it should look enough like the Arduino bootloader that you can use it to load sketches without any changes. If it implements a different protocol there is an entry in boads.txt that says ".upload.protocol=stk500" which you an change to the protocol your ISP uses.

Thanks John, but I think I'm still missing something.
What I want to do is:
1- plug in the USBTiny
2- start the IDE and open a sketch
3- pick burn bootloader and burn it
4- click the uplaod button and load the sketch (keeping the bootloader)

I am OK up till step 4, it uploads, doesn't run correctly, and cant upload again with the FTDI

I was trying this entry in boards.txt

##############################################################

atmega328ut.name=ATmega328 - via USBTinyISP

atmega328ut.upload.protocol=stk500
atmega328ut.upload.maximum_size=30720
atmega328utupload.speed=19200

atmega328ut.bootloader.low_fuses=0xFF
atmega328ut.bootloader.high_fuses=0xDA
atmega328ut.bootloader.extended_fuses=0x05
atmega328ut.bootloader.path=atmega
atmega328ut.bootloader.file=ATmegaBOOT_168_atmega328.hex
atmega328ut.bootloader.unlock_bits=0x3F
atmega328ut.bootloader.lock_bits=0x0F
atmega328ut.upload.using=usbtinyisp

atmega328ut.build.mcu=atmega328p
atmega328ut.build.f_cpu=16000000L
atmega328ut.build.core=arduino

To ad to John's answer the isptiny must then use the serial connector not the isp connectors to upload the sketch.

Sparks:
I am OK up till step 4, it uploads, doesn't run correctly, and cant upload again with the FTDI

Could you be more specific? Run the upload in Verbose mode (hold down Shift when you click on Upload) and let us know what avrdude command(s) are being issued.

atmega328utupload.speed=19200

There's a period missing there. Might explain why FTDI uploads stop working.

To ad to John's answer the isptiny must then use the serial connector not the isp connectors to upload the sketch.

Oh, if this is true than I can't do what I want to. Seems like you should be able to load a sketch from the IDE using a programmer and the ISP connector - but maybe not. (I wanted to avoid loading a hex file with command line args.)

John, fixed the missing ".". Thanks. No help. In step 4 above, the sketch loads, but doesn't run like it normally does. (long story). More importantly, the sketch must have written over the bootloader because trying to load a sketch normally (with FTDI cable) doesn't work after trying step 4.

Sparks:
atmega328utupload.speed=19200

Shouldn't this be 57600?

tim7:

Sparks:
atmega328utupload.speed=19200

Shouldn't this be 57600?

I think that's right. The other boards that use the "ATmegaBOOT_168_atmega328.hex" bootloader use it at 57600:
Arduino Duemilanove or Nano w/ ATmega328
Arduino Pro or Pro Mini (5V, 16 MHz) w/ ATmega328