I'm little confused. I don't have avrdude.conf in:
/opt/local/etc/avrdude.conf or in: /etc/avrdude/avrdude.conf Andrese-MBP:Blink Andres$ locate avrdude.conf /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf.bak /opt/local/var/macports/sources/rsync.macports.org/release/ports/cross/avrdude/files/patch-avrdude.conf.in.diff Could you send me your avrdude.conf file, so i can put it into /opt/local/etc/. For uploading to micaz avrdude.conf isn't used - right? PS. What do you think - I did something wrong in installing toolchain from git or is there a bug in the chain? /opt/local/etc/macports/sources.conf # MacPorts system wide sources configuration file # $Id: sources.conf 42662 2008-11-28 23:18:50Z [email protected] $ # To setup a local ports repository, insert a "file://" entry following # the example below that points to your local ports directory: # Example: file:///Users/landonf/misc/MacPorts/ports file:///Users/Andres/ports # The default MacPorts repository should always be tagged [default] # for proper functionality of various resources (port groups, mirror # sites, etc). If you switch it from the rsync:// URL, be sure to keep # it tagged [default]. # To prevent a source from synchronizing when `port sync` is used, # append [nosync] at the end as shown in this example: # Example: file:///Users/landonf/misc/MacPorts/ports [nosync] # NOTE: The port command parses source URLs in order and installs the # first occurrance when a port appears in multiple repositories. # So keep "file://" URLs above other URL types. # To get the ports tree from the master MacPorts server in California, USA use: # rsync://rsync.macports.org/release/ports/ # To get it from the mirror in Trondheim, Norway use: # rsync://trd.no.rsync.macports.org/release/ports/ # A current list of mirrors is available at http://trac.macports.org/wiki/Mirrors rsync://rsync.macports.org/release/ports/ [default] Is this correct conf file - toolchain is installed from your git not from anywhere else? Andres Vahter On 30.11.2009, at 18:33, Razvan Musaloiu-E. wrote: > Hi! > > On Mon, 30 Nov 2009, Andres Vahter wrote: > >> Hi, >> >> I'm using now Snow Leopard. >> I installed toolchain from: http://hinrg.cs.jhu.edu/git/?p=ports.git >> >> But I have the same problem with Iris: >> >> Andrese-MBP:Blink Andres$ make iris install.0 mib510,/dev/tty.usbserial >> mkdir -p build/iris >> compiling BlinkAppC to a iris binary >> ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow >> -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb >> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 >> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"Andres\" >> -DIDENT_HOSTNAME=\"Andrese-MBP.loc\" -DIDENT_USERHASH=0xb6e8c730L >> -DIDENT_TIMESTAMP=0x4b139a44L -DIDENT_UIDHASH=0xe22260dfL -fnesc-dump=wiring >> -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, >> components)' -fnesc-dumpfile=build/iris/wiring-check.xml BlinkAppC.nc -lm >> compiled BlinkAppC to build/iris/main.exe >> 2268 bytes in ROM >> 51 bytes in RAM >> avr-objcopy --output-target=srec build/iris/main.exe build/iris/main.srec >> avr-objcopy --output-target=ihex build/iris/main.exe build/iris/main.ihex >> writing TOS image >> tos-set-symbols build/iris/main.srec build/iris/main.srec.out-0 >> TOS_NODE_ID=0 ActiveMessageAddressC__addr=0 >> Could not find data section in build/iris/main.exe, aborting. >> Could not find symbol ActiveMessageAddressC__addr in build/iris/main.exe, >> ignoring symbol. >> Could not find symbol TOS_NODE_ID in build/iris/main.exe, ignoring symbol. >> installing iris binary using mib510 >> avrdude -cmib510 -P/dev/tty.usbserial -U hfuse:w:0xd9:m -pm1281 -U >> efuse:w:0xff:m -C/etc/avrdude/avrdude.conf -U >> flash:w:build/iris/main.srec.out-0:a >> make: avrdude: No such file or directory >> make: *** [program] Error 1 >> >> >> Except now it says No such file or directory instead of Command not found. >> There is something broken, but what? >> > > In macports the avrdude.conf is in /opt/local/etc/avrdude.conf. I just > committed a fix to the CVS. If you don't want to update you can solve the > error by adding the following line in your Makefile: > AVRDUDE_CONF=/opt/local/etc/avrdude.conf > > -- > Razvan ME > >> On 06.10.2009, at 9:49, Andres Vahter wrote: >> >>> Hi, >>> >>> I tried to install Null app to Iris to see if avrdude works. >>> >>> Make works fine: >>> Andrese-MBP:Null Andres$ make iris >>> mkdir -p build/iris >>> compiling NullAppC to a iris binary >>> ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow >>> -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb >>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 >>> -DIDENT_APPNAME=\"NullAppC\" -DIDENT_USERNAME=\"Andres\" >>> -DIDENT_HOSTNAME=\"Andrese-MBP.loc\" -DIDENT_USERHASH=0xb6e8c730L >>> -DIDENT_TIMESTAMP=0x4acae441L -DIDENT_UIDHASH=0x875b20c9L >>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' >>> -fnesc-dump='referenced(interfacedefs, components)' >>> -fnesc-dumpfile=build/iris/wiring-check.xml NullAppC.nc -lm >>> compiled NullAppC to build/iris/main.exe >>> 748 bytes in ROM >>> 4 bytes in RAM >>> avr-objcopy --output-target=srec build/iris/main.exe build/iris/main.srec >>> avr-objcopy --output-target=ihex build/iris/main.exe build/iris/main.ihex >>> writing TOS image >>> >>> Uploading to Iris doesn't work: >>> Andrese-MBP:Null Andres$ make iris install mib510,/dev/tty.usbserial >>> mkdir -p build/iris >>> compiling NullAppC to a iris binary >>> ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow >>> -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb >>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 >>> -DIDENT_APPNAME=\"NullAppC\" -DIDENT_USERNAME=\"Andres\" >>> -DIDENT_HOSTNAME=\"Andrese-MBP.loc\" -DIDENT_USERHASH=0xb6e8c730L >>> -DIDENT_TIMESTAMP=0x4acae48dL -DIDENT_UIDHASH=0xd74413d4L >>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' >>> -fnesc-dump='referenced(interfacedefs, components)' >>> -fnesc-dumpfile=build/iris/wiring-check.xml NullAppC.nc -lm >>> compiled NullAppC to build/iris/main.exe >>> 748 bytes in ROM >>> 4 bytes in RAM >>> avr-objcopy --output-target=srec build/iris/main.exe build/iris/main.srec >>> avr-objcopy --output-target=ihex build/iris/main.exe build/iris/main.ihex >>> writing TOS image >>> cp build/iris/main.srec build/iris/main.srec.out >>> installing iris binary using mib510 >>> avrdude -cmib510 -P/dev/tty.usbserial -U hfuse:w:0xd9:m -pm1281 -U >>> efuse:w:0xff:m -C/etc/avrdude/avrdude.conf -U >>> flash:w:build/iris/main.srec.out:a >>> make: avrdude: Command not found >>> make: *** [program] Error 127 >>> >>> Uploading to micaz works fine (Blink app): >>> Andrese-MBP:Blink Andres$ make micaz install.0 mib510,/dev/tty.usbserial >>> mkdir -p build/micaz >>> compiling BlinkAppC to a micaz binary >>> ncc -o build/micaz/main.exe -Os -fnesc-separator=__ -Wall -Wshadow >>> -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c -board=micasb >>> -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000 >>> -DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"Andres\" >>> -DIDENT_HOSTNAME=\"Andrese-MBP.loc\" -DIDENT_USERHASH=0xb6e8c730L >>> -DIDENT_TIMESTAMP=0x4acae6a4L -DIDENT_UIDHASH=0x8fcd8a2bL >>> -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' >>> -fnesc-dump='referenced(interfacedefs, components)' >>> -fnesc-dumpfile=build/micaz/wiring-check.xml BlinkAppC.nc -lm >>> compiled BlinkAppC to build/micaz/main.exe >>> 2052 bytes in ROM >>> 51 bytes in RAM >>> avr-objcopy --output-target=srec build/micaz/main.exe build/micaz/main.srec >>> avr-objcopy --output-target=ihex build/micaz/main.exe build/micaz/main.ihex >>> writing TOS image >>> tos-set-symbols build/micaz/main.srec build/micaz/main.srec.out-0 >>> TOS_NODE_ID=0 ActiveMessageAddressC__addr=0 >>> Could not find data section in build/micaz/main.exe, aborting. >>> Could not find symbol ActiveMessageAddressC__addr in build/micaz/main.exe, >>> ignoring symbol. >>> Could not find symbol TOS_NODE_ID in build/micaz/main.exe, ignoring symbol. >>> installing micaz binary using mib510 >>> uisp -dprog=mib510 -dserial=/dev/tty.usbserial --wr_fuse_h=0xd9 >>> -dpart=ATmega128 --wr_fuse_e=ff --erase --upload >>> if=build/micaz/main.srec.out-0 --verify >>> Firmware Version: 2.1 >>> Atmel AVR ATmega128 is found. >>> Uploading: flash >>> Verifying: flash >>> >>> Fuse High Byte set to 0xd9 >>> >>> Fuse Extended Byte set to 0xff >>> rm -f build/micaz/main.exe.out-0 build/micaz/main.srec.out-0 >>> >>> >>> I wonder why uploading works with micaz but not with Iris? They both have >>> allmost the same MCU. >>> >>> Andres Vahter >>> >>> >>> On 05.10.2009, at 21:00, Razvan Musaloiu-E. wrote: >>> >>>> Hi! >>>> >>>> On Mon, 5 Oct 2009, Themis Bourdenas wrote: >>>> >>>>> Hi, >>>>> >>>>> I've just tried the ports. It works now for the msp430, haven't tried the >>>>> avr yet. >>> >> >>
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
