Hal system library support, Limitations, Software files – Altera Embedded Peripherals IP User Manual
Page 50: Document revision history, Hal system library support -4, Software files -4, Document revision history -4
![background image](https://www.manualsdir.com/files/763637/content/doc050.png)
HAL System Library Support
The Altera-provided driver implements a HAL flash device driver that integrates into the HAL system
library for Nios II systems. Programs call the familiar HAL API functions to program CFI-compliant flash
memory. You do not need to know anything about the details of the underlying drivers.
Nios II Software Developer's Handbook.
The HAL API for programming flash, including C code examples, is described in detail in the Nios II
Software Developer's Handbook.
The Nios II EDS also provides a reference design called Flash Tests that demonstrates erasing, writing,
and reading flash memory.
Limitations
Currently, the Altera-provided drivers for the CFI controller support only Intel, AMD and Spansion flash
chips.
Software Files
The CFI controller provides the following software files. These files define the low-level access to the
hardware, and provide the routines for the HAL flash device driver. Application developers should not
modify these files.
•
altera_avalon_cfi_flash.h, altera_avalon_cfi_flash.c
—The header and source code for the functions and
variables required to integrate the driver into the HAL system library.
•
altera_avalon_cfi_flash_funcs.h
,
altera_avalon_cfi_flash_table.c
—The header and source code for functions
concerned with accessing the CFI table.
•
altera_avalon_cfi_flash_amd_funcs.h
,
altera_avalon_cfi_flash_amd.c
—The header and source code for
programming AMD CFI-compliant flash chips.
•
altera_avalon_cfi_flash_intel_funcs.h
,
altera_avalon_cfi_flash_intel.c
—The header and source code for
programming Intel CFI-compliant flash chips.
Document Revision History
Table 5-1: Document Revision History
Date and
Document
Version
Changes Made
Summary of Changes
July 2014
v14.0.0
-Removed mention of SOPC Builder, updated to Qsys
Maintenance Release
December
2010
v10.1.0
Removed the “Device Support”, “Instantiating the Core
in SOPC Builder”, and “Referenced Documents”
sections.
—
July 2010
v10.0.0
No change from previous release.
—
5-4
HAL System Library Support
UG-01085
2014.24.07
Altera Corporation
Common Flash Interface Controller Core