Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - jcr

1
AVRDude / Programming an Attiny45 clocked at 32.768kHz
Does anyone know of a way to slow down a Bus Pirate's programming speed to or below 4kHz, so that it'll allow me to program an Attiny45 clocked with an external 32.768kHz crystal? Preferably one that doesn't involve a massive amount of coding in either avrdude or the Bus Pirate's firmware ;)

The slowest possible SPI speed of 30kHz is way too fast for this configuration and results in the dreaded "initialization failed, rc=-2" error, but luckily with a known cause this time. I've also tried an avrdude patch I ran across that implements avr programming through the raw wire protocol (avrdude patch #7723), but this bottoms out at 5kHz and still results in failures. Since I've only got a BPv4, the stk500 firmware also doesn't seem to be an option.

Right now I have to make do with a bsd parport programmer as a workaround (with -B 250 -i 1000), but this is a big hindrance in my development process (requires unplugging, walking to a different room, etc). I'd rather use my favorite little tool.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01162249136session_write_close ( )...(null):0
20.01182380728ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01192381504Database_MySQL->query( ).../DatabaseHandler.php:119
40.05412520240Database_MySQL->error( ).../Db-mysql.class.php:273