How to set SCK for STK500_v2 or USBASP ?

View: New views
2 Messages — Rating Filter:   Alert me  

How to set SCK for STK500_v2 or USBASP ?

by vaclavpe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I started experimenting with avrdude and two programmers hardware - STK500_v2 and USBASP. But the programming is terribly slow. Is there any parameter for avrdude command line to set SCK period ? For example, if I have 1MHz internal clock, I want to set SCK=4us. If I use 16MHz clock, I want to set SCK=0.4us manually. Is it possible to do it somehow (like it is in AvrStudio) ?

How avrdude decides which SCK period can be used ?

Thank you in advance,
Vaclav


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev

Re: How to set SCK for STK500_v2 or USBASP ?

by Joerg Wunsch :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahoj Vaclave,

> I started experimenting with avrdude and two programmers hardware -
> STK500_v2 and USBASP. But the programming is terribly slow. Is there
> any parameter for avrdude command line to set SCK period ? For
> example, if I have 1MHz internal clock, I want to set SCK=4us. If I
> use 16MHz clock, I want to set SCK=0.4us manually. Is it possible to
> do it somehow (like it is in AvrStudio) ?

Option -B4, at least for stk500v2 (I'm not sure about USPasp).

> How avrdude decides which SCK period can be used ?

STK500 and AVRISPmkII store the last SCK clock period used in an
EEPROM, and use that as a default next time.

--
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)


_______________________________________________
avrdude-dev mailing list
avrdude-dev@...
http://lists.nongnu.org/mailman/listinfo/avrdude-dev