Forum
Could not compile stylesheet for timeless. Using last compiled stylesheet.
Offline
Monday, January 19 2015, 02:20 AM
Hi,
I have an issue with running the timer.
I've attached the zipped code to this issue.

Essentially, I'm attempting to measure the jitter caused by multiple threads executing. However, I see that there is a problem if I call the timer multiple times. The putty results are as follows:
I ran this 15 times.

5 times powered the board via USB and let the board come up : 2/5 completed successfully.
5 times powered the board via USB while holding down VOL+ : 1/5 completed successfully.
5 times powered teh board via USB while holding the RESET button: 0/5 completed successfully.

I had done this because I'd (kinda) noticed more success while holding down the VOL+

----------------------
connected the cable:
129514102670331136.00000000000000000
129514109033245488.00000000000000000
Inside ComputeStats
Min = 129513606376089504.00000000000000000
Max = 129514109033245488.00000000000000000
Mean = 129513857698285952.00000000000000000
Std. Dev = 147824737887.70965576171875000
Exiting ComputeStats
Done.
Waiting for debug commands...
----------------------
Connected the cable:
129514115396159936.00000000000000000
Inside ComputeStats
Min = 129513612733611616.00000000000
----------------------
Connected the cable:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376107296.00000000000000000
129513612725912128.00000000000000000
129513619088826032.00000000000000000
129513625451740400.00000000000000000
129513631814654880.00000000000000000
129513638177569344.00000000000000000
129513644540483968.00000000000000000
129513650903399344.00000000000000000
129513657266313760.00000000000000000
129513663629229200.00000000000000000
129513669992144880.00000000000000000
129513676355058736.00000000000000000
----------------------
Connected the cable:
Inside ComputeStats
Min = 129513606376101888.00000000000000000
Max = 129514109033245456.00000000000000000
Mean = 129513857698286112.00000000000000000
Std. Dev = 147837374100.74188232421875008
Exiting ComputeStats
Done.
Waiting for debug commands...
----------------------
Connected the cable:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376077488.00000000000000000
129513612725912208.00000000000000000
129513619088825936.00000000000000000
129513625451740608.00000000000000000
129513631814654896.00000000000000000
129513638177569376.00000000000000000
129513644540483968.00000000000000000
129513650903399312.00000000000000000
129513657266313664.00000000000000000
129513663629229184.00000000000000000
129513669992144976.00000000000000000
129513676355058688.00000000000000000
----------------------
Connected the cable holding down VOL+:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376076304.00000000000000000
129513612725912160.00000000000000000
129513619088825920.00000000000000000
129513625451740464.00000000000000000
129513631814654832.00000000000000000
129513638177569408.00000000000000000
129513644540483936.00000000000000000
129513650903399312.00000000000000000
129513657266313728.00000000000000000
129513663629229232.00000000000000000
129513669992144880.00000000000000000
129513676355058800.00000000000000000
----------------------
Connected the cable holding down VOL+:
129514096307416640.00000000000000000
129514102670331040.00000000000000000
Inside ComputeStats
Min = 129513606376074432.00000000000000000
Max = 129514102670331040.00000000000000000
Mean = 129513852846564608.00000000000000000
Std. Dev = 145852889822.27709960937500000
Exiting ComputeStats
Done.
Waiting for debug commands...
----------------------
Connected the cable holding down VOL+:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376090224.00000000000000000
129513612725910288.00000000000000000
129513619088826240.00000000000000000
129513625451742304.00000000000000000
129513631814654768.00000000000000000
129513638177569888.00000000000000000
129513644540484320.00000000000000000
129513650903401232.00000000000000000
129513657266314480.00000000000000000
129513663629227136.00000000000000000
129513669992145536.00000000000000000
129513676355057648.00000000000000000
----------------------
Connected the cable holding down VOL+:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513612733587936.00000000000000000
129513619088824768.00000000000000000
129513625451740880.00000000000000000
129513631814655328.00000000000000000
129513638177569856.00000000000000000
129513644540484320.00000000000000000
129513650903398912.00000000000000000
129513657266314304.00000000000000000
129513663629229856.00000000000000000
129513669992141616.00000000000000000
129513676355059088.00000000000000000
129513682717972960.00000000000000000
----------------------
Connected the cable holding down VOL+:
Inside MF TimerTick tArrayCtr 78
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
Inside MF TimerTick tArrayCtr 80
129513606376095328.00000000000000000
129513612725910256.00000000000000000
129513619088826320.00000000000000000
129513625451740848.00000000000000000
129513631814655264.0000000000000
----------------------
Connected the cable holding down RESET:
129514109033245568.00000000000000000
129514115396159936.00000000000000000
Inside ComputeStats
Min = 129513612733589392.00000000000
----------------------
Connected the cable holding down RESET:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513612733613888.00000000000000000
129513619088826112.00000000000000000
129513625451740448.00000000000000000
129513631814655056.00000000000000000
129513638177569248.00000000000000000
129513644540483904.00000000000000000
129513650903398560.00000000000000000
129513657266313808.00000000000000000
129513663629228288.00000000000000000
129513669992143712.00000000000000000
129513676355059440.00000000000000000
129513682717973296.00000000000000000
----------------------
Connected the cable holding down RESET:
Inside MF TimerTick tArrayCtr 77
Inside MF TimerTick tArrayCtr 78
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376104944.00000000000000000
129513612725912256.00000000000000000
129513619088825984.00000000000000000
129513625451740512.00000000000000000
129513631814654848.00000000000000000
129513638177569344.00000000000000000
129513644540483888.00000000000000000
129513650903399408.00000000000000000
129513657266313888.00000000000000000
129513663629229216.00000000000000000
129513669992144944.00000000000000000
129513676355058688.00000000000000000
----------------------
Connected the cable holding down RESET:
Inside MF TimerTick tArrayCtr 78
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
129513606376094976.00000000000000000
129513612725910208.00000000000000000
129513619088826320.00000000000000000
129513625451740976.00000000000000000
129513631814655264.00000000000000000
129513638177569872.00000000000000000
129513644540484512.00000000000000000
129513650903399728.00000000000000000
129513657266314176.00000000000000000
129513663629227856.00000000000000000
129513669992145664.00000000000000000
129513676355058368.00000000000000000
----------------------
Connected the cable holding down RESET:
Inside MF TimerTick tArrayCtr 79
Inside MF TimerTick tArrayCtr 80
autoEvent.WaitOne notification received
Printing data
Inside MF TimerTick tArrayCtr 80
129513612733590256.00000000000000000
129513619088824704.00000000000000000
129513625451740864.00000000000000000
129513631814655392.00000000000000000
129513638177569744.0000000000000
----------------------
							
Responses (4)
  • Accepted Answer

    Thursday, January 22 2015, 06:11 AM - #Permalink
    Administrator is correct. I thought I'd also add the LK version I'm using. This is the debug version that Nathan had mailed. I've attached it to this mail.
    The reply is currently minimized Show
  • Accepted Answer

    Samraksh
    Wednesday, January 21 2015, 02:10 PM - #Permalink
    The problem as I see it is that the program hangs up most of the time and does not complete. The following, one of Rinka's examples, shows a successful completion, ending with "Waiting for debug commands".

    connected the cable:
    129514102670331136.00000000000000000
    129514109033245488.00000000000000000
    Inside ComputeStats
    Min = 129513606376089504.00000000000000000
    Max = 129514109033245488.00000000000000000
    Mean = 129513857698285952.00000000000000000
    Std. Dev = 147824737887.70965576171875000
    Exiting ComputeStats
    Done.
    Waiting for debug commands...
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 21 2015, 01:15 AM - #Permalink
    I'm not looking at R_TimerTick right now. I'm only focused on TimerTick. I plan to get this up & running before exploring the RT version.
    TimerTick completes all right & exits but the function: ComputeStats() (which is part of the main thread) doesn't complete everytime. It doesn't matter if I enable the dummyTheads or not, I have the same problem. The issue is between the Timer & the Main thread.

    I use release 4.3_1.0.11 of the Samraksh/ADAPT libraries
    I will send the debug version of the LK that I use in a different mail.
    • Administrator
      more than a month ago
      Just to be clear, R_TimerTick refers to the RealTime timer whereas TimerTick refers to the standard MF timer.
    The reply is currently minimized Show
  • Accepted Answer

    Samraksh
    Monday, January 19 2015, 10:48 AM - #Permalink
    Hi Rinka,

    To be clear, the problem is that the function TimerTick and RT_TimerTick do not complete for all threads? Can you also please mention the version of eMote and dlls you use?

    Thanks,
    Ananth.
    The reply is currently minimized Show
Your Reply