<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Denis,<div class=""><br class=""></div><div class="">The simplest application is the RTEMS hello example. </div><div class=""><a href="https://git.rtems.org/rtems/tree/testsuites/samples/hello" class="">https://git.rtems.org/rtems/tree/testsuites/samples/hello</a></div><div class=""><br class=""></div><div class=""><div class="">Typically you use the RTEMS source builder tool ( RSB ) to build and install an RTEMS cross compiler. Next, you download, configure, build, and install the RTEMS kernel. Finally you would build your own application outside of the RTEMS source tree and link to the RTEMS library and startup code to create a standalone executable that is loaded to the target. </div></div><div class=""><br class=""></div><div class="">There are some getting started docs here to help setup a cross compiler and build the RTEMS source with examples:</div><div class=""><a href="https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start" class="">https://devel.rtems.org/wiki/TBR/UserManual/Quick_Start</a></div><div class="">(Not sure if that is the latest, but I believe the “sis” BSP has been removed. I use the sparc/erc32 BSP in it’s place) </div><div class=""><br class=""></div><div class=""><div class="">If you want to move on from the samples and build your own application outside of the RTEMS tree, I have a sample application framework here:</div><div class=""><a href="https://github.com/alanc98/rki" class="">https://github.com/alanc98/rki</a></div><div class=""><br class=""></div><div class="">This gives you an example of how to create a simple RTEMS application with a RAM disk, shell and some sample commands to run on the shell. The wafscript or Makefile link in the necessary libraries for the chosen BSP. </div><div class="">You can use this with RTEMS 4.11 and 4.12 ( git head ). </div><div class=""><br class=""></div><div class="">It’s pretty easy to build for the sparc erc32 BSP and run with the sparc-rtems4.11-run command line simulator.</div><div class=""><br class=""></div><div class="">To build, I use the “waf” build tool ( <a href="http://waf.io" class="">waf.io</a> ). When you build for erc32 for example, the executable program will be in :</div><div class="">rki/build/sparc-rtems4.11-erc32/rki.elf</div><div class="">rki.elf is the final executable that is loaded into the simulator.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class="">Alan</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Jan 2, 2017, at 8:54 AM, Denis Obrezkov <<a href="mailto:denisobrezkov@gmail.com" class="">denisobrezkov@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hello, can you point me to some manual how to create a simple application with rtems?<br class=""></div>I read a lot of your tutorials like POSIX  tutorial, C Guide, Ada guide, Dev. environment guide, but I can't find out how to create a simple application.<br class=""><br class=""></div>I found that I am not alone:<br class=""><a href="http://rtems-users.rtems.narkive.com/rQP1z7Pg/rtems-application-tutorial" class="">http://rtems-users.rtems.narkive.com/rQP1z7Pg/rtems-application-tutorial</a><br class=""><a href="http://stackoverflow.com/questions/23794870/rtems-how-to-compile-and-execute-programs" class="">http://stackoverflow.com/questions/23794870/rtems-how-to-compile-and-execute-programs</a><br class=""><br class=""></div>I saw examples for rtems, but I have other questions, for example:<br class=""></div>Where should I place my source code? Should I place it inside of a rtems tree?<br class=""></div><div class="">How should I organize my development environment? For example, I want to make an application for a host computer, make myself sure that it works, and then cross-compile it for a target board.<br class=""></div>What is the structure of an rtems binary? is it something like a "newlib.a+rtems_kernel.a+userapplication.a".img? <br class=""><br class=""><br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature">Regards, Denis Obrezkov</div>
</div></div></div></div></div></div></div>
_______________________________________________<br class="">users mailing list<br class=""><a href="mailto:users@rtems.org" class="">users@rtems.org</a><br class="">http://lists.rtems.org/mailman/listinfo/users</div></blockquote></div><br class=""></div></div></body></html>