Altera_Forum
Honored Contributor
20 years agoProblem Writing CFI FLASH Using NIOS HAL
I'm trying to get the alt_write_flash and alt_erase_flash functions working.
When I try to open the FLASH device specified in my system.h using the alt_flash_open_dev function it always returns 0 (device not opened). From what I can tell the LLIST that is supposed to have the registered flash components in it is empty. How do I correctly register my flash device (a standard AMD CFI flash)? Do I have to write the low level read and write routines or are these already done somewhere in the HAL libraries? Is there a complete example somewhere that shows the process of registering a FLASH device, creating the low level code (sending command words to erase/write flash, etc) and using it with the alt_flash functions? Thanks, Nathan