EmbeddedRelated.com
Forums

Using Ethernet/USB RAM as General Purpose SRAM

Started by srav...@gmail.com May 12, 2009
Hello,
I am trying to access Ethernet/USB RAM as general purpose SRAM in LPC2378. For this i configured PCONP initialization of USB & Ethernet Bit in KEIL compiler i configured IRAM2 address (0x7FD0 0000-1FFF & 0x7FE0 0000-3FFF. but i am unable to access the USB/Ethernet RAM a general purpose RAM.

Waiting for your reply.
Ravi

An Engineer's Guide to the LPC2100 Series

Hi:

For Keil uVision, open the "Options for Target" dialog window, select the "Linker" tab. You have to check the box "Use Memory Layout from Target Dialog", so that the linker uses the memory you configured.

If that checkbox is not checked, the linker uses a scatter file to allocate the Flash/RAM. Alternative, you can also edit the scatter file to add the RAM memory regions for the linker to use. However, the syntax of the scatter file is rather cumbersome, and needs more knowledge of the region names, etc., but gives you much more flexibility (for example, to load the code in more that one section of flash, allocate specific RAM blocks to specific pieces of code, etc)

Regards,

Alex.
Hi Alex,

Thanks for your reply.

I tried whatever your mentioned, but still i am getting same error.

Here with i am attaching the Keil option target file.

Please give me the suggestion.

ravi
Hi:

The file was not attached correctly.

Could you copy and paste it instead, in the body of the message?

Thanks,

Alex
Hi Alex,
i am getting following error:
1. Error: L6406W: No space in execution regions with .ANY selector matching
section .bss (uart0_tx.o (project name))

2. Error: L640W: Sections of aggregate size 0x7d00 bytes could not fit into
.ANY selector(s).

Option-Target-

IRAM1: 0x40000000 0x7FFF

IRAM2: 0x7FD00000- 0x1FFF

Option-Linker (Selected blow check box)

Use Memory Layout from Target Dialog

Report might fail conditions as error

Ravi