--- In l..., "miodragsm" wrote:
>
> Hi all!
>
> I am just starting working with ARM. Before ARM I did some work with
> PIC, 8051 and Coldfire. After initial problems were solved (like
> setting up OpenOCD and Eclipse) I managed to get UART and timers
> working and it's all great.
> Now I have a problem with Ethernet. I base most of my code on LPC23XX
> bundle code from NXP (which is for different compiler but so far I
> managed to get it to work with gcc). As far as I can tell, I have a
> problem with linker script as startup code never gets called, and CPU
> locks somewhere (I can't debug it...). As far as linker script and
> startup code goes, I have used some scripts from various sources I
> found googling but am not sure if they are correct.
>
> Does anyone have working linker script and startup code for LPC2366
> that has ethernet and usb RAM sections configured? Maybe point me to
> the place to start reading about linker scripts and LPC startup code?
>
> Also I tried to change FreeRTOS demo for LPC2368 to work with LPC2366,
> but it also locks and I can't debug it.
>
> I use Yagarto toolchain, OpenOCD, Eclipse and Olimex ARM-USB-TINY
> program/debug adapter. LPC2366 board is custom built.
> Miodrag
>
I forgot to add : I tried MCB2300BasicBlinkLed.rar from Files section,
and it works only if i comment following linker sections:
.usbram (NOLOAD):
{
__usbram_beg__ = .;
*(.dmaram)
__usbram_end__ = .;
} >usbram
.ethram (NOLOAD):
{
__ethram_beg__ = .;
*(.ethram)
__ethram_end__ = .;
} >ethram
I changed flash section in linker to 256K (LPC2366) and commented out
USB initialisation lines from main.c.