File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -115,16 +115,43 @@ PB03 **Yes** **Yes** **Yes** **Yes**
115
115
116
116
Setup
117
117
-----
118
- Install required compiler packages:
118
+
119
+ An ARM compiler is required for the build, along with the associated binary
120
+ utilities. On Ubuntu, these can be installed as follows:
119
121
120
122
.. code-block :: shell
121
123
122
124
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
123
125
sudo apt-get install gcc-arm-embedded
124
126
127
+ On Arch Linux the compiler is available for via the package
128
+ ``arm-none-eabi-gcc ``.
129
+
130
+ For other systems, the `GNU Arm Embedded Toolchain <https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads >`_
131
+ may be available in binary form.
132
+
133
+ The latest available package from team-gcc-arm-embedded is used to produce the
134
+ binaries shipped by AdaFruit. Other compiler versions, particularly older
135
+ ones, may not work properly. In particular, the ``gcc-arm-none-eabi `` package
136
+ in Debian Stretch is too old.
137
+
138
+ The compiler can be changed using the ``CROSS_COMPILE `` variable when invoking
139
+ ``make ``.
140
+
125
141
Building
126
142
--------
127
143
144
+ Before building the firmware for a given board the MicroPython cross-compiler
145
+ must be built; it will be used to pre-compile some of the built-in scripts to
146
+ bytecode. The cross-compiler is built and run on the host machine, using:
147
+
148
+ .. code-block :: shell
149
+
150
+ make -C mpy-cross
151
+
152
+ This command should be executed from the root directory of this repository.
153
+ All other commands below should be executed from the ports/atmel-samd/ directory.
154
+
128
155
To build for the Arduino Zero:
129
156
130
157
.. code-block :: shell
You can’t perform that action at this time.
0 commit comments