ATA -> ISP



>How I built an stk200 that operates off an ide channel.










1
   


> An electrical design with all the trickeyness to work off an ide cable as an stk200 parallel port programmer (less detection bits)













2
   


> The no-way-this-gonna-work rapid development, this is my copout style of point to point wiring stuff on the back of veroboard with the power lines done properly with heavier wire. Last image is with a quick loopback test jumper













3
   


> Trick linux into creating a parallel port with the right base address. To do this, unload the parport_pc module
rmmod partport_pc
Then do a force load with the new io address, in my case 0x170
modprobe parport_pc io=0x170 irq=none,none,none
Yes, the kernel should tell you your crazy and this probably wont work.














4
   


> Use avrdude as normal, specifying parport0 as your parallel port

freebee3:~# avrdude -p m32 -U lfuse:w:0xe2:m -U hfuse:w:0xd8:m

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9502
avrdude: reading input file "0xe2"
avrdude: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of lfuse written
avrdude: verifying lfuse memory against 0xe2:
avrdude: load data lfuse data from input file 0xe2:
avrdude: input file 0xe2 contains 1 bytes
avrdude: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of lfuse verified
avrdude: reading input file "0xd8"
avrdude: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.00s

avrdude: 1 bytes of hfuse written
avrdude: verifying hfuse memory against 0xd8:
avrdude: load data hfuse data from input file 0xd8:
avrdude: input file 0xd8 contains 1 bytes
avrdude: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.00s

avrdude: verifying ...
avrdude: 1 bytes of hfuse verified

avrdude: safemode: Fuses OK

avrdude done.  Thank you.














5
   


> Marvel :)













6
   


> Well if you don't gloat whats the point!?