Forum Discussion

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

load and write image under nios

hello

i have a code in c++ how use image in studio vusial I give the path of image and I have the result

I turn the some code inder nios but the when I give the path of image the niosIde not found it ?

can someone give me a solution to resolve the problem.

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    What do you mean: do you want Nios IDE to read the image or do you want Nios processor to access the file?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello

    I want the Nios processor to access the file(image)

    and write the result( image)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Where is the file supposed to be stored?

    Do you have a filesystem on your Nios board? Or do you want to store the raw image data on a flash eprom?

    Or maybe you want Nios to access data on your computer hard disk? In this case you need a server program on pc which communicates with a client running on Nios client. I'm not sure, but I believe there's a reference design to make this, using jtag uart as the link channel: try search the forum or Altera website for it.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i use a image bmp in my code I want to read and write the inder nios ide inorder to expoit the image in the traitement of the code ?

    the input is image .bmp

    and the out put is the image .bmp
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You must explain better if you want help. I really can't get the point.

    Is the image file somehow already imported into the Nios code? Or do you need a method to transfer the file to Nios? Or maybe do you simply want get the image from a bmp file data you already have imported in a array; in this latter case you must refer to bmp file specification.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I want the processor nios IDE read and write the image

    the treatment of the algorithm necessity the image

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello

    I have an algorithm in C++ how turn correctly under visual C++

    I want to implement in softwere . and I use Nios II Ide

    the problem the processor NiosII can't use the image

    if sameone know the commade or prossesus in order to the nios can exploit the image

    thank you