Altera_Forum
Honored Contributor
20 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 I have to call something else before alt_flash_open_dev()? I am using NiosII Evaluation Kit to do all this. I inserted the code calling the HAL function in the sample project:"hello_led", and chose "Debug as Nios II Hardware". What might be possibly wrong?