Forum Discussion
Altera_Forum
Honored Contributor
21 years agoThe Nios I code will not work on Nios II because the cache architecture is different, and because the software infrastructure is different.
If you want already written code to program the flash then please look at the code in the altera_avalon_cfi_flash component - accessed through the header file sys/alt_flash.h (in altera_hal/inc)