Installation of Mico32/FPG-EYE development environment

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
(ERIKA and RT-Druid)
Line 1: Line 1:
-
== Introduction ==
+
= Introduction =
This tutorial describes a set of steps needed to compile and deploy a platform on FPG-EYE board.
This tutorial describes a set of steps needed to compile and deploy a platform on FPG-EYE board.
Line 19: Line 19:
'''%ispTOOLS%'''
'''%ispTOOLS%'''
-
In addition to lattice software you need [http://erika.tuxfamily.org/erika-for-multiple-devices.html Evidence RT-Druid software] (to run ERIKA Enterprise OS on Mico32 softcore) and a [http://www.python.org/ Python] installation with [http://pyserial.sourceforge.net/ pyserial module]
+
In addition to lattice software you need [http://erika.tuxfamily.org/erika-for-multiple-devices.html Evidence RT-Druid software] (to run ERIKA Enterprise OS on Mico32 softcore) and a [http://www.python.org/ Python] installation with [http://pyserial.sourceforge.net/ pySerial module]
(to deploy your application on FPG-EYE external flash, with Evidence's boot loader Mico32 application).
(to deploy your application on FPG-EYE external flash, with Evidence's boot loader Mico32 application).
Line 34: Line 34:
%ispTOOLS%\micosystem\components\<Component directory>\rtl\verilog to fix found bugs.
%ispTOOLS%\micosystem\components\<Component directory>\rtl\verilog to fix found bugs.
-
== ERIKA and RT-Druid ==
+
= ERIKA and RT-Druid =
[[Tutorial: Running ERIKA on Mico32 and FPG-EYE | FPG-EYE demo application]] is an ERIKA application, so to compile it you need  
[[Tutorial: Running ERIKA on Mico32 and FPG-EYE | FPG-EYE demo application]] is an ERIKA application, so to compile it you need  
[[Tutorial: Installing ERIKA and RT-Druid, and compile your first application | ERIKA and RT-Druid]] softwares.
[[Tutorial: Installing ERIKA and RT-Druid, and compile your first application | ERIKA and RT-Druid]] softwares.
 +
 +
= Python and pySerial module =
 +
 +
To deploy an Mico32 application on FPG-EYE external flash Evidence provides a dedicated bootloader on FPG-EYE XP2 flash . To interact with this bootloader a python script is given. This python script has been written and tested on a python 2.x environment.
 +
 +
== Install Python on Windows ==
 +
 +
To install python on a windows machine you have two options, one native and one under cygwin. To install the native one just download the right installer [http://www.python.org/download/ here] and run it. If you want the cygwin version just run the Setup (tested with version  application, reach the Select Packages dialog, python category select python package.
 +
 +
== Install pySerial on Windows ==
 +
 +
If you have installed the native version of python just dowload the pySerial installer [[http://pypi.python.org/pypi/pyserial here]] and run it.

Revision as of 14:54, 29 September 2011

Contents

Introduction

This tutorial describes a set of steps needed to compile and deploy a platform on FPG-EYE board.

To achive this goal you need follow softwares from Lattice installed in your environment (follow links for download pages):

To download and use these softwares you need a Lattice registration and a fre license (follow instruction on Lattice web site)

Be careful: each version of ispLEVER need a correspondent version of LatticeMico System Development Tools, further 64 bit OSes are not supported by ispLEVER (even though we were able to install it on 64 bit Windows Vista/7, with some pain to be honest). In regard to ispVM System you need version 18.0 or superior. All FPG-EYE software development has been made with ispLEVER 8.0 and correspondant LatticeMico System Development Tools.

Hereunder it's supposed that all the tools are installed in the same base directory and we refer at this directory as: %ispTOOLS%

In addition to lattice software you need Evidence RT-Druid software (to run ERIKA Enterprise OS on Mico32 softcore) and a Python installation with pySerial module (to deploy your application on FPG-EYE external flash, with Evidence's boot loader Mico32 application).

Standard Mico32 components Patches

During FPG-EYE software development a few bugs in standard Mico32 components have been found and corrected. Especially we found small bugs in following components:

  • SPI Flash Controller (Component directory: spi_flash. Verilog files: spi_flash_intf.v wb_intf.v)
  • Async SRAM Controller (Componet directory: asram_top. Verilog files: asram_core.v)

We found these bugs in ispLEVER version 8.0 components. We don't know if they have been fixed in later versions.

You can find the patched verilog files here. To apply the patches you need to copy these new files in the right componets folders. The base directory for components is: %ispTOOLS%\micosystem\components. You have to put patched verilog files for each component in %ispTOOLS%\micosystem\components\<Component directory>\rtl\verilog to fix found bugs.

ERIKA and RT-Druid

FPG-EYE demo application is an ERIKA application, so to compile it you need ERIKA and RT-Druid softwares.

Python and pySerial module

To deploy an Mico32 application on FPG-EYE external flash Evidence provides a dedicated bootloader on FPG-EYE XP2 flash . To interact with this bootloader a python script is given. This python script has been written and tested on a python 2.x environment.

Install Python on Windows

To install python on a windows machine you have two options, one native and one under cygwin. To install the native one just download the right installer here and run it. If you want the cygwin version just run the Setup (tested with version application, reach the Select Packages dialog, python category select python package.

Install pySerial on Windows

If you have installed the native version of python just dowload the pySerial installer [here] and run it.

Personal tools