Visible to Intel only — GUID: xey1615249215678
Ixiasoft
1.1. Release Information
1.2. Device Family Support
1.3. Signals
1.4. Parameters
1.5. Register Map
1.6. Using Generic Serial Flash Interface Intel® FPGA IP
1.7. Generic Serial Flash Interface Intel® FPGA IP Reference Design
1.8. Flash Access Using the Generic Serial Flash Interface Intel® FPGA IP
1.9. Nios II HAL Driver
1.10. Generic Serial Flash Interface Intel® FPGA IP User Guide Archives
1.11. Document Revision History for the Generic Serial Flash Interface Intel® FPGA IP User Guide
Visible to Intel only — GUID: xey1615249215678
Ixiasoft
1.9. Nios II HAL Driver
The HAL API is available for this controller in the following software files:
- intel_generic_serial_flash_interface_top.h
- intel_generic_serial_flash_interface_top.c
These files implement the Generic Serial Flash Interface core device driver for the HAL system library.
Nios® II HAL supports a number of generic device model classes including one for device flashes. Developing against these generic classes gives a consistent interface for driver functions so that the HAL can access the driver functions uniformly.
A HAL API application begins by calling alt_flash_open_dev() to open the flash device, which returns a file handle to a flash device. You can obtain the IP name from system.h. All offset-related variables are based on absolute addressing to the flash memory.
Note:
- Enable altera_safeclib in BSP Software Package from BSP Editor to use the HAL API.
- The HAL API does not reset the error bits, thus needs to reset manually depending on the flash device, for example:
- Clear flag status register for Micron flash.
- Clear status register for Cypress flash.
- Sector protection related operations are not supported in the HAL API.