<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2017-07-23 22:30 GMT+02:00 Joel Sherrill <span dir="ltr"><<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div>Increasing the stack size effectively eliminated a data corruption issue. The memory corrupted likely was an RTEMS internal object structure.</div><div dir="auto"><br></div><div dir="auto">What is the stack frame size required by each subroutine call?</div></div></blockquote><div>How can I determine it?</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><br></div><div dir="auto">How much stack to call printf()?</div><div dir="auto"><br></div><div dir="auto">The minimum is an educated guess by the porter that is large enough to run many/most small applications. You should be able to call RTEMS services and do a context switch.</div><div dir="auto"><br></div><div dir="auto">Hope that helps pick one. :)</div></div></blockquote><div><br></div><div>As for now, I have increased the minimum stack size and get the following output:</div>
<p style="margin:0px">*** LOW MEMORY CLOCK TICK TEST ***</p>
<p style="margin:0px">TA1 - rtems_clock_get_tod - 09:00:00 12/31/1988</p>
<p style="margin:0px">TA2 - rtems_clock_get_tod - 09:00:00 12/31/1988</p>
<div><span style="white-space:pre-wrap">TA3 - rtems_clock_get_tod - 09:00:00 12/31/1988</span></div><div><br></div><div>I will try to determine how to proceed further.</div><div> <br></div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Regards, Denis Obrezkov</div>
</div></div>