<div dir="ltr">That particular test I could see it uses like four tasks. The problem we had in the past is that the predefined size for the stack for each task was set to 4k for our architecture (arm cortex m3). We proposed a patch in order to make the default stack size for each bsp configurable. Im not sure if it has been submitted<div><br></div><div><div>#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER</div><div>#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER</div><div><br></div><div>#define CONFIGURE_MAXIMUM_TASKS 4</div><div><br></div><div>#define CONFIGURE_RTEMS_INIT_TASKS_TABLE</div><div><br></div><div>#define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)</div><div><br></div><div>#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION</div></div><div><br></div><div>this is extracted from the "system.h" file of ticker test.</div><div><br></div><div>If your objective is to have that test working, i suggest to tune the minimum stack size in this file.</div><div>If you want to know a little more, I suggest that you make a objdump and see what global objects are using more RAM and where did they come from.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 1:36 PM, Daniel Gutson <span dir="ltr"><<a href="mailto:daniel.gutson@tallertechnologies.com" target="_blank">daniel.gutson@tallertechnologies.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">We were able to downsize RTEMS to about 9k for the LPC1768.<div>Marcos, could you give a hint?</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Wed, Dec 17, 2014 at 1:34 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><br>
<br>
On December 17, 2014 8:00:50 AM PST, Hesham Moustafa <<a href="mailto:heshamelmatary@gmail.com" target="_blank">heshamelmatary@gmail.com</a>> wrote:<br>
>Hi all,<br>
><br>
>I am working on reducing RTEMS size to fit into <32KB as every Epiphay<br>
>core has only 32KB of local memory. I was able to get hello and<br>
>minimum samples with aggressive size reduction by manually removing<br>
>un-needed code. Currently I only use libcsupport, sapi, score, rtems<br>
>built for cpukit only, and for each, some source code files were<br>
>removed. No IO, no FS, no barrier, event, managers are included.<br>
<br>
</span>Our minimum is where it is because no one has provided lower requirements. Some of the things you dropped out could be addressed by initialization being more like a constructor table that is automatically built based on dependencies. This was/is the sequenced initialization project. I don't know the state of it.<br>
<br>
Try turning on per section methods and data like the SPARC bsps. This saves memory.<br>
<br>
<br>
Defining which features are part of 'nanoRTEMS' is a big part of this. Then those requirements can drive dropping things not covered by sequenced initialization and finer tuning.<br>
<br>
Using printk saves a lot of memory.<br>
<span><br>
>And I<br>
>added -Os flag. However when building ticker, the .text area overflows<br>
>the 32KB local memory by about 8KB.<br>
><br>
>The question is, what are the very basic mandatory sources/libraries<br>
>and/or managers that are enough to build ticker?<br>
<br>
</span>Some of that is stack size in ticker. Look at the ticker variants in examples-v2<br>
<span><br>
>Regards,<br>
>Hesham<br>
>_______________________________________________<br>
>devel mailing list<br>
><a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
><a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
<br>
</span><span><font color="#888888">--joel<br>
</font></span><div><div>_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><br>Daniel F. Gutson<br>Chief Engineering Officer, SPD<br><br>San Lorenzo 47, 3rd Floor, Office 5<br>Córdoba, Argentina<br><br>Phone: +54 351 4217888 / +54 351 4218211<br>Skype: dgutson<br>LinkedIn: <a href="http://ar.linkedin.com/in/danielgutson" target="_blank">http://ar.linkedin.com/in/danielgutson</a><br></div>
</font></span></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="font-size:16px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">______________________________</span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><a href="http://www.tallertechnologies.com" target="_blank"><img src="http://www.tallertechnologies.com/templates/tallertechnologies/images/signature.png" width="200" height="78"></a></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br><span style="font-size:16px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="verdana, sans-serif" size="4">Marcos Díaz</font></span></p><p dir="ltr" style="margin-top:0pt;margin-bottom:0pt"><font color="#000000" face="verdana, sans-serif"><span style="line-height:17px;white-space:pre-wrap">Software Engineer</span></font></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif" size="1">San Lorenzo 47, 3rd Floor, Office 5</font></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><font face="arial, helvetica, sans-serif" size="1">Córdoba, Argentina </font></span></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><b style="font-weight:normal"><font face="arial, helvetica, sans-serif" size="1"><br><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></font></b></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif" size="1"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Phone:</span><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> +54 351 4217888 / +54 351 4218211/ </span><span style="color:rgb(0,0,0);line-height:12px;white-space:pre-wrap">+54 351 7617452</span></font></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"></p><p dir="ltr" style="line-height:1.15;margin-top:0pt;margin-bottom:0pt"><font face="arial, helvetica, sans-serif" size="1"><span style="color:rgb(0,0,0);background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Skype:</span><span style="color:rgb(0,0,0);background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"> markdiaz22</span></font></p><div><span style="font-size:11px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"><br></span></div></span></div></div>
</div>