Forum Discussion
Altera_Forum
Honored Contributor
21 years agoproblem using epcs.c in SDK library
Hello, I have problem calling "nr_epcs_is_device_present()" function which I copied & pasted from epcs.c in SDK library. As far as I can see from the original source, The first thing it ...
Altera_Forum
Honored Contributor
21 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..