<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<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 name="x_Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
a:x_link, span.x_MsoHyperlink
{color:blue;
text-decoration:underline}
a:x_visited, span.x_MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
.x_MsoChpDefault
{}
div.x_WordSection1
{}
-->
</style>
<div lang="IT" link="blue" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Sounds to be a good idea, thank you =)</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Greeting,</p>
<p class="x_MsoNormal">Agostino</p>
<p class="x_MsoNormal"> </p>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="border:none; padding:0cm"><b>Da: </b><a href="mailto:gedare@rtems.org">Gedare Bloom</a><br>
<b>Inviato: </b>domenica 16 ottobre 2016 14:31<br>
<b>A: </b><a href="mailto:agostino.mascitti@student.univaq.it">Agostino Mascitti</a><br>
<b>Cc: </b><a href="mailto:users@rtems.org">users@rtems.org</a><br>
<b>Oggetto: </b>Re: Rate Monotonic Manager</p>
</div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">You might try a smaller value of ticks, and a large value for<br>
sleeping. E.g. 1000 microseconds per tick, and wake_after(1000) to<br>
suspend for a second.<br>
<br>
On Sat, Oct 15, 2016 at 6:11 AM, Agostino Mascitti<br>
<agostino.mascitti@student.univaq.it> wrote:<br>
> Hi all,<br>
><br>
><br>
> Excuse another time my delay.<br>
><br>
><br>
> @Mr/Ms Gerade I guess this is what you mean:<br>
><br>
> ../rtemsos_src/configure --target=sparc-rtems4.12 --enable-rtemsbsp=sis<br>
> --enable-tests=samples --enable-posix --enable-networking<br>
> --prefix=/home/agostino/development/rtems/bsps/4.12<br>
><br>
><br>
> Thank you for your help,<br>
><br>
> Agostino<br>
><br>
> ________________________________<br>
> Da: gedare@gwmail.gwu.edu <gedare@gwmail.gwu.edu> per conto di Gedare Bloom<br>
> <gedare@rtems.org><br>
> Inviato: mercoledì 12 ottobre 2016 18.02.46<br>
> A: Agostino Mascitti<br>
> Cc: Sebastian Huber; users@rtems.org<br>
><br>
> Oggetto: Re: Rate Monotonic Manager<br>
><br>
> Which BSP do you use? (Send the 'configure' command line you use for RTEMS.)<br>
><br>
> On Wed, Oct 12, 2016 at 9:56 AM, Agostino Mascitti<br>
> <agostino.mascitti@student.univaq.it> wrote:<br>
>> Hi,<br>
>><br>
>><br>
>> I am sorry for delay. Just to answer Gerade, I am using the last version<br>
>> of<br>
>> RTEMS and BSP. To determine that it elapses after 2 secs, I just count<br>
>> with<br>
>> my hands the time between 2 consecutive printfs.<br>
>><br>
>> Using a proportion I set the correct amount of microsecs per tick. But now<br>
>> I<br>
>> do not know how to explain it on my thesis work. It does not seem to me a<br>
>> good thing that I discovered it using a proportion. I attach the new file,<br>
>> which is correct.<br>
>><br>
>><br>
>> Agostino<br>
>><br>
>> ________________________________<br>
>> Da: Sebastian Huber <sebastian.huber@embedded-brains.de><br>
>> Inviato: martedì 11 ottobre 2016 07.08.29<br>
>> A: Gedare Bloom; Agostino Mascitti<br>
>> Cc: users@rtems.org<br>
>> Oggetto: Re: Rate Monotonic Manager<br>
>><br>
>> 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<br>
>>>> tick<br>
>>>> */<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<br>
>>>> 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<br>
>>>> perform<br>
>>>> the periodic actions. When this time expires, the 4 seconds period<br>
>>>> 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>