Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI was surfing a different question when I came across your answer:
http://www.altera.com/literature/hb/nios2/n2cpu_nii51012.pdf#page=4 hal system library 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 the EPCS memory. You do not need to know the details of the underlying drivers to use them. The driver for the EPCS device is excluded when the reduced device drivers option is enabled in a BSP or system library. To force inclusion of the EPCS drivers in a BSP with the reduced device drivers option enabled, you can define the preprocessor symbol, ALT_USE_EPCS_FLASH, before including the header, as follows: # define ALT_USE_EPCS_FLASH# include <altera_avalon_epcs_flash_controller.h> Hope this helps, -Terry