Forum Discussion
Altera_Forum
Honored Contributor
21 years agoProblem using HAL Api
Hello, I have problem using HAL api.. I just want to open device using alt_flash_open_dev() just like in "Simple Flash Access" of "The HAL Api Reference", but it always returns 0x0. Do...
Altera_Forum
Honored Contributor
21 years agoI found something new.
Changing "int alt_main(void)" to "int main(void)" in modified Hello_Led project made it to call alt_sys_init() automatically before main function. And, devices seemed to be registered in the alt_llist* list. But, alt_flash_open_dev() still fails. However, when I let a person who has the "NiosII Development Kit Cyclone II Edition" board (I am using "NiosII Evaluation Kit Cyclone Edition") do the samething, then, it seemed to work just fine(alt_flash_open_dev is returning other than 0).