Documents/NPL Development Environment

From Nutwiki
Jump to: navigation, search

NPL Tutorial - Step 1

Contents Next

Installing Nut/OS

[[../download/index.html|[[File:../../img/s-nutconf.png|Nut/OS Configurator]]]] If not already done, download the latest Nut/OS release from the [[../download/index.html|download page]]. and follow the [[../../pdf/enswm28e.pdf|Nut/OS Software Manual]] to install, configure and build the Nut/OS development environment on your PC. Make sure to create a sample application directory as described in the Software Manual.

Additional Files

[[../../arc/npltut-0.0.1.zip|npltut-0.0.1.zip]]
The Verilog Source Code and the constraint file used in this tutorial.

[[../../arc/xsvfexec-enut30d.zip|xsvfexec-enut30d.zip]]
The XSVF Executor Pack for Ethernut 3.0.

Installing Xilinx ISE 7.1i

[[File:../../img/ise-logo.png|Nut/OS Configurator]] You can download a free copy of the ISE Webpack for Windows or Linux from the Xilinx Web Page. For this tutorial we use version 7.1.04i. Make sure to apply the latest service pack after installation. At least the initial release 7.1i for Windows contains a serious bug, which inverts the output signals.

Installing ISE 7.1i on Linux

Xilinx supports Redhat Enterprise Linux only. Fortunately it runs on other distributions as well with little effort. Here's how to get it working on Debian Sarge. The description should be helpfull for other Linux distributions too.

It is recommended not to download the network installation, but the full installer for 32 bit, named WebPACK_71_fcfull_i.sh. You can store this file in any location.

The software requires shared Motif libraries, which you need to install next. Do not forget to change to root.

# apt-get install libmotif3 libcurl3

These are non-free packages and you have to add

deb http://http.us.debian.org/debian sarge main contrib non-free                  

to /etc/apt/sources.list and run

#apt-get update                  

The Webpack runtime is linked against libcurl.so.2, which doesn't exist in current Debian packages. A symbolic link solves this.

# ln -s /usr/lib/libcurl.so.3.0.0 /usr/lib/libcurl.so.2

We are now ready to start the Webpack installer, which requires the DISPLAY variable set to :0.

# export DISPLAY=:0 
# ./WebPACK_71i_installer.sh

Some distributions may additionally need

# export LD_ASSUME_KERNEL=2.4.7 

Near to the end of the installation several errors will be reported. As far as I can say, these can be ignored without consequences.

Next download the latest ISE 7.1 service pack from the Xilinx Web Page. At the time of this writing it's 7_1_04i_lin.zip. Unpack this archive in a new directory and run

# ./setup

with root privileges. Finally we can start the Webpack ISE with the following command, replacing the path with the directory you selected during installation:

$ /usr/local/Xilinx/bin/lin/ise &                  

Contents Next