Windows-install

Version 10 (Anthony Rowe, 02/07/2008 12:03 pm)

1 4 Anthony Rowe
 = Nano-RK Windows Toolchain Installation Guide =
2 1 Anthony Rowe
3 1 Anthony Rowe
This document breifly describes how to install avr-gcc for Windows XP.
4 1 Anthony Rowe
5 1 Anthony Rowe
1) Download and Install Cygwin with the following modules
6 1 Anthony Rowe
	- make
7 5 Anthony Rowe
	- svn (subversion)
8 1 Anthony Rowe
	- open-ssl
9 6 Anthony Rowe
        - gcc-core
10 1 Anthony Rowe
11 6 Anthony Rowe
2) Download and Install [http://www.nanork.org/nano-RK/attachment/wiki/Downloads/WinAVR-20071221rc1-install.exe?format=raw WinAVR-20071221rc1]
12 6 Anthony Rowe
 * Double-Click on Installer
13 1 Anthony Rowe
14 6 Anthony Rowe
3) Download and Install [http://www.nanork.org/nano-RK/attachment/wiki/Downloads/avrdude-5.1-cygwin.zip avrdude-5.1-cygwin] patched for cygwin
15 6 Anthony Rowe
 * Unzip into c:/cygwin/home/<user-name>
16 6 Anthony Rowe
 * Open Cygwin Bash Shell
17 6 Anthony Rowe
 * cd avrdude-5.1-cygwin
18 7 Anthony Rowe
 * In Cygwin Shell Type: ./configure
19 7 Anthony Rowe
 * In Cygwin Shell Type: make
20 7 Anthony Rowe
 * In Cygwin Shell Type: make install
21 1 Anthony Rowe
22 1 Anthony Rowe
4) Download and Install [attachment:"FTDI USB Drivers.zip"]
23 3 Anthony Rowe
24 7 Anthony Rowe
5) Open Cygwin and type "cd C:" to get to your C drive.  Move to any directory of your choice and checkout the nano-RK code using Subversion.
25 10 Anthony Rowe
 * In Cygwin Shell Type: 
26 10 Anthony Rowe
{{{
27 10 Anthony Rowe
svn checkout svn://flat-earth.ece.cmu.edu/srv/svn/repos/nano-RK
28 10 Anthony Rowe
}}}
29 10 Anthony Rowe
30 3 Anthony Rowe
31 9 Anthony Rowe
6) Find the programmer COM port and change it to be less than COM5
32 9 Anthony Rowe
33 9 Anthony Rowe
The second (higher) COM port loaded by the FTDI2232 driver is used for programming the node. avrDUDE may not work with COM ports greater than COM6, so you may need to lower the default com port.  This can be done by doing the following:
34 9 Anthony Rowe
	* Control Panel->System->Hardware->Device Manager
35 9 Anthony Rowe
	* Go down to Ports(COM & LPT), right click and select "Properties" for the COM port you wish to change
36 9 Anthony Rowe
	* Go to "Advanced" tab and change the COM port.  You can overwrite an "in-use" port as long as you know you aren't using it at the same time as the downloader. 
37 9 Anthony Rowe
38 9 Anthony Rowe
7) Go into your project and change the following line in the makefile from:
39 1 Anthony Rowe
	
40 2 Anonymous
{{{
41 1 Anthony Rowe
PROGRAMMING_PORT = /dev/ttyUSB1 # programmer connected to serial device
42 2 Anonymous
}}}
43 1 Anthony Rowe
44 1 Anthony Rowe
   to:
45 1 Anthony Rowe
	
46 1 Anthony Rowe
{{{
47 9 Anthony Rowe
PROGRAMMING_PORT = COM2 # programmer connected to serial device (port you previously changed)
48 8 Anthony Rowe
}}}
49 8 Anthony Rowe
50 8 Anthony Rowe
51 9 Anthony Rowe