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).
ThiadmerMessage
Re: Moving from 2106 to 2138
2005-07-26 by Thiadmer Riemersma (ITB CompuPhase)