[En-Nut-Discussion] EIR and running code in XRAM

Harald Kipp harald.kipp at egnite.de
Fri Sep 18 12:50:49 CEST 2015


Hi Charlie,

On 16.09.2015 18:18, C. Bonnemayer wrote:

> As a test program I use the uart example which is provided whith ethernut. I
> use SAM-BA 2.15 to upload the code to the board. When I save the code to
> sdram (after enabling the sdram) it does save and compare the code
> correctly, but a go 0x20000000 (that's 7 times 0) just does nothing.

Not sure about the compare. SDRAMs are tricky and may contain the right
code...until after a few milliseconds later...

When code is uploaded directly to SDRAM, one has to make sure, that the
programmer correctly initialized the SDRAM. Unfortunately I didn't try
SAM-BA for a long time, but typically use OpenOCD with the EIR.

http://www.ethernut.de/en/hardware/eir/openocd_sdram.html


> When I try a for sdram precompiled example from Atmels at91sam7se-ek
> software package it just runs fine. Therefore  I think there's something
> wrong with the at91sam7se512_xram.ld linker script or the
> crtat91sam7se512_xram.s startup file, but I have just too little knowledge
> about this.

Just a few weeks ago I updated an older application on the EIR
(debugging in SDRAM, final in Flash) without any problems. I used a
rather new toolchain, but a modified Nut/OS 5.1. If you still can't
solve it with the information above, I can grab out the board and try
again with the official version.

Regards,

Harald



More information about the En-Nut-Discussion mailing list