Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | Moving from 2106 to 2138

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Moving from 2106 to 2138 - Nice Guy - Jul 26 3:47:00 2005

In a school project we were originally going to use a 2106, but have
decided to move to a 2138 due to extra GPIO pins and External
Interrupts that are edge sensitve. We have been sucessfully
developing for the 2106 with no problems using GCC and .ld and crt.s
files from an example project. What will need to be changed when
going to the 2138. I know the following will need to be corrected in
the .ld file:

/* Memory Definitions */
MEMORY
{
ROM (rx) : ORIGIN = 0x00000000, LENGTH = 0x00020000
RAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00010000
}

Is this all that will need to be changed?

Thanks,
Reggie McMurtrey




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: Moving from 2106 to 2138 - Thiadmer Riemersma ITB CompuPhase - Jul 26 5:26:00 2005

That's basically it; you may also want to set the stack end in the .ld
file. Here are the top few lines from my lpc2138.ld file:

MEMORY {
flash : ORIGIN = 0, LENGTH = 500K
ram : ORIGIN = 0x40000000, LENGTH = 32K
}

__stack_end__ = 0x40000000 + 32K - 4;

One thing to look out for, is that the bootloader of the LPC2138 is 12
kiB, instead of 8 kiB of the LPC2106. That is why I set the Flash
length at 500 kiB (500 + 12 for the bootloader = 512 kiB).

Thiadmer




(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )