<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I am sorry for delay. Just to answer Gerade, I am using the last version of RTEMS and BSP. To determine that it elapses after 2 secs, I just count with my hands the time between 2 consecutive printfs.</p>
<p>Using a proportion I set the correct amount of microsecs per tick. But now I do not know how to explain it on my thesis work. It does not seem to me a good thing that I discovered it using a proportion. I attach the new file, which is correct.</p>
<p><br>
</p>
<p>Agostino<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Da:</b> Sebastian Huber <sebastian.huber@embedded-brains.de><br>
<b>Inviato:</b> martedì 11 ottobre 2016 07.08.29<br>
<b>A:</b> Gedare Bloom; Agostino Mascitti<br>
<b>Cc:</b> users@rtems.org<br>
<b>Oggetto:</b> Re: Rate Monotonic Manager</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">I am not sure if clock ticks below 20Hz work. Better use<br>
<br>
#define CONFIGURE_MICROSECONDS_PER_TICK 10000<br>
<br>
<br>
On 11/10/16 02:44, Gedare Bloom wrote:<br>
> Nothing jumps out at me. The code at first glance looks correct. What<br>
> version of RTEMS and what BSP are you using? How do you determine that<br>
> 2 seconds elapse between periods? Can you attach a debugger and see<br>
> how the value of the _Watchdog_Ticks_since_boot is progressing?<br>
><br>
> Gedare<br>
><br>
> On Sun, Oct 9, 2016 at 11:56 AM, Agostino Mascitti<br>
> <agostino.mascitti@student.univaq.it> wrote:<br>
>> Dear all,<br>
>><br>
>><br>
>> I am trying to understand the Rate Monotonic Manager. I think I am not<br>
>> understanding something.<br>
>><br>
>> As you can see in the attached file, I defined<br>
>><br>
>> #define CONFIGURE_MICROSECONDS_PER_TICK 1000000 /* Every 1 sec a tick */<br>
>> and I would like a task to be executed every 4 seconds:<br>
>> rtems_rate_monotonic_period(periodid, 4);<br>
>> The strange thing is that the task is executed every 2 seconds.<br>
>><br>
>> I read the user guide and, as I understand, in the first iteration of the<br>
>> while loop rtems_rate_monotonic_period should not block. In the second<br>
>> iteration, instead, it should block for 4 sec minus the time used to perform<br>
>> the periodic actions. When this time expires, the 4 seconds period should<br>
>> start another time.<br>
>><br>
>> Could anybody say to me what I am not understanding well please?<br>
>><br>
>> Thank you another time,<br>
>> Agostino<br>
>><br>
>><br>
>> _______________________________________________<br>
>> users mailing list<br>
>> users@rtems.org<br>
>> <a href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a><br>
> _______________________________________________<br>
> users mailing list<br>
> users@rtems.org<br>
> <a href="http://lists.rtems.org/mailman/listinfo/users">http://lists.rtems.org/mailman/listinfo/users</a><br>
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : sebastian.huber@embedded-brains.de<br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</div>
</span></font>
</body>
</html>