Hey leafblowers. I hope this is the right place to post, as I am new to Maple and this forum.
I just got my board to today, and hurried home to hook it up and get it a-blinking.
As of now, I have yet to get it to upload the program. I would like to just check that I've done everything right, as I am certain that it should be possible with my setup.
I am running Ubuntu 10.4LTS on a standard PC.
I followed your quickstart guide at http://leaflabs.com/docs/maple/quickstart/ and followed the JRE installation instruction on http://leaflabs.com/docs/maple-ide/installation/.
running the terminal command to install JRE I decided not to continue (see below) because I was not sure what removing all those files would mean to rest of my system. Checking under "Ubuntu software center I could also see that "OpenJDK Java 6 Runtime" was already installed along with "openjdk-6-jre-lib", "openjdk-6-jre-headless" and "icedtea-6-jre-cacao". So I assumed that I had all the Java components I needed already.
******************* terminal text *******************
user@computer:~$ sudo aptitude install openjdk-6-jre
[sudo] password for user:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
amarok-common{u} amarok-utils{u} gobject-introspection{u}
java-wrappers{u} kde-icons-oxygen{u} kdemultimedia-kio-plugins{u}
libass3{u} libaudclient2{u} libaudcore1{u} libaudid3tag2{u}
libaudutil1{u} libbinio1ldbl{u} libboost-date-time1.38.0{u}
libboost-thread1.38.0{u} libcairo2-dev{u} libcddb2{u} libcelt0{u}
libcommons-cli-java{u} libcommons-lang-java{u} libdirectfb-dev{u}
libdirectfb-extra{u} libexiv2-5{u} libexpat1-dev{u} libfaad0{u}
libffado1{u} libfluidsynth1{u} libfontconfig1-dev{u} libfreebob0{u}
libfreetype6-dev{u} libglew1.5{u} libjline-java{u} libjpeg62-dev{u}
libkcddb4{u} libknotificationitem1{u} liblash2{u} liblastfm0{u}
liblog4j1.2-java{u} liblzma0{u} libmcs1{u} libmowgli1{u} libopenjpeg2{u}
libpixman-1-dev{u} libpng12-dev{u} libprojectm-data{u} libprojectm2{u}
libqt4-gui{u} libqt4-phonon{u} libqtscript4-core{u} libqtscript4-gui{u}
libqtscript4-network{u} libqtscript4-sql{u} libqtscript4-uitools{u}
libqtscript4-xml{u} libreadline5{u} libresid-builder0c2a{u} libsad2{u}
libsidplay2{u} libswt-cairo-gtk-3.4-jni{u} libswt-gnome-gtk-3.4-jni{u}
libswt-gtk-3.4-java{u} libswt-gtk-3.4-jni{u}
libswt-mozilla-gtk-3.4-jni{u} libsysfs-dev{u} libtag-extras1{u}
libx264-67{u} libxcb-render-util0-dev{u} libxcb-render0-dev{u}
libxfixes-dev{u} libxft-dev{u} libxml++2.6-2{u} libxrender-dev{u} lsb{u}
lsb-core{u} lsb-cxx{u} lsb-desktop{u} lsb-graphics{u} lsb-printing{u}
m4{u} ncurses-term{u} nvidia-185-kernel-source{u} nvidia-185-libvdpau{u}
pax{u} rhino{u} sdparm{u} wine-gecko{u} x11proto-fixes-dev{u}
x11proto-render-dev{u}
0 packages upgraded, 0 newly installed, 87 to remove and 11 not upgraded.
Need to get 0B of archives. After unpacking 73,5MB will be freed.
Do you want to continue? [Y/n/?] n
*************************************************************************
After this I downloaded the latest Linux version of the IDE: maple-ide-LATEST-linux32.tgz and unpacked to my desktop as suggested.
I opened the folder and ran the install-udev-rules.sh.
Then I run the IDE by double-clicking the maple-ide shell-script and selecting run in the following dialog.
In the IDE I select the blink sketch. I plug in my Maple board in the front USB port on my desktop computer and press the reset button, immediately followed by the "but" button to make it enter "perpetual bootloader mode" to give me enough time to upload a sketch.
I select "Tools -> Board -> LeafLabs R3 Maple to RAM", and "Tools -> Serial Port -> /dev/ttyS0" as my serial port - the only one available (when I am in normal "non-perpetual bootloader mode" I also have the option of /dev/ttyACM0, but I understand from this article: "http://leaflabs.com/docs/maple-bootloader/", that the CDC ACM is only used for user code).
After having pressed the "play" button to compile the blink sketch, I press the "upload" button, and the following gets printed in my IDE terminal window:
******************************************************
Going to build using 'make' (ARM)
Compiling core...
Compiling any libs...
Compiling the sketch...
running linker asynchronously...
running obj copy asynchronously...
running size asynchronously...
/tmp/build7589438001463521808.tmp/Blink.cpp.bin :
section size addr
.data 11056 0
Total 11056
Binary sketch size is reported above. Check it against a 17000 byte maximum.
Loading via dfu-util
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
Found it!
Cannot claim interface: could not claim interface 0: Operation not permitted
Opening USB Device 0x1eaf:0x0003...
Found Runtime: [0x1eaf:0x0003] devnum=0, cfg=0, intf=0, alt=0, name="UNDEFINED"
Claiming USB DFU Interface...
**************************************************
And then it hangs here forever..
Am I correct in assuming that I should be doing the right thing up until this point?
I also tried resetting the board, and _not_ entering perpetual bootloader mode.
When I upload the sketch with the /dev/ttyS0 device serial port selected I get:
**********************************************************
Going to build using 'make' (ARM)
Compiling core...
Compiling any libs...
Compiling the sketch...
running linker asynchronously...
running obj copy asynchronously...
running size asynchronously...
/tmp/build7589438001463521808.tmp/Blink.cpp.bin :
section size addr
.data 11056 0
Total 11056
Binary sketch size is reported above. Check it against a 17000 byte maximum.
Loading via dfu-util
Resetting to bootloader via DTR pulse
Searching for DFU device [1EAF:0003]...
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
Couldn't find the DFU device: [1EAF:0003]
************************************************
with he last three lines (five, including empty lines) appearing a few seconds later.
And when I select the /dev/ttyACM0 port I get the same as when in perpetual boot-loader mode. (which doesn't make sense to me, because I thought the CDC ACM port was for user code. But then again I have no clue really what's going on).
I know this turned out to be a very long and probably far too simple post for what you guys are doing at the moment, but I thought maybe someone else might have a similar problem, and be very new to this thing.
I am very stuck here, and would appreciate any help to get going again.
I tried to follow the quickstart guide as closely as possible, and I think I have a pretty standard setup. Is there something very obvious that I am missing here?
Best Regards,
Jakob