Forum Discussion

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

read data from flash?

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!
No RepliesBe the first to reply