[on Wed 13 of Jan., 2010 21:49 EST, by Nic]
Having checked out R115, I get:
nic$ ./appbuild.sh
Creating Arduino distribution for revision 0017...
Fix the revision number in Base.java or todo.txt
[on Wed 13 of Jan., 2010 21:49 EST, by Nic]
Having checked out R115, I get:
nic$ ./appbuild.sh
Creating Arduino distribution for revision 0017...
Fix the revision number in Base.java or todo.txt
[on Wed 13 of Jan., 2010 22:00 EST, by Nic]
I changed the first line of todo.txt to arduino 0018, and it seemed to build the app, but the compiler is unhappy:
(Edit: I'm running 10.6.2)
nic$ ./appbuild.sh
Creating Arduino distribution for revision 0018...
Setting up directories to build under Mac OS X
Copying Arduino.app...
cp: ../shared/libraries: No such file or directory
Copying examples...
Extracting reference...
Extracting avr tools...
Extracting arm tools...
Move dfu-util
Building processing.core...
Building the PDE...
src/processing/app/macosx/Platform.java:134: warning: deprecation openURL(java.lang.String) in com.apple.eio.FileManager has been deprecated
com.apple.eio.FileManager.openURL(url);
^
src/processing/app/macosx/ThinkDifferent.java:53: warning: deprecation Application() in com.apple.eawt.Application has been deprecated
application = new com.apple.eawt.Application();
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 warnings
Done.
Cleaning file boogers...
The app in work runs, so I loaded up the blinky example and hit upload. I got:
Compiling with arm-none-eabi
Compiling core arm-none-eabi
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/adc.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/adc.c.o
dyld: Library not loaded: /opt/local/lib/libmpfr.1.dylib
Referenced from: /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/../libexec/gcc/arm-none-eabi/4.3.3/cc1
Reason: image not found
arm-none-eabi-gcc: Internal error: Trace/BPT trap (program cc1)
Please submit a full bug report.
See for instructions.
[on Wed 13 of Jan., 2010 22:39 EST, by bbradlyn]
yeah we just ran into this too. For some reason, the arm tools for mac require that mpfr be installed. This can be obtained through Macports
Unfortunately, this library does not yet play nicely with snow leopard.
[on Thu 14 of Jan., 2010 15:53 EST, by CollinMel]
While taking a stab at getting around the mpfr snow leopard problem, I realized I have another version of it I'd installed via fink - "libmpfr1-64bit". I swapped out the unruly libmpfr.1.dylib in /usr/local/lib with the other file of the same name from fink's /sw/lib.
When I tried to compile again in the app it gave a new error regarding libgmp, prompting me to do another swap with libgmp.3.5.0.dylib.
Now thanks to that bit of hacky guesswork, I can now upload a sketch from the IDE.
So I'm assuming the 64-bit library was instrumental here (?)
… also assuming I should decide on & specify where I keep me libs ;)
[on Fri 15 of Jan., 2010 00:04 EST, by poslathian]
Theres now an arm2.zip file in the build/macos directory. I cant personally vouch that this will work for you, but it was added with the purpose of being the snow leapord build of arm-gcc and dfu-util...should solve the above problems.
simply mod the make.sh (and dist.sh if you use that) to unzip arm2 instead of arm.. and run ./make.sh (or dist.sh)...
let me know if that works for you snow leapord users
If so, ill build and post the binaries for leapord and snow leapord.
[on Fri 15 of Jan., 2010 04:57 EST, by Nic]
The effort is much appreciated, but we're still not there. A lot closer, though - it looks like it's compiling, but dfu-util is missing. I couldn't find it in arm.zip either. Incoming scrool:
Compiling with arm-none-eabi
Compiling core arm-none-eabi
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/adc.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/adc.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/ext_interrupts.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/ext_interrupts.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/exti.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/exti.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/gpio.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/gpio.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/nvic.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/nvic.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/pwm.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/pwm.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/stm32f10x_flash.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_flash.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/stm32f10x_it.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_it.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/stm32f10x_nvic.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_nvic.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/stm32f10x_rcc.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_rcc.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/syscalls.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/syscalls.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/systick.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/systick.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/time.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/time.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/timers.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/timers.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/usart.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/usart.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/usb.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/usb.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/util.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/util.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/wiring.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/wiring_analog.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_analog.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/wiring_digital.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_digital.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/wiring_shift.c -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_shift.c.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -fno-rtti -fno-exceptions -Wall -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/HardwareSerial.cpp -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/HardwareSerial.cpp.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -fno-rtti -fno-exceptions -Wall -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/HardwareUsb.cpp -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/HardwareUsb.cpp.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -fno-rtti -fno-exceptions -Wall -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/math.cpp -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/math.cpp.o
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -fno-rtti -fno-exceptions -Wall -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/Print.cpp -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/Print.cpp.o
Compiling any libs with arm-none-eabi
Compiling the sketch with arm-none-eabi
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -I/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple -c -Os -g -mcpu=cortex-m3 -mthumb -march=armv7-m -nostdlib -ffunction-sections -fdata-sections -Wl,--gc-sections -DF_CPU=72000000L -DVECT_TAB_ROM -DARDUINO=18 -fno-rtti -fno-exceptions -Wall -c /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp -o/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.o
Linking...
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-gcc -T/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/lanchon-stm32-user-rom.ld -L/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/cores/maple/lanchon-stm32 -mcpu=cortex-m3 -mthumb -Xlinker --gc-sections --print-gc-sections --march=armv7-m -Wall -o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.out /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/adc.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/ext_interrupts.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/exti.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/gpio.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/nvic.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/pwm.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_flash.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_it.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_nvic.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/stm32f10x_rcc.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/syscalls.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/systick.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/time.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/timers.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/usart.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/usb.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/util.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_analog.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_digital.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/wiring_shift.c.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/HardwareSerial.cpp.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/HardwareUsb.cpp.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/math.cpp.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/Print.cpp.o /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.o -L/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-objcopy -v -Obinary /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.out /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.bin
out' elf32-littlearm to `/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.bin' binary
/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/bin/arm-none-eabi-size --target=binary -A /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.bin
bin :
section size addr
.data 5400 0
Total 5400
Binary sketch size is reported above. Check it against a 100000 byte maximum)
Loading via dfu-util
~$ /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/dfu-util -a 1 -R -d 0110:1001 -D/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/examples/Digital/blink/applet/blink.cpp.bin
java.io.IOException: Cannot run program "/Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/dfu-util": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.debug.Uploader.executeUploadCommand(Uploader.java:126)
at processing.app.debug.DFUUploader.uploadViaDFU(DFUUploader.java:100)
at processing.app.debug.DFUUploader.uploadUsingPreferences(DFUUploader.java:54)
at processing.app.Sketch.upload(Sketch.java:1506)
at processing.app.Sketch.exportApplet(Sketch.java:1446)
at processing.app.Sketch.exportApplet(Sketch.java:1401)
at processing.app.Editor$46.run(Editor.java:2260)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.(UNIXProcess.java:53)
at java.lang.ProcessImpl.start(ProcessImpl.java:91)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 10 more
[on Fri 15 of Jan., 2010 05:58 EST, by poslathian]
We really need to get a Mac running in a VM...3 separate local mac machines all obscured this problem by not being "fresh" enough...that is, dfu-util had already been installed but forgotten...ugh. Anyway, will add that to the repo for rev 118. Thanks for the pointing it out! (and sorry for the miss!)
[on Fri 15 of Jan., 2010 10:40 EST, by bbradlyn]
the missing dfu-util bug should be fixed as of revision 118. For some reason, when i first committed arm.zip it was not included. sorry about that
[on Sun 17 of Jan., 2010 00:38 EST, by Nic]
Still no dice. Having checked out R120:
dfu-util isn't in arm2.zip, so I assume I'm meant to be using arm.zip? I initially tried with arm2.zip, and copied dfu-util over from arm.zip to Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/. That gave me:
dyld: Library not loaded: @executable_path/../Resources/libusb-0.1.4.dylib
Referenced from: /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/dfu-util
Reason: image not found
So I changed make.sh back to arm2.zip
It compiles, runs dfu, waits to claim the interface, I unplug it and plug it back in, hit upload again and it looks like it's uploading, but the code doesn't execute.
With arm2.zip, the second dfu run looks like:
Loading via dfu-util
~$ /Users/nic/Desktop/leaflabs-read-only/trunk/maple/build/macosx/work/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/dfu-util -a 1 -R -d 0110:1001 -D/Users/nic/Desktop/blink/applet/blink.cpp.bin
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
Opening USB Device 0x0110:0x1001...
Found Runtime: 0x0110:0x1001 devnum=0, cfg=0, intf=0, alt=1, name="UNDEFINED"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x0400
bytes_per_hash=108
Starting download: ################################################## finished!
error resetting after download: usb_reset(ResetDevice): no connection to an IOService
state(8) = dfuMANIFEST-WAIT-RESET, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
While downloading, the LED on pin 13 flashes at high frequency. Once finished, and when I hit reset or connect the power, the pin 13 LED flashes 5 times at about 8Hz, then 5 times at about 1Hz.
top of page
Reply
[on Sun 24 of Jan., 2010 18:32 EST, by jessb]
Nic, sorry it took so long to get back to you on this; it took us awhile to figure out what was wrong. There were apparently still some bugs in the arm-gcc toolchain for Snow Leopard. They should be fixed now in the repo. You do indeed want to be using arm2.zip. The installer should be able to tell whether or not you're running Snow Leopard and use the appropriate .zip. It should also be pulling dfu-util out of arm.zip so don't worry about that. Let us know if this works for you -- fingers crossed that we've worked all the kinks out this time!
[on Mon 25 of Jan., 2010 20:01 EST, by Nic]
Damn, I thought I'd posted a response, but this forum logs you out silently and it looks like it didn't take.
I have a blinking LED, but your build script is still broken. After running appbuild.sh, it correctly identifies the system as 10.6, but it puts all the binaries in:
work/Arduino.app/Contents/Resources/Java/hardware/tools/arm-none-cs-tools/
when the Arduino.app expects them in
work/Arduino.app/Contents/Resources/Java/hardware/tools/arm/
Renaming "arm-none-cs-tools" to "arm" got me up and going. So far I've only tried the blink example.
[on Tue 26 of Jan., 2010 10:51 EST, by jessb]
*facepalm* So it does. Most recent commit should fix this. Thanks for continuing to work with us on this!
You must log in to post.