8000 Merge pull request #841 from dhylands/teensy-README · sparkfun/circuitpython@90fad65 · GitHub
[go: up one dir, main page]

Skip to content

Commit 90fad65

Browse files
committed
Merge pull request adafruit#841 from dhylands/teensy-README
Update teensy README.md file
2 parents ca6d75f + 76dd7e1 commit 90fad65

File tree

1 file changed

+58
-28
lines changed

1 file changed

+58
-28
lines changed

teensy/README.md

Lines changed: 58 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,58 @@
1-
# Build Instructions for Teensy 3.1
2-
3-
Currently the Teensy 3.1 port of Micro Python builds under Linux and not under Windows.
4-
5-
The tool chain required for the build can be found at <https://launchpad.net/gcc-arm-embedded>.
6-
7-
Downlaod the current Linux *.tar.bz2 file. Instructions regarding unpacking the file and moving it to the correct location
8-
as well as adding the extracted folders to the enviroment variable can be found at
9-
<http://eliaselectronics.com/stm32f4-tutorials/setting-up-the-stm32f4-arm-development-toolchain/>
10-
11-
## Previous Instructions Shown Below (no longer valid)
12-
13-
This assumes that you have TeensyDuino installed and set the ARDUINO environment
14-
variable pointing to the where Arduino with TeensyDuino is installed.
15-
16-
```
17-
cd teensy
18-
ARDUINO=~/arduino-1.0.5 make
19-
```
20-
21-
To upload micropython to the Teensy 3.1.
22-
23-
Press the Program button on the Teensy 3.1
24-
```
25-
make upload
26-
```
27-
28-
Currently, the python prompt is through the USB serial interface.
1+
# Build Instructions for Teensy 3.1
2+
3+
Currently the Teensy 3.1 port of Micro Python builds under Linux and not under Windows.
4+
5+
The tool chain required for the build can be found at <https://launchpad.net/gcc-arm-embedded>.
6+
7+
Downlaod the current Linux *.tar.bz2 file. Instructions regarding unpacking the file and moving it to the correct location
8+
as well as adding the extracted folders to the enviroment variable can be found at
9+
<http://eliaselectronics.com/stm32f4-tutorials/setting-up-the-stm32f4-arm-development-toolchain/>
10+
11+
In order to download the firmware image to the teensy, you'll need to use the
12+
downloader included with TeensyDuino. The following assumes that you have
13+
TeensyDuino installed and set the ARDUINO environment variable pointing to the
14+
where Arduino with TeensyDuino is installed.
15+
16+
```bash
17+
cd teensy
18+
ARDUINO=~/arduino-1.0.5 make
19+
```
20+
21+
To upload micropython to the Teensy 3.1.
22+
23+
Press the Program button on the Teensy 3.1
24+
```bash
25+
sudo ARDUINO=~/arduino-1.0.5/ make deploy
26+
```
27+
28+
Currently, the Python prompt is through the USB serial interface, i.e.
29+
30+
```bash
31+
minicom -D /dev/ttyACM0
32+
```
33+
34+
## TIPS
35+
36+
### Install 49-teensy.rules into /etc/udev/rules.d
37+
If you install the 49-teensy.rules file from http://www.pjrc.com/teensy/49-teensy.rules
38+
into your ```/etc/udev/rules.d``` folder then you won't need to use sudo:
39+
```bash
40+
sudo cp ~/Downloads/49-teensy.rules /etc/udev/rules.d
41+
sudo udevadm control --reload-rules
42+
```
43+
Unplug and replug the teensy board, and then you can use: ```ARDUINO=~/arduino-1.0.5/ make deploy```
44+
45+
### Create a GNUmakefile to hold your ARDUINO setting.
46+
Create a file call GNUmakefile (note the lowercase m) in the teensy folder
47+
with the following contents:
48+
```make
49+
$(info Executing GNUmakefile)
50+
51+
ARDUINO=${HOME}/arduino-1.0.5
52+
$(info ARDUINO=${ARDUINO})
53+
54+
include Makefile
55+
```
56+
GNUmakefile is not checked into the source code control system, so it will
57+
retain your settings when updating your source tree. You can also add
58+
additional Makefile customizations this way.

0 commit comments

Comments
 (0)
0