<div dir="ltr">That did it. The path /opt/rtems-4.11 was not added to the PATH in that Terminal session. When I did it, it started working.<div>Thanks!<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 28, 2013 at 1:43 PM, Joel Sherrill <span dir="ltr"><<a 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 text="#000000" bgcolor="#FFFFFF">
    <div>On 4/28/2013 9:43 AM, Binkowski, Cassio
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Ok. I cloned the repo and was able to make it./
        <div class="im"><div><br>
        </div>
        <div>Trying to run sim-scripts/psim gives me the
          following: "Unable to find a way to run powerpc/psim"</div>
        <div><br>
        </div>
        <div>
          Trying to run sim-scripts/psim-gdb gives me the
          following: "Unable to find a GDB for powerpc along your PATH"</div>
        <div><br>
        </div>
      </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.<div class="im"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>I have added /rtems-testing/bin to the PATH.</div>
        <div><br>
        </div>
      </div>
    </blockquote></div>
    That is how you found psim and psim-gdb. Where is
    powerpc-rtems4.11-gdb<div><div class="h5"><br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
        </div>
        <div>Do you have any ideas?</div>
        <div><br>
        </div>
        <div>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 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 href="mailto:gedare@rtems.org" target="_blank">gedare@rtems.org</a>> wrote:

</pre>
              <div>
                <div>
                  <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 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 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 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 href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a><br>
                        <a 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>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
Joel Sherrill, Ph.D.             Director of Research & Development 
<a href="mailto:joel.sherrill@OARcorp.com" target="_blank">joel.sherrill@OARcorp.com</a>        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805 
Support Available                <a href="tel:%28256%29%20722-9985" value="+12567229985" target="_blank">(256) 722-9985</a> </pre>
  </font></span></div>

</blockquote></div><br></div></div></div>