Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHello,
I solved my problem. It said on p12-4 of "Programming Model, Nios II Processor Reference Handbook" that "Altera does not publish the usage of the control and data registers. To access the EPCS device, you must use the HAL drivers provided by Altera." What I really wanted to do was to erase memory of EPCS, so I simply called alt_epcs_flash_erase_block() function of HAL api, and it worked. I guess the codes I refferred to at the beginning was for NIOS, not NIOS II..