[on Sat 26 of Dec., 2009 12:17 EST, by LarryP]
Greetings all,
Since I live near leafLab's lair, I was able to get my maple out of the mail/Fedex stream (thanks Andrew & Hadley!)
However, I haven't succeeded doing much with it. Does anybody have a How2 or "getting started" doc? Or even raw notes to get a Maple board doing something simple, e.g. blinking an LED/echoing chars on a serial port?
Among my confusions is how exactlyto get the Maple talking via USB connection. dfu-util was mentioned (by Andrew, I think), but I could use some pointers on when/how to use that to get the Maple talking. (Or does the USB connection get set up automagically -- if certain conditions are met. If so, what are those magic conditions?)
Thanks,
Larry
ursine @t gmail d0t c0m
======================================================================
The gory details (long):
Running Ubuntu 9.04 (JJ)
Packages installed:
subversion
Java/JRE
dfu-util
Downloaded from leaflabs.googlecode.com
build in .../maple/build/linux proceeds with only (minor I think) messages:
leaflabs-read-only/trunk/maple/build/linux$ ./make.sh
Setting up directories to build for Linux...
Copying examples...
Extracting reference...
Extracting JRE...
Building processing.core
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Done
The result in Arduino-like GUI. (Titled Arduino 18)
How to get my Maple talking isn't clear to me. (I'll try plug & pray....)
=================
After putting the gcc/relateb binaries on my PATH, building in trunk/build-box *almost* works, but seems to lack a suitable libc:
larry@larry-laptop:~/mapleStuff/leaflabs-read-only/trunk/build_box$ make
--
-- begin --
build/main.o build/maple_lib.o
arm-none-eabi-gcc (Sourcery G++ Lite 2009q1-161) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Linking: build/maple_build.elf
arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -mthumb-interwork -I. -O0 -ffunction-sections -fdata-sections -Wall -Wimplicit -Wcast-align -Wpointer-arith -Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=build/build/main.lst -I./stm32_lib -I./usb_lib -MD -MP -MF .dep/maple_build.elf.d build/stm32_lib/c_only_startup_user.o build/stm32_lib/cortexm3_macro.o build/main.o build/maple_lib.o --output build/maple_build.elf -nostartfiles -Wl,-Map=build/maple_build.map,--cref,--gc-sections -lc -lgcc -Tstm32_lib/c_only_md_RAM.ld
/home/larry/mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/4.3.3/../../../../arm-none-eabi/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
make: *** build/maple_build.elf Error 1
larry@larry-laptop:~/mapleStuff/leaflabs-read-only/trunk/build_box$
I tried using find, but that doesn't seem to turn up libc.a, libc.so or similar:
larry@larry-laptop:~$ find . -name 'libc.*' -print
larry@larry-laptop:~$
-
There are (too many!?!) files with similar names, but I have no clue if any are suitable substitutes for libc:
larry@larry-laptop:~$ find . -name 'libc*' -print
./mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/java/lib/i386/libcmm.so
./mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/hardware/cores/maple/lanchon-stm32/src/libcs3
./mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/hardware/cores/maple/lanchon-stm32/src/libcs3arm
./mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/hardware/cores/maple/lanchon-stm32/src/libcs3micro
./mapleStuff/leaflabs-read-only/trunk/maple/build/linux/work/hardware/cores/maple/lanchon-stm32/src/libcs3-lanchon-stm32
./mapleStuff/leaflabs-read-only/trunk/maple/hardware/cores/maple/lanchon-stm32/src/libcs3
./mapleStuff/leaflabs-read-only/trunk/maple/hardware/cores/maple/lanchon-stm32/src/libcs3arm
./mapleStuff/leaflabs-read-only/trunk/maple/hardware/cores/maple/lanchon-stm32/src/libcs3micro
./mapleStuff/leaflabs-read-only/trunk/maple/hardware/cores/maple/lanchon-stm32/src/libcs3-lanchon-stm32
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/libcs3-lanchon-stm32.a
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/src/libcs3
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/src/libcs3arm
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/src/libcs3micro
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/src/libcs3-lanchon-stm32
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/.svn/text-base/libcs3-lanchon-stm32.a.svn-base
./mapleStuff/leaflabs-read-only/trunk/library/stm32conf/lanchon-stm32/.svn/prop-base/libcs3-lanchon-stm32.a.svn-base
larry@larry-laptop:~$
Apologies for the long post,
Larry