Forum Discussion
Altera_Forum
Honored Contributor
17 years agoFlash Device Access
Hej
I am using my custom board where I have an external flash device attached..I want to read and write the flash device..I read the manual Nios II Software Developer's Handbook...and acording to the instructions given there..i tried to use HAL functions to open the flash drive..but i could not open the flash drive..I found tht when i tried to debug my code..and the pointer gets the value NULL even i am giving the name of flash device...correctly as I check that out in system.h file as well..i wrote like this.. alt_flash_fd* fd; fd= alt_flash_open_dev("/dev/cfi_flash"); but after the execution of statement..fd gets 0.i.e; NULL...so the flash device doesnt opens...Can any1 please help me in this regard...13 Replies
- Altera_Forum
Honored Contributor
i mean i chkd with the reduced device drivers option...and without tht option as well
- Altera_Forum
Honored Contributor
i have tried with both of these..but still the problem is there..i cant figure out where the problem can b?
- Altera_Forum
Honored Contributor
Do you have "reduced device drivers" or "small device drivers" selected in your system library?
See this thread: http://www.alteraforum.com/forum/showthread.php?t=3086&referrerid=2226 Jake