Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: dhanraj_kmr on August 28, 2013, 03:04:52 AM

Title: Programmed successfully by Flash magic but code is not running
Post by: dhanraj_kmr on August 28, 2013, 03:04:52 AM
Hi All,
I have a custom board with LPC2388 with reference of MCB2300 board. After some struggle now i am able to download the code into board and verify it using Flashmagic.

My problem is that board is not coming up with the buzzer which i had enabled in software. I have another problem with the same board is that not deducting Ulink-ME j-tag with internal or external clock.

My first question is that if there is any problem with the on board external crystal, will the falshmagic programming possible?

Second question is that how to verify a crystal is working or not?

Title: Re: Programmed successfully by Flash magic but code is not running
Post by: Andy Ayre on August 29, 2013, 01:28:34 AM
Section 4 of chapter 27 "Flash Memory Programming Firmware" in the LPC23xx user manual from NXP states:

"When ISP mode is entered after a power on reset, the IRC and PLL are used to generate a CCLK of 14.748MHz."

So ISP will work if the external crystal is not present.

Put a scope on the XTAL pins. There should be sine waves.

Andy
Title: Re: Programmed successfully by Flash magic but code is not running
Post by: dhanraj_kmr on August 29, 2013, 04:26:25 AM
Hi,
Thanks for your reply.

Scope is not showing any sine wave on both main oscillator and RTC oscillator. So i disabled main oscillator and enabled the internal oscillator in startup file and checked the firmware. But no difference it made.

Is there any other way for checking it?

I have verified the hardware schematic and PCB designs. No clue so far.
Title: Re: Programmed successfully by Flash magic but code is not running
Post by: Andy Ayre on August 30, 2013, 01:03:22 AM
If ISP is working then the device is probably ok and the problem is in your code.

I suggest you try one of the examples from NXP that is known to work with the LPC2388. Then gradually change the example into what you want step by step, retesting after each change.

Andy