Hi, I need your help on how to store an image from my pc into the niosII stratix II rohs's sdram, I do not know whether to use the host based file system using the fuctions fread, and fwrite,,, or if it would be better storing it first in flash (zip file system)and the into de sdram.I want to do this in order to send the data to some image processing Ip slave peripheral, working with the nios II processor, the processed data will be loaded into the same sdram and sent back to the host pc. I will really appreciate any help from you.
I was able to do it using the host based file system, look it up on the IDE help, it is quite simple. just use functions like fread, and fwrite from the standard C to read and update an BMP file on host computer.
Another method would be to use system console. These days I'm not sure which one would be faster: HostFS or System console (file access over debug channel vs tcl...)
@naocojoI am considering using the M4K blocks too .. will this method work too? I have read an image from the SD_card, need to save it on kit(SDRAM) or Onchip memory of the FPGA, is all I need is to provide the fwrite and fread with the base address of the memory I am writing too to access these memories I have read that "The host-based file system only operates while debugging a project. It cannot be used for run sessions.", What does this mean @BadOmen How do I use the System console? where can i find a reference to read about it