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 agoNo there is nothing you need to call before alt_flash_open_dev.
The fact that it returns 0 means either you've got the name wrong, or there is no flash of that name in your system. The easy way to check this is to look in your system.h file for the name you're passing to alt_flash_open_dev, if it's not there then you have one of the two problems I've described, if it is then we have a more interesting problem.