Sunday, March 26, 2006

AVR ISP programmer on the Mac

For anyone using a Mac for AVR development, just thought I'd say I've managed to get an ISPAVRU1 from ERE CO., LTD. to work with OS 10.4

It uses a standard FTDI driver but ERE use their own Device id (0xCEA0 or 52896 ). I simply modified the Info.plist file in
/System/Library/Extensions/FTDIUSBSerialDriver.kext/Contents/ to contain the following extra key in the right place (under IO kit personalities).....


If the driver is loaded correctly you should be able to see something like the following in your /dev/ directory.


I use this command line with avrdude to talk to it. :)
avrdude -p m169 -P /dev/cu.usbserial-ER051111 -c avrisp2 -t

I'd make a complete modified driver package but I can't be bothered figuring out how to use the pax archiver to re wrap things back uip again.

Hope someone finds this useful :)

Sunday, March 05, 2006

dos 2 unix converter

quick script to convert win32 txt to unix CRLF -> LF

for file
perl -pi.bak -e 's/\r\n?/\n/g;' $file

Quick Backup

Quick backup command. thought I'd put it here before i forget it. just gzips and tars everythingin directory.

tar zcvf ../backup`date +%y%m%d%H%M%S`.tgz .