My preferred programmer. It just works without problems and even very fast (writing 32 KiBytes in a little more than 6 seconds). It's default SCK clock is so fast that many of my AVRs can't handle it, therefore I have to use the -B 2 option.
Wiring:
STM32F103 | AVR ISP |
---|---|
PB13 (26) | SCK |
PB14 (27) | MISO |
PB15 (28) | MOSI |
PA8 (29) | RESET |
On my FastUSBasp clone, I am using the 6 pin variant.
I am using the firmware from here but made some modifications: The original has the PGM LED connected to PC13, but that pin is unsuitable for driving LED (refer to datasheet) so I changed it to PB10.
Attention, the compiled binary is in the src/ directory, NOT in the firmware directory.