Forum Discussion

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

tv-decoder to web server

hello

it is my first participation

my project consist to acquirit signal from tv decoder(ADV7181) and display it to page web

I have an example of a simple web server of altera but I want to change its

Body Program

is there a way to access to data from SRAM by nios ii ?

if yes have you any c example program to do that i want to added it to my program principal?

thanks

4 Replies

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

    Just allocate a buffer and use it. Either declare a fixed table, or use a malloc() call

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

    realy thanks for your answer and i'm sorry for multiposte

    please can you more explain because i m beginner ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi

    after allocation of merory with malloc()

    what function I use to read data SRAM ?

    i can use simpl function like read() or there is special function to do that?

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

    Just use pointers.

    This has nothing specific to the Nios platform, it is standard C.