Forum Discussion

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

timestamp

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif

hello to everybody

i would like to use timestamp to monitoring my application time.

In sopc builder i set timer 1 msec .

I follow documents and then i include the header file such as the documents

told me.

but when i compile to download exe file (.elf ) occur a console warning that

tell me is notpossible to find header file .

Very strange .

Somebody already use this function?

thanks for helps

ciao

walter

14 Replies

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

    Ok... here&#39;s the step-by-step for changing your syslib properties:

    1. Right-click on your project, in the IDE, and select "System Library Properties"

    or right-click on your System Library project and select "Properties".

    2. Change "Timestamp timer:" from "None" to whatever your new timer&#39;s name.

    - Take a look at any full_featured design&#39;s "high_res_timer" to see how to properly configure an interval timer in SOPC Builder.

    3. Click OK to apply the changes.

    4. Rebuild your project, and you should see the correct timestamp# def&#39;s. in your system.h file.

    Hopefully, that will get you where you want to go.

    BTW, both the Dhrystone software example and the software for the custom instruction tutorial make use of timestamp timers. Perhaps, you could refer to these example, in their entirety, prior to moving forward with your development?

    Cheers,

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

    CORRECT !!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

    I try to write TIMER_0 (my second timer in system) direct in the file

    instead "none" , but after generation IDE overwrite with "none" again.

    So i try as you suggest , because i saw the post later ,

    and IDE compile correct .

    After that my code was compiled successfully.

    I change period from ms to us but the result is 0 (us)

    NIOS II is the faster system that i never see .

    http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif

    Maybe there is other little problem because alt_timestamp return

    alwais 0 .

    ...mmmmmmmmmmmmmm http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/dry.gif

    Otherwise , Slacker , thank you for your interest

    you are very nice

    http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif

    Now i want to check why doesn&#39;t work properly

    have a good night (for me &#39;cause in italy now it&#39;s 1.30 )

    ciao

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

    --- Quote Start ---

    originally posted by pmicro@Jul 1 2006, 05:55 PM

    nothing .....

    the function alt_timestamp() returns always 0

    http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif

    ciao

    walter

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16602)

    --- quote end ---

    --- Quote End ---

    I also faced the problem which the compiler cannot identify the function alt_timestamp_start(). And I tried what slacker suggested, it works!!!! Bingo!