<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<pre style="word-wrap:break-word; font-size:10.0pt; font-family:Tahoma; color:black">Sorry.. Forgot to follow up on board differences. Psim is not the same as any real hardware. Each bsp matches a specific hardware set. Psim is configured to have 16mb of ram and I think your partition base addresses are beyond that. 

Gedare is right.. On a simulator, malloc the memory for partitions for simplicity. On real how you can do that or arrange the linker script to have a special reserved area.

--joel

Gedare Bloom <gedare@rtems.org> wrote:

</pre>
<div>
<p>You tell the partitions where to start, so just give the second partition the right address. You have to be sure the memory you use is available both in the hw as real memory and also not used for other purposes. Probably you can malloc all the memory you
 need at startup time and pass pointers into the allocated buffer to partition create.<br>
-Gedare</p>
<div class="gmail_quote">On May 1, 2013 7:07 PM, "Binkowski, Cassio" <<a href="mailto:cassioiks@gmail.com">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">Hmmm. The 'Testing Task' does not have a while(1) loop and I'm not deleting it. Could that be it?
<b><- Yup, that's it. Just tested. Can you please explain how did you arrive at this conclusion?</b>
<div><br>
</div>
<div>I'm referring to the MPC5200B board. You can see the manual in the following link: <a href="http://www.freescale.com/files/32bit/doc/ref_manual/MPC5200BUM.pdf" target="_blank">http://www.freescale.com/files/32bit/doc/ref_manual/MPC5200BUM.pdf</a></div>
<div><br>
</div>
<div>Now, mentioning the partitions and memory addresses. I'm not quite sure if I'm incrementing addresses correctly. I do want to create a partition right next where the other one finishes.</div>
<div>So, if starting address is 0x10000, the next partition will start at 0x10000 + previousPartitionSize.</div>
<div>Does this make sense?</div>
<div><br>
</div>
<div>Thanks.</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 1, 2013 at 7:49 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">It could be another task exiting. You mentioned loading code.

Psim is a specific simulated hardware environment and does not as configured match any board. If you got addresses from a piece of real hardware, the addresses will not match. What target board's manual are you reading?

"Binkowski, Cassio" <<a href="mailto:cassioiks@gmail.com" target="_blank">cassioiks@gmail.com</a>> wrote:

</pre>
<div>
<div>
<div>
<div dir="ltr">Ok. 
<div><br>
</div>
<div>1) The Init task is already deleting itself after loading the other tasks. Do I have to do something else?</div>
<div><br>
</div>
<div>2) The memory for partitions came from the board data sheet. I based myself on the addresses mentioned there and followed upon. I was creating the first one starting at 0x10000 and incrementing from that according to each partition's size.</div>
<div><br>
</div>
<div>Can you help me set these 2 things up? I'm not really sure how to deal with that memory issue and the internal error as well.</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 1, 2013 at 6:18 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">That address is invalid for psim. Where does the partition memory come from? Here I'd the memory keep for psim

<a href="http://git.rtems.org/rtems/tree/c/src/lib/libbsp/powerpc/psim/startup/linkcmds" target="_blank">http://git.rtems.org/rtems/tree/c/src/lib/libbsp/powerpc/psim/startup/linkcmds</a>

"Binkowski, Cassio" <<a href="mailto:cassioiks@gmail.com" target="_blank">cassioiks@gmail.com</a>> wrote:

</pre>
<div>
<div>
<div dir="ltr">I'm also getting the following error when I uncomment the function that creates 10 partitions to be used by my application:
<div><br>
</div>
<div><i>core_find_mapping() - access to unmaped address, attach a default map to handle this - addr=0x1000d2c nr_bytes=0x4 processor=0xa8e5000 cia=0x1028c</i><br>
</div>
<div><i><br>
</i></div>
<div>Can you please help?</div>
</div>
</div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 1, 2013 at 5:44 PM, Binkowski, Cassio <span dir="ltr">
<<a href="mailto:cassioiks@gmail.com" target="_blank">cassioiks@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">The file 'events.c' is inside /gdb-7.5.1/sim/ppc.
<div><br>
</div>
<div>I am using psim-gdb testing my own application, it's not an RTEMS example.</div>
<div><br>
</div>
<div>I managed to break right on it, and it stops at:</div>
<div>../../../../../../rtems/c/src/../../cpukit/score/src/interr.c:58<br>
</div>
<div><br>
</div>
<div>Signature is the following:</div>
<div>
<div>the_source=the_source@entry=INTERNAL_ERROR_CORE, is_internal=is_internal@entry=true, </div>
<div>    the_error=the_error@entry=5)</div>
<div><br>
</div>
<div>I have no clue of what it can be. Do you have any idea?</div>
</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, May 1, 2013 at 5:37 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">Where is the file events.c?

Break at the fault handler printing that. 

Does this happen with any rtems provided examples?

Are you using the psim or psim-gdb script to run it?

"Binkowski, Cassio" <<a href="mailto:cassioiks@gmail.com" target="_blank">cassioiks@gmail.com</a>> wrote:

</pre>
<div>
<div>
<div>
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I was just testing my application using PSIM and it is returning the following lines, right after starting a Task:</div>
<div><br>
</div>
<div>
<div><i>rtems-4.10.99.0(PowerPC/Generic (classic FPU)/psim) PANIC ERROR 5</i></div>
<div><i>events.c:404: assertion failed - events->time_from_event > 0</i></div>
</div>
<div><br>
</div>
<div>Has anybody experienced this before?</div>
<div><br>
</div>
<div>Thanks.</div>
<div>Cassio</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">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>
</body>
</html>