Specifications

Specifying the Default stdio Device.............................................................................................4-36
Specifying the Default System Timer..........................................................................................4-37
Specifying the Default Memory Map..........................................................................................4-37
Specifying Default Bootloader Parameters.................................................................................4-37
Using Individual Default Tcl Procedures...................................................................................4-38
Device Drivers and Software Packages...................................................................................................4-39
Boot Configurations for Altera Embedded Software............................................................................4-39
Memory Types................................................................................................................................4-39
Boot from Flash Configuration....................................................................................................4-40
Boot from Monitor Configuration..............................................................................................4-40
Run from Initialized Memory Configuration............................................................................4-41
Run-time Configurable Reset Configuration.............................................................................4-41
Altera-Provided Embedded Development Tools..................................................................................4-41
Nios II Software Build Tool GUIs............................................................................................... 4-41
The Nios II Command Shell.........................................................................................................4-43
The Nios II Command-Line Commands...................................................................................4-44
Restrictions................................................................................................................................................. 4-47
Document Revision History for Nios II Software Build Tools............................................................4-47
Overview of the Hardware Abstraction Layer....................................................5-1
Getting Started with the Hardware Abstraction Layer...........................................................................5-1
HAL Architecture for Embedded Software Systems...............................................................................5-2
Services.............................................................................................................................................. 5-2
Layers of a HAL-Based System...................................................................................................... 5-2
Applications versus Drivers............................................................................................................5-2
Generic Device Models................................................................................................................... 5-3
C Standard Library—newlib...........................................................................................................5-4
Embedded Hardware Supported by the HAL..........................................................................................5-4
Nios II Processor Core Support.....................................................................................................5-4
Supported Peripherals.....................................................................................................................5-4
MPU Support....................................................................................................................................5-6
MMU Support..................................................................................................................................5-6
Document Revision History for Overview of the Hardware Abstraction Layer.................................5-6
Developing Programs Using the Hardware Abstraction Layer......................... 6-1
HAL BSP Settings.........................................................................................................................................6-1
The Nios II Embedded Project Structure................................................................................................. 6-2
The system.h System Description File...................................................................................................... 6-3
Data Widths and the HAL Type Definitions...........................................................................................6-4
UNIX-Style Interface...................................................................................................................................6-4
File System.................................................................................................................................................... 6-5
Using Character-Mode Devices.................................................................................................................6-6
Standard Input, Standard Output and Standard Error...............................................................6-6
General Access to Character Mode Devices.................................................................................6-7
C++ Streams..................................................................................................................................... 6-7
/dev/null............................................................................................................................................ 6-7
Lightweight Character-Mode I/O..................................................................................................6-7
TOC-5
Altera Corporation