Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Flash Error

Altera_Forum
Honored Contributor II
1,191 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
314 Views

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
0 Kudos
Reply