EmbeddedRelated.com
Forums

Problem while building sample code for LPC2468

Started by Dinesh April 17, 2010
Hi,

I'm a newbie to the world of embedded systems.

I'm using Embedded Artists LPC2468 board + Keil uVision3.

I downloaded the sample code bundle
"code.bundle.lpc23xx.lpc24xx.uvision.zip" from the NXP website.

I'm getting the following error while I build the code for EA_LCD.
.\Obj\ealcd_debug.axf: Error: L6203E: Entry point (0x40000000) lies
within non-root region RW_IRAM1

I changed the target to lpc2468 coz by default it was LPC2378

The readme file says By default, the test program is for Keil MCB2300
board. Be aware that, in order to
test Embedded Artists' LPC2400 board, such as EA_LCD, EXTMEM including
SDRAM, ext.
flash, ext. NAND flash, in target.h, the board definition needs to be
changed.

Can somebody help me on how this change to target.h is to be made ????

Thanks

An Engineer's Guide to the LPC2100 Series

--- In l..., "Dinesh" wrote:
>
> The readme file says By default, the test program is for Keil MCB2300
> board. Be aware that, in order to
> test Embedded Artists' LPC2400 board, such as EA_LCD, EXTMEM including
> SDRAM, ext.
> flash, ext. NAND flash, in target.h, the board definition needs to be
> changed.
>
> Can somebody help me on how this change to target.h is to be made ????
>

The comments in target.h say:

/* Only choose one of them below, by default, it's Keil MCB2300 */
#define ENG_BOARD_LPC24XX 0
#define KEIL_BOARD_LPC23XX 1
#define EA_BOARD_LPC24XX 0
#define IAR_BOARD_LPC23XX 0

In the C programming language 0 represents false and 1 represents true so my guess is that the change you need to make is:

/* Only choose one below. e.g. the Embedded Artists LPC2468 */
#define ENG_BOARD_LPC24XX 0
#define KEIL_BOARD_LPC23XX 0
#define EA_BOARD_LPC24XX 1
#define IAR_BOARD_LPC23XX 0

--
Chris Burrows
CFB Software
Armaide: ARM Oberon-07 Development System
http://www.armaide.com

--- In l..., "cfbsoftware1" wrote:
>
> --- In l..., "Dinesh" wrote:
> >
> > The readme file says By default, the test program is for Keil MCB2300
> > board. Be aware that, in order to
> > test Embedded Artists' LPC2400 board, such as EA_LCD, EXTMEM including
> > SDRAM, ext.
> > flash, ext. NAND flash, in target.h, the board definition needs to be
> > changed.
> >
> > Can somebody help me on how this change to target.h is to be made ????
> > The comments in target.h say:
>
> /* Only choose one of them below, by default, it's Keil MCB2300 */
> #define ENG_BOARD_LPC24XX 0
> #define KEIL_BOARD_LPC23XX 1
> #define EA_BOARD_LPC24XX 0
> #define IAR_BOARD_LPC23XX 0
>
> In the C programming language 0 represents false and 1 represents true so my guess is that the change you need to make is:
>
> /* Only choose one below. e.g. the Embedded Artists LPC2468 */
> #define ENG_BOARD_LPC24XX 0
> #define KEIL_BOARD_LPC23XX 0
> #define EA_BOARD_LPC24XX 1
> #define IAR_BOARD_LPC23XX 0
>
> --
> Chris Burrows
> CFB Software
> Armaide: ARM Oberon-07 Development System
> http://www.armaide.com
>

I am also getting same error message. Even changing the Board selection in target.h There is something wrong with Read/Write Read only areas selection.

Still messing with that problem.