aboutsummaryrefslogtreecommitdiffstats
path: root/source/maple-ide-install.rst
blob: ce50c49fc4efd17a21d0c3668a957ced425b84a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
.. highlight:: c++

.. _maple-ide-install:

========================
 Maple IDE Installation
========================

If you still can't get the IDE installed after reading this page,
check the :ref:`troubleshooting page <troubleshooting>` for help with
some common problems. If all else fails, try our `forum`_, or `contact
us directly`_\ !

.. contents:: Contents
   :local:

Download
--------

Choose the correct version for your operating system:

.. list-table::
   :widths: 15 30 50
   :header-rows: 1

   * - Platform
     - Status
     - IDE Package
   * - Windows
     - Tested on 32bit Windows XP
     - `maple-ide-LATEST-windowsxp32.zip <http://static.leaflabs.com/pub/leaflabs/maple-ide/maple-ide-LATEST-windowsxp32.zip>`_ (about 75mb)
   * - Linux
     - Tested on Ubuntu 9.10 (64bit) and 10.04 (32bit)
     - `maple-ide-LATEST-linux32.tgz <http://static.leaflabs.com/pub/leaflabs/maple-ide/maple-ide-LATEST-linux32.tgz>`_ (about 30mb)

       `maple-ide-LATEST-linux64.tgz <http://static.leaflabs.com/pub/leaflabs/maple-ide/maple-ide-LATEST-linux64.tgz>`_ (about 30mb)
   * - Mac OSX
     - Tested on Snow Leopard 10.6 (64bit and 32bit)
     - `maple-ide-LATEST-macosx-10_6.dmg <http://static.leaflabs.com/pub/leaflabs/maple-ide/maple-ide-LATEST-macosx-10_6.dmg>`_ (about 40mb)

The package bundles together a compiler, an upload utility, a software
library, and a simple GUI text editor. All this software is `free and
open <http://fsf.org/>`_; we are grateful to the `Arduino
<http://arduino.cc/>`_, `CodeSourcery
<http://www.codesourcery.com/>`_, `GNU <http://gnu.org/>`_, and
`OpenMoko <http://openmoko.com/>`_ developers, as well as many others,
who allow us to reuse their software.

Installation
------------

* :ref:`Windows <maple-ide-install-windows>`
* :ref:`Linux <maple-ide-install-linux>`
* :ref:`OS X <maple-ide-install-osx>`

.. _maple-ide-install-windows:

Windows
^^^^^^^
First, extract all the files in the ZIP file to a suitable location on
your system (like your Desktop folder).  Next, you have to install
some drivers.  Sorry!

First, install DFU drivers (for uploading code to your Maple) using
the following steps.

1. Plug your Maple into the USB port.

2. Hit the reset button on your Maple (it's the small button at the
   bottom left, labeled RESET).  Notice that it blinks quickly 6 times,
   then blinks slowly a few more times.

3. Hit reset again, and this time push and hold the other button
   during the 6 fast blinks (the button is on the top right; it is
   labeled BUT). You can release it once the slow blinks start.

4. Your Maple is now in :ref:`perpetual bootloader mode
   <troubleshooting-perpetual-bootloader>`.  This should give you a
   chance to install the DFU drivers.

5. Windows should now prompt you for some drivers. In the top level
   directory of the Maple IDE, point Windows to
   :file:`drivers/mapleDrv/dfu/`.

Next, install serial drivers (for communicating with your Maple using
serial over USB).

1. Reset your Maple and allow it to exit the bootloader (wait for the
   slow blinking to stop).  The Maple will next start running whatever
   program was uploaded to it last. (New Maples will start running the
   test program we upload to them before shipping them to you).

2. Once Maple is running some user code, Windows should prompt you for
   more drivers. Point windows to :file:`driver/mapleDrv/serial`.

You can now run the Maple IDE by double-clicking on the
:command:`maple-ide` program from within the extracted IDE directory.

.. _maple-ide-install-linux:

Linux
^^^^^

.. _maple-ide-install-java:
.. note::

   The IDE is written in Java and requires a compatible runtime (JRE).

   If you don't have one, they're usually pretty easy to install.  Sun
   Java 1.6 and OpenJDK 1.6 are known to work, and runtimes mostly
   compatible with Sun Java 1.5+ should probably get the job done.

   To install Java, try using your distribution's software packaging
   tool and search for "JRE" or "java". On Debian-based systems
   (including Ubuntu) you can try to install the OpenJDK 1.6 JRE
   with::

     $ sudo aptitude install openjdk-6-jre

Extract the tarball to an appropriate location (like your home
directory or desktop).

Make sure you have a Java runtime (JRE) installed; if you can run
:command:`java` from the shell, you should be fine.

Next, run the script :file:`install-udev-rules.sh` in the extracted
IDE directory.  It will ask for root permissions.  You now need to
restart udev::

  sudo /etc/init.d/udev restart

This will grant members of the group ``plugdev`` read/write access to
Maple devices over USB.  Make sure that you are in that group.  (For
more information on why this is part of the install process, see the
:ref:`Unix toolchain quickstart <toolchain-udev>`).

To run the Maple IDE, run :command:`maple-ide` from the shell, or
double-click on it if your window system supports it.

Feel free to put the IDE directory wherever you want.  As long as you
leave its internal structure unchanged, things should be fine.

.. _maple-ide-install-osx:

OS X
^^^^

Double-click on the :file:`.dmg` file you downloaded to mount the disk
image.  From the mounted image, drag and drop the Maple IDE icon into
your computer's Applications folder.

To run the Maple IDE, double-click the :command:`Maple IDE`
application you dragged into your computer's :file:`Applications`
folder.