Guidelines for Developing a Nios II HAL Device Driver

ID 683146
Date 6/12/2015
Public
Document Table of Contents

1.2.1. Preparing the bit_bang_uart Application and hal_my_uart BSP

First, you need to set up a development and debugging environment for the UART. This example uses the Nios II Cyclone V E FPGA Development Kit with an accompanying design example in an459-design-files.zip.

Follow these steps to build the bit_bang_uart project:

  • Get the most up-to-date version of an459-design-files.zip which is available on the HAL Device Drivers Design Example page of the Altera website.
  • Unzip an459-design-files.zip to a working directory, such as C:/my_design. This application note refers to this directory as <my_design>. Be sure to preserve the directory structure of the extracted software archive. Extraction creates a directory structure tree under <my_design> with the following four subdirectories:
    • ip/my_uart
    • software_examples/bsp/hal_my_uart
    • software_examples/app/bit_bang_uart
    • software_examples/app/hello_world_my_uart
    Note: The working directory name you choose must not contain any spaces.

After extracting an459-design-files.zip, refer to <my_design>/readme.txt for a list of any required software patches or other updated information. If a patch is required, install it according to the instructions in readme.txt.