<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 4/28/2013 9:43 AM, Binkowski, Cassio
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAG93Rg7N38nZzrrH=Rk7uuiTU+CQEo1pKH4P8R3kHkzxS9fYEQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Ok. I cloned the repo and was able to make it./
        <div><br>
        </div>
        <div style="">Trying to run sim-scripts/psim gives me the
          following: "Unable to find a way to run powerpc/psim"</div>
        <div style=""><br>
        </div>
        <div style="">
          Trying to run sim-scripts/psim-gdb gives me the
          following: "Unable to find a GDB for powerpc along your PATH"</div>
        <div style=""><br>
        </div>
      </div>
    </blockquote>
    Is powerpc-rtems4.11-gdb in your PATH?<br>
    <br>
    This is just a script that wraps gdb. It writes a device file and
    invokes powerpc-rtemsXXX-gdb<br>
    with the appropriate arguments.<br>
    <blockquote
cite="mid:CAG93Rg7N38nZzrrH=Rk7uuiTU+CQEo1pKH4P8R3kHkzxS9fYEQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">I have added /rtems-testing/bin to the PATH.</div>
        <div style=""><br>
        </div>
      </div>
    </blockquote>
    That is how you found psim and psim-gdb. Where is
    powerpc-rtems4.11-gdb<br>
    <blockquote
cite="mid:CAG93Rg7N38nZzrrH=Rk7uuiTU+CQEo1pKH4P8R3kHkzxS9fYEQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style="">
        </div>
        <div style="">Do you have any ideas?</div>
        <div style=""><br>
        </div>
        <div style="">Thanks.</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Sun, Apr 28, 2013 at 10:27 AM, Joel
          Sherrill <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:Joel.Sherrill@oarcorp.com" target="_blank">Joel.Sherrill@oarcorp.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <pre style="font-size:10.0pt;font-family:Tahoma;word-wrap:break-word">Invoking the PowerPC simulator to run the psim bsp requires a complicated invocation with a device tree file.  Trying to remember all the nuances of invoking each simulator is why rtems-testing/sim-scripts exists. 

 Clone the repo. Type make and you will get psim and psim-gsb scripts which should work

Gedare Bloom <<a moz-do-not-send="true" href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>> wrote:

</pre>
              <div>
                <div class="h5">
                  <div>
                    <p>Try powerpc-rtems4.11-run filename.exe</p>
                    <p>Or check out rtems-testing.git and use the
                      sim-scripts/psim path/to/filename.exe</p>
                    <div class="gmail_quote">On Apr 27, 2013 10:12 PM,
                      "Binkowski, Cassio" <<a moz-do-not-send="true"
                        href="mailto:cassioiks@gmail.com"
                        target="_blank">cassioiks@gmail.com</a>>
                      wrote:<br type="attribution">
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr">Ok. Installed it.
                          <div><br>
                          </div>
                          <div>When I try to run my .exe (and an example
                            one) it returns the following:</div>
                          <div><br>
                          </div>
                          <div>
                            <div><i>rtems-4.10.99.0(PowerPC/Generic
                                (classic FPU)/psim) PANIC cannot
                                initialize exceptions</i></div>
                            <div><i>core_find_mapping() - access to
                                unmaped address, attach a default map to
                                handle this - addr=0xc131000
                                nr_bytes=0x4 processor=0x7bfe000
                                cia=0x16dc</i></div>
                            <div><i><br>
                              </i></div>
                            <div>If I type "bt" in the command line, it
                              returns "Target is executing.".</div>
                            <div><br>
                            </div>
                            <div>Does anybody know what can be done?</div>
                            <div><br>
                            </div>
                            <div>Thanks.</div>
                          </div>
                        </div>
                        <div class="gmail_extra"><br>
                          <br>
                          <div class="gmail_quote">On Sat, Apr 27, 2013
                            at 9:22 PM, Joel Sherrill <span dir="ltr">
                              <<a moz-do-not-send="true"
                                href="mailto:Joel.Sherrill@oarcorp.com"
                                target="_blank">Joel.Sherrill@oarcorp.com</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div>
                                <pre style="font-size:10.0pt;font-family:Tahoma;word-wrap:break-word">You would have had to explicitly install or build gdb. PowerPC gdb is supported and uses the psim bsp.

"Binkowski, Cassio" <<a moz-do-not-send="true" href="mailto:cassioiks@gmail.com" target="_blank">cassioiks@gmail.com</a>> wrote:

</pre>
                                <div>
                                  <div>
                                    <div>
                                      <div dir="ltr">Hi all,
                                        <div><br>
                                        </div>
                                        <div>I have built RTEMS from
                                          source for PowerPC a while
                                          ago, but I have just realized
                                          there is no
                                          powerpc-rtems4.11-gdb file,
                                          thus not allowing me to test
                                          my .exe.</div>
                                        <div><br>
                                        </div>
                                        <div>Is that correct? Have I
                                          built it wrongly? Is there
                                          another way to test it?</div>
                                        <div><br>
                                        </div>
                                        <div>Thanks.</div>
                                        <div>Cassio</div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                        <br>
                        _______________________________________________<br>
                        rtems-users mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:rtems-users@rtems.org"
                          target="_blank">rtems-users@rtems.org</a><br>
                        <a moz-do-not-send="true"
                          href="http://www.rtems.org/mailman/listinfo/rtems-users"
                          target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
                        <br>
                      </blockquote>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research & Development 
<a class="moz-txt-link-abbreviated" href="mailto:joel.sherrill@OARcorp.com">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805 
Support Available                (256) 722-9985 </pre>
  </body>
</html>