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).....

<key>ISPAVRU1</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.FTDI.driver.FTDIUSBSerialDriver</string>
<key>IOClass</key>
<string>FTDIUSBSerialDriver</string>
<key>IOProviderClass</key>
<string>IOUSBInterface</string>
<key>bConfigurationValue</key>
<integer>1</integer>
<key>bInterfaceNumber</key>
<integer>0</integer>
<key>bcdDevice</key>
<integer>1024</integer>
<key>idProduct</key>
<integer>52896</integer>
<key>idVendor</key>
<integer>1027</integer>
</dict>


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

/dev/cu.usbserial-ER051111
/dev/tty.usbserial-ER051111



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 :)

0 Comments:

Post a Comment

<< Home