(home)

Arduino

Do you want to learn more about Arduino in New Zealand?

My projects

My notes

Shields

Answers

##############################################################

direct168.name=direct168

direct168.upload.protocol=stk500
direct168.upload.maximum_size=14336
direct168.upload.speed=19200
direct168.upload.using=usbtinyisp

direct168.bootloader.low_fuses=0xff
direct168.bootloader.high_fuses=0xdd
direct168.bootloader.extended_fuses=0x00
direct168.bootloader.path=atmega168
direct168.bootloader.file=ATmegaBOOT_168_diecimila.hex
direct168.bootloader.unlock_bits=0x3F
direct168.bootloader.lock_bits=0x0F

direct168.build.mcu=atmega168
direct168.build.f_cpu=16000000L
direct168.build.core=arduino

and you see a message in your syslog output like this:

java.lang.UnsatisfiedLinkError: ...Applications/arduino-0013/Arduino 13.app/Contents/Resources/Java/librxtxSerial.jnilib:  thrown while loading gnu.io.RXTXCommDriver  
[LaunchRunner Error] processing.app.Base.main(String[]) threw an exception:
java.lang.UnsatisfiedLinkError: ...Applications/arduino-0013/Arduino 13.app/Contents/Resources/Java/librxtxSerial.jnilib: 

Here's a new fix to this issue:

Arduino 13.app has an option for "Open in 32 Bit Mode" when viewed with Get Info from the Finder, if you select it then you will no longer receive this error.

Here's a old fix to this issue:

then you probably need to replace the librxtxSerial.jnilib in:

arduino-0013/Arduino\ 13.app/Contents/Resources/Java/

with the librxtxSerial.jnilib version here.

To do so (I would suggest making a backup copy of the application first):

# Run Terminal.app

# Type this (assumes you have installed Arduino into your home Applications directory.):

curl -o ~/Applications/arduino-0013/Arduino\ 13.app/Contents/Resources/Java/librxtxSerial.jnilib http://iharder.sourceforge.net/current/java/librxtxSerial.jnilib

Update: To get the IDE to upload successfully over USB you will also need to do the following in the terminal:

sudo mkdir /var/lock
sudo chmod 777 /var/lock 

I do not know what the security implications—if any—are of this.

Bootloader

I discovered today that what's referred to as "the Arduino bootloader" isn't actually Arduino-specific (well, it is, and it isn't) but, the key point is that you can upload any .hex file you produce (whether it's by the IDE, C, asm or whatever). The "Arduino-ness" is provided entirely by the libraries included when your sketch is compiled. This is significant because if you have a hardware/software project you're wanting to make usable within Arduino-land you can start by testing it works on the Arduino board. Something like... Learning About Arduino AVRUSB perhaps. :-)

As an "In System Programmer"

Distributor

Alternative forms

References / Links

Notebook

. 18 August 2007 .

1. Received Arduino Decimilia board from Little Bird Electronics. Definitely worth waiting a couple of weeks to get the new revision of the board. Useful revised features:

2. For future reference: Example blink without delay, Low power Arduino discussion

3. Forum posts: Bad URL on warning sticker, Update needed for Mac OS X tutorial (fixed)

. 21 August 2007 .

1. Successfully created optocoupler-controlled LED circuit (without Arduino). Started documenting learning about using optocouplers.

code@rancidbacon.com