<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 5, 2018, 8:45 AM Hugues  Jérôme <<a href="mailto:hugues.jerome@gmail.com">hugues.jerome@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Sebastian,<br>
<br>
> Le 5 sept. 2018 à 14:20, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank" rel="noreferrer">sebastian.huber@embedded-brains.de</a>> a écrit :<br>
> <br>
> Hello Hugues,<br>
> <br>
> On 05/09/18 14:02, Hugues Jérôme wrote:<br>
>> Hi,<br>
>> <br>
>> I’m investigating a memory alignement issue using the GR740 BSP.<br>
>> It appears we have a memory corruption when the BSS is bigger than 4MB.<br>
> <br>
> does the ELF file look all right? Is the stack pointer at the end of RAM right at the entry point (start)? Is the BSS section properly zeroed in the startup sequence?<br>
<br>
I’m not sure I can provide any positive answer to these questions.<br>
We used the default GR740 BSP, compiled by Thanassis Tsiodras. We did not change anything<br>
<br>
As far as i can see, the BSS is zeroed by start.S<br>
do you have any recommendation to perform the diagnosis you prescribe ?<br>
<br>
As far as I can provide details<br>
size (from binutils) can parse the ELF file, but that does not mean a lot<br>
stack pointer is set by the linker script (if I understood correctly this part), and we did not change it<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Just to confirm things, can you break in start.S near where the clear bss loop is and make sure something stupid isn't going on. </div><div dir="auto"><br></div><div dir="auto">My first two completely random thoughts is that something memory regions are overlapping or math in start.S ends up with that happening.</div><div dir="auto"><br></div><div dir="auto">The second is that perhaps some memory controller initialization isn't quite right.</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Regards,<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div></div></div>