Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

Flash Error

Hello everybody,

i have a new problem with the read/write into a Flash Memory. I use NiosII with the Cyclone Altera FPGA, the Quartus 5 and i use the Nios II IDE.

I compile and dowloading into a board the example called "Memory test", but when the program ask the memry with the line:

Enter the name of the CFI flash device to be opened,

or just press <enter> to open "/dev/ext_flash")

I insert

>/dev/cfi_flash_0

and the result is -ERROR: Could not open /dev/cfi_flash_0 because the line

fd = alt_flash_open_dev(flashname);

are the value &#39;0&#39;.

Can you help me, please?

Best regards,

gohan

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    HI,

    let try to test change your source code form fd = alt_flash_open_dev(flashname);

    to fd = alt_flash_open_dev("/dev/cfi_flash_0");

    I have seen this one in my design. I think that uart console has some problem with CR, LF

    Regards