Forum Discussion
Altera_Forum
Honored Contributor
21 years agoread or write date through flash
hello the below sentences is in flash_AM29LV065d.c . volatile unsigned char *fb = (unsigned char *) flash_base; fb[0x555] = 0xAA; // 1st cycle addr = XXX, data = AA i...
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)