Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIOWR, IOWR_32DIRECT, alt_flash_read... need help to get the bits
I have got a quite simple problem I think, but I am messing around about half a day now with that and don't figure it out. So I would like to ask for your advice. I want to copy data from my EP...
Altera_Forum
Honored Contributor
16 years agoThanks for your reply BillA. I already tried that, but did not matched the addresses right I think.
Does alt_read_flash read Bytes or Bits? So dataSize*8=Bit or dataSize=Bit?
ret_code = alt_read_flash(my_epcs, epcsAddr, sdramAddr, dataSize);
I have got a EPCS64 Serial Device and my SDRAM Master Width is 32Bit wide. How would you count?
epcsAddr++, sdramAddr++, dataSize = 32
ret_code = alt_read_flash(my_epcs, epcsAddr, sdramAddr, dataSize);
or
epcsAddr+=4, sdramAddr++, dataSize = 32
ret_code = alt_read_flash(my_epcs, epcsAddr, sdramAddr, dataSize);
or
epcsAddr+=32, sdramAddr++, dataSize = 32
ret_code = alt_read_flash(my_epcs, epcsAddr, sdramAddr, dataSize);
or
epcsAddr+=4, sdramAddr++, dataSize = 4
ret_code = alt_read_flash(my_epcs, epcsAddr, sdramAddr, dataSize);
:confused: :confused: