LPC2138 Program Execution Issue

Hello everybody,

I am using Keil microvision IDE (EVALUATION copy) for my project testing. I am burning hex file through flash magic software using ISP mode.

Initially i wrote simple serial port (uart0) example code.Also added few lines to toggle LED connected to pin P1.24.

Now when i compiled code in Microvision V5 (keil MDK), its serial message showing in my PC hyper terminal. Bit LED (related port pin) state not changed to show blinking.

Hence i copy code & compiled in Microvision Keil 4 IDE, But there nither serial messaging nor led blinking happened.

when i retested same in Keil MDK again serail message shows but not LED, why so ?

I tested all parameters well again & again ( FOSC,CCLK,PCLK  settings, UART0 & port settings). All are correct.

Anybody  has any idea whether my controller is not executing well?

have some found similar issue?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
Author:- Embedded Laboratory
FOSC = 10MHz
CCLK = 60MHz
PCLK = 15MHz
*/
#include <LPC213X.H>
void initClocks(void);
void initGPIO(void);
void toggle_led(void);
void delay_100ms(unsigned char ii);
#define REL_EN (0x01<<22) //p0.22
#define LED1 (0x01<<24) //p1.24
//#define LED2 (0x01<<26) //p1.26
char String[]="Welcome to LPC!!! \n\r\n";
unsigned int delay;
/*********************************************/
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Please guide me.

Regards & thanks,

Kishor.

0