EmbeddedRelated.com
Forums

Migrating from LPC2132 to LPC2138

Started by hschew00 May 26, 2010
I have a working board with LPC2132 on it. Due to its flash size concern, I replace it with LPC2138. Nothing change on the C codes and its header LPC213x.h. The compiler that I use is
IDE-Version:
Vision3 V3.23
Copyright (c) Keil Elektronik GmbH / Keil Software, Inc. 1995 - 2005
Tool Version Numbers:
Toolchain Path: C:\Keil\ARM\BIN\
C Compiler: CA.Exe V2.42
Assembler: AA.Exe V2.40b
Linker/Locator: LA.Exe V2.42
Librarian: LIBA.Exe V4.26
Hex Converter: OHA.Exe V2.10
CPU DLL: SARM.DLL V1.29
Dialog DLL: DARMP.DLL V1.10c
Target DLL: BIN\UL2ARM.DLL V1.14a
Dialog DLL: TARMP.DLL V1.10

Options for Target Flash is set to LPC2138. Code optimization stays the same for (2: Register Variables, Favor Code size, Use Thumb mode)

On the Startup.s, only PLL Setup is checked with MSEL is set to 4 and PSEL is set to 2 (same settings used in LPC2132)

I download the code to the flash via LPC2000 with device set to LPC2138. Download is successful, but code execution is erratic, sometimes freeze and reset, sometimes garbage pops up on the display.

The same code run fine without any problem on LPC2132. What might be the issue?

Hian

An Engineer's Guide to the LPC2100 Series