EmbeddedRelated.com
Forums
Memfault Beyond the Launch

how to use ethernet&usb ram for general purpose on lpc2368

Started by Mehmet Kurnaz January 23, 2007
Hi all.
I want to use ethernet and usb ram for general purpose sram.I won't use ethernet and usb only need ram.How do I modoify scatter file?How can i use these rams?
So Thanks
Mehmet Kurnaz

---------------------------------
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.

An Engineer's Guide to the LPC2100 Series

Hi all.
> I want to use ethernet and usb ram for general purpose sram.I won't use ethernet and usb only need ram.How do I modoify scatter file?How can i use these rams?
> So Thanks
> Mehmet Kurnaz
>
>---------------------------------
>Now that's room service! Choose from over 150,000 hotels
>in 45,000 destinations on Yahoo! Travel to find your fit.
>
>
>

Hello Mehmet,

To access the RAM you need to set the bit in the PCONP register.

Regards,

Peter
> Hello Mehmet,
>
> To access the RAM you need to set the bit in the PCONP register.
>
> Regards,
>
> Peter
>

If you just put data into this SRAM it should work after enabling the
Ethernet block. Check the Errata Sheet, there is no option to execute
code from this particular SRAM.

Bob
you need also change your linker for it.

lpc2100_fan wrote:
> Hello Mehmet,
>
> To access the RAM you need to set the bit in the PCONP register.
>
> Regards,
>
> Peter
>

If you just put data into this SRAM it should work after enabling the
Ethernet block. Check the Errata Sheet, there is no option to execute
code from this particular SRAM.

Bob

---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
Yes i read errata and i did it.In main i firstly made PCONP |= 0x40000000; for enabling the ethernet.But nothing become.
Nader wrote that i need chance linker.In linker dialog i didn't choose "Use Memory Layout from target dialog" So i use scatter file.And from 4 subcheckbox i only choosed "Report 'maight fail' Conditions as Errors".Must i choose "Make R/W Section Positions Independent"?Also i tried this but it didn't be useful.
I use usbram witout any problem.But it is only 8k and i need 16k of ethernet too.
So thanks

Mehmet Kurnaz

nader chinichian wrote:
you need also change your linker for it.

lpc2100_fan wrote:
> Hello Mehmet,
>
> To access the RAM you need to set the bit in the PCONP register.
>
> Regards,
>
> Peter
>

If you just put data into this SRAM it should work after enabling the
Ethernet block. Check the Errata Sheet, there is no option to execute
code from this particular SRAM.

Bob

---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.



---------------------------------
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
Hi again.
I can use ethernet ram but there is still some problem.I can't use ethernetRam for some object files.
interrupt.o
serialport.o
libspace.o
lpc2300.o (stack and heap)

interrupt.o makes interrupt enable,open, clear and release.
serialport.o writes and reads uarts
the others are for system.

If i load these files to mainRam or usbRam there is no problem.I think on ethernetRam interrupts can't execute, but timer interrupt executes(i loaded isr of timer to ethernet ram there is no problem).Is there any difference between uart interrupt and timer interrupt?
Is there any restrict for ethernetRam about interrupts?
I need help.
So thanks

Mehmet Kurnaz

---------------------------------
Everyone is raving about the all-new Yahoo! Mail beta.
[QUOTE]
To access the RAM you need to set the bit in the PCONP register.
[/QUOTE]
HI,
I have Set the PCONP to access Ethernet RAM. This is the first istruction of
my main program.
I'm using a scatter file for a complex memory map. So I have create a
section in the Ethernet RAM in order to put some of my data there.
In details, i have put all my +RW-DATA, +RO-DATA, +ZI of any my module
there.
At the fistt time all worked fine, but i have noticed that any time i add a
module there is some chances of failure.
Where is the mistake?
Rudy Barbieri
rudy.barbieri[chiocciola]destura.it
Read the errata for the chip. You cannot execute code from ethernet ram,
you can only store data there.

Baldur

On Thu, Jan 25, 2007 at 03:40:55AM -0800, Mehmet Kurnaz wrote:
> Hi again.
> I can use ethernet ram but there is still some problem.I can't use ethernetRam for some object files.
> interrupt.o
> serialport.o
> libspace.o
> lpc2300.o (stack and heap)
>
> interrupt.o makes interrupt enable,open, clear and release.
> serialport.o writes and reads uarts
> the others are for system.
>
> If i load these files to mainRam or usbRam there is no problem.I think on ethernetRam interrupts can't execute, but timer interrupt executes(i loaded isr of timer to ethernet ram there is no problem).Is there any difference between uart interrupt and timer interrupt?
> Is there any restrict for ethernetRam about interrupts?
> I need help.
> So thanks
>
> Mehmet Kurnaz
>
>
>
>
>
> ---------------------------------
> Everyone is raving about the all-new Yahoo! Mail beta.
>
>
>
>
> Yahoo! Groups Links
hi Baldur
Firstly so thanks for your answer.
You said that cannot execute code from ethernet but code(RO) is in flash.Also timer codes (RW) and a few codes(RW) are in ethernetRam and they execute without problem.my sct file is below

LR_IROM1 0x00000000 0x00080000 { ; load region
ER_IROM1 0x00000000
{ ; load address = execution address
*.o (RESET, +First)
* (+RO)
}
; RW_IRAM1 0x40000000 0x00008000
; { ; RW data mainRam
; * (+RW +ZI)
; }
RW_IRAM2 0x7FE00000 0x00003FFF
{
; * (+RW +ZI)
; serialport.o (+RW +ZI)
; interrupt.o (+RW +ZI)
clock-arch.o (+RW +ZI)
deneme.o (+RW +ZI)
}
RW_IRAM3 0x7FD00000 0x00001FFF
{
* (+RW +ZI)
}
}
As you see clock-arch.o(timers codes) and deneme.o are in ethernetRam and others(uarts codes...) are in usbRam.Application with this sct file runs without problem.
So thanks

Mehmet Kurnaz
Baldur Gislason wrote:
Read the errata for the chip. You cannot execute code from ethernet ram,
you can only store data there.

Baldur

On Thu, Jan 25, 2007 at 03:40:55AM -0800, Mehmet Kurnaz wrote:
> Hi again.
> I can use ethernet ram but there is still some problem.I can't use ethernetRam for some object files.
> interrupt.o
> serialport.o
> libspace.o
> lpc2300.o (stack and heap)
>
> interrupt.o makes interrupt enable,open, clear and release.
> serialport.o writes and reads uarts
> the others are for system.
>
> If i load these files to mainRam or usbRam there is no problem.I think on ethernetRam interrupts can't execute, but timer interrupt executes(i loaded isr of timer to ethernet ram there is no problem).Is there any difference between uart interrupt and timer interrupt?
> Is there any restrict for ethernetRam about interrupts?
> I need help.
> So thanks
>
> Mehmet Kurnaz
>
> ---------------------------------
> Everyone is raving about the all-new Yahoo! Mail beta.
>
>
> Yahoo! Groups Links

---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and
always stay connected to friends.

Memfault Beyond the Launch