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++

read data from flash?

Altera_Forum
Honored Contributor II
1,022 Views

Hello: 

 

 

Now my flash can't use the IDE to program.I think a method that if I can use another software to  

program the .bin file to flash,then I write a avalon_interface to communicate between flash and nioscpu. 

if this is ok,I will use the below code to read data from flash. 

 

code : 

unsigned char *data; 

k=(unsigned char*) flash_base;//read data from flash 

//k=(unsigned cahr *) ram-base;//read data from ram 

for (i=0;i<=100;i++) 

data=k

 

But now I have a problem : 

if I can&#39;t write command word to flash ,I can read data from flash ? 

It means that I can directly read data from flash as read data from ram.because above code can directly read data from ram. 

 

 

Thank you!
0 Kudos
0 Replies
Reply