For the successful development of Bladox Turbo compatible applications under Windows OS we recommend to follow these installation steps.|
Cygwin is free software that provides a Unix-like environment and software tool set to users of most Microsoft Windows systems.
- Login as Administrator or user with Administrator rights.
- Create a folder C:\cygwin.
- Download cygwin's setup.exe from www.cygwin.com and save it in C:\cygwin.
Cygwin's setup.exe can be later used to add or delete or reinstall cygwin packages after initial installation.
- Launch C:\cygwin\setup.exe to start up the installation wizard.
- Choose Install from Internet. Hit Next and then choose your installation directory C:\cygwin and All Users.
- When it asks for Local Package Directory, type C:\cygwin.
- Choose to download via Direct Connection and then select a download site that is close to you.
- Now you are at the Select Packages screen. Click the little View button to change from Category to Full.
- Find the package make, click on the word Skip in column New so that a checked box appears in column Bin.
- Find the package libintl2, click on the word Skip in column New so that a checked box appears in column Bin.
- Hit Next to start the installation.
- Finally, create the Cygwin icon on the Desktop or on the Start menu.
BINUTILS and GCC Installation
To develop Bladox Turbo specific packages it is necessary to have installed packages gcc - standard gcc configured for AVR and binutils - modified binutils to support Turbo binary application format.
- Download binary gcc and binutils for Windows turbo-win32-040129.zip.
- Unzip downloaded archive into C:\cygwin.
- Start Cygwin and type "cd /" and then "tar xvfpz usr.tar.gz".
- Change mode bits by typing "chmod +x /usr/local/bin/* ".
- Change mode bits by typing "chmod +x /usr/local/avr/bin/* ".
- Change mode bits by typing "chmod +x /usr/local/lib/gcc-lib/avr/3.3.2/cc1.exe".
The turbo-devel package contains Bladox Turbo specific libraries, headers, developer documentation and examples.
- Download turbo-devel package turbo-devel-060822.tar.gz. Always get the latest version from here.
- Unpack this archive into C:\cygwin\home folder.
- Go to C:\cygwin\home folder and rename the new folder turbo-devel-060822 to turbo-devel.
Compiling Helloworld Application
- Go to C:\cygwin\home\turbo-devel\examples\hello_world directory.
- Open the Makefile file and modify the TURBO_DIR variable pointing to the turbo-devel location. Simply change it from TURBO_DIR = ../../turbo-devel to TURBO_DIR = ../../../turbo-devel.
- Start Cygwin and type "cd /home/turbo-devel/examples/hello_world".
- Type "make".
- If you get "as: unrecognized option `-mmcu=atmega128' " error then modify specs file located in /usr/local/lib/gcc-lib/avr/3.3.2 directory.
Look for "invoke_as:", there is a line starting with "as %...", change it to "avr-as %...".
- If you get "Size PROGMEM: 58 RAM: 0" then you have the application helloworld.trb in the hello_world folder.