Software installation

From Rsewiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "==Software installation== ===Toolchain installation=== Install arduino 1.05 from http://arduino.cc/en/Main/OldSoftwareReleases (newer arduino versions is not supported - a...")
 
Line 14: Line 14:
 
  ./teensyduino.32bit
 
  ./teensyduino.32bit
  
It installes (only) as a merge with the arduino installed directory (arduino-1.0.5).
+
It installes (only) as a merge with the arduino installed directory (arduino-1.0.6).
  
 
From this installation we need only some hardware parts in
 
From this installation we need only some hardware parts in
  
  arduino-1.0.5/hardware/tools
+
  arduino-1.0.6/hardware/tools
  arduino-1.0.5/hardware/teensy/cores/teensy3
+
  arduino-1.0.6/hardware/teensy/cores/teensy3
  
 
===Teensy loader and udev rules===
 
===Teensy loader and udev rules===
Line 40: Line 40:
  
 
It consist of a series of directories but is missing the tools directory,
 
It consist of a series of directories but is missing the tools directory,
copy (or link) the arduino-1.0.5/hardware/tools directory to the regbot directory,
+
copy (or link) the ''arduino-1.0.6/hardware/tools'' and ''arduino-1.0.6/hardware/teensy/cores/teensy3'' directory to the regbot directory,
or set the TOOLPATH in the makefile.
+
or set the ''TOOLSPATH'' and ''COREPATH'' in the regbot ''Makefile''.
  
In the Makefile ensure that the first part is set reasonable, i.e. something like :
+
===Library changes===
  
# The name of your project (used to name the compiled .hex file)
+
In the ''teensy3'' directory I needed to add an include to get everything to compile
TARGET = regbot
+
 
# The teensy version to use, 30 or 31
+
in file teensy3/usb_serial.h add ''#include <core_pins.h>'' as in the list below:
TEENSY = 31
+
  #ifndef USBserial_h_
TEENSY_CORE_SPEED = 72000000
+
  #define USBserial_h_
OPTIONS = -DUSB_SERIAL -DLAYOUT_US_ENGLISH
+
   
# directory to build in
+
  #include <core_pins.h>
BUILDDIR = $(CURDIR)/build
+
  #include "usb_desc.h"
#************************************************************************
+
# Location of Teensyduino utilities, Toolchain, and Arduino Libraries.
+
# To use this makefile without Arduino, copy the resources from these
+
  # locations and edit the pathnames.  The rest of Arduino is not needed.
+
  #***********************************************************************
+
  # path location for Teensy Loader, teensy_post_compile and teensy_reboot
+
BASEPATH = .
+
TOOLSPATH = $(BASEPATH)/tools
+
  # path location for Teensy 3 core
+
COREPATH = $(BASEPATH)/teensy3
+
# path location for Arduino libraries (not needed)
+
LIBRARYPATH = libraries
+
# path location for the arm-none-eabi compiler
+
COMPILERPATH = $(TOOLSPATH)/arm-none-eabi/bin
+
#************************************************************************
+
# Settings below this point usually do not need to be edited
+
# - mostly that all source-code (*.c and *.cpp) needs to be compiled and linked
+
  #************************************************************************
+
...
+

Revision as of 08:23, 26 July 2015

Contents

Software installation

Toolchain installation

Install arduino 1.05 from

http://arduino.cc/en/Main/OldSoftwareReleases

(newer arduino versions is not supported - as of September 2014)

Then get and install the teensey tool installer from:

https://www.pjrc.com/teensy/td_download.html

Run the installer - on 32 bit linux it is:

chmod +x teensyduino.32bit  
./teensyduino.32bit

It installes (only) as a merge with the arduino installed directory (arduino-1.0.6).

From this installation we need only some hardware parts in

arduino-1.0.6/hardware/tools
arduino-1.0.6/hardware/teensy/cores/teensy3

Teensy loader and udev rules

Teensy loader: Get the loader - and udev rules - from

https://www.pjrc.com/teensy/loader.html

The teensy loader needs to be unpacked - on linux it is:

gunzip teensy.gz
chmod +x teensy

For Linux get also the udev rules, and copy them to /etc/udev/rules.d to get read-write access to the usb connection (/dev/ttyACM0) and others:

sudo cp 49-teensy.rules /etc/udev/rules.d/

Regbot software

Then get the regbot software (by mail from jca@elektro.dtu.dk)

It consist of a series of directories but is missing the tools directory, copy (or link) the arduino-1.0.6/hardware/tools and arduino-1.0.6/hardware/teensy/cores/teensy3 directory to the regbot directory, or set the TOOLSPATH and COREPATH in the regbot Makefile.

Library changes

In the teensy3 directory I needed to add an include to get everything to compile

in file teensy3/usb_serial.h add #include <core_pins.h> as in the list below:

#ifndef USBserial_h_
#define USBserial_h_

#include <core_pins.h>
#include "usb_desc.h"
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox