<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 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 all,</p>
<p><br>
</p>
<p>Excuse another time my delay.</p>
<p><br>
</p>
<p>@Mr/Ms Gerade I guess this is what you mean:</p>
<p></p>
<div>
<p lang="en-GB" align="center" style="margin-left:0.6in; margin-right:0.6in; margin-top:0.14in; margin-bottom:0.11in; line-height:108%">
<font color="#404040"><i>../rtemsos_src/configure --target=sparc-rtems4.12 --enable-rtemsbsp=sis --enable-tests=samples --enable-posix --enable-networking --prefix=/home/agostino/development/rtems/bsps/4.12</i></font></p>
</div>
<p></p>
<p><br>
</p>
<p>Thank you for your help,</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> gedare@gwmail.gwu.edu <gedare@gwmail.gwu.edu> per conto di Gedare Bloom <gedare@rtems.org><br>
<b>Inviato:</b> mercoledì 12 ottobre 2016 18.02.46<br>
<b>A:</b> Agostino Mascitti<br>
<b>Cc:</b> Sebastian Huber; 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">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 of<br>
> RTEMS and BSP. To determine that it elapses after 2 secs, I just count 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 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 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 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 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>