EmbeddedRelated.com
Forums

LPC2368 that won't start without JTAG

Started by Jan Thogersen December 15, 2006
Hi:

Thank you for your answer. Could you indicate how to include the
checksum for the binary, when executing the flash write?

Thanks.

Alex

An Engineer's Guide to the LPC2100 Series

I've not used the newer 23xx range but I imagine they still work the same
way - if not it'll be no surprise it doesn't work :)
The ISP utility 'should' be putting in the correct checksum when you flash
the board with it. From memory it lives in the 32 bit space after the data
abort vector. (You should see a NOP in the middle of the vector definitions
in startup.s if you're using keil).

Once flashed you should be able to see this value with the JTAG etc.

Andy
Hi:

Thanks.
I checked and indeed a checksum is written at address 0x00000014.

Is there a way to verify that it is the correct checksum?

Still the test code does not seem to run. However, the example
provided with the MCB2300 board does indeed flashes and run.

Regards,

Alex
Hi Alex,

If you use the Phillips flash utility *shudder* to load your hex file,
it will automatically insert the correct checksum into address 0x14.
You can also use this program to check an existing checksum by using
"Flash buffer operations" from the Buffer menu.

Regards, James Brown
Alex,

Windows calculator is your friend. Simply go to hex mode and add the
(32 bit) words from address 0x00 to address 0x1C, 8 words in total.
If the checksum in address 0x14 is correct the total sum truncated to
32 bits should be 0. Be sure though that you are reading the words in
the correct byte order (little, big endian).

Regards, James Brown
i look for checksum and it is true.Also i look my other device(lpc2138).The first 16 bytes of lpc2138 and lpc2368 are same.lpc2138 has a program and run correctly.lpc2368 device has a sample uart program but doesn't run.It can't go out from bootloader mode.I loaded two program to two device with flash magic.but the program on 2138 is compiled with Keil CARM compiler and the program on 2368 is compiled with RealView compiler.
if checsum true and boot pin is ok why the device stays bootloader mode.Is there third reason for this.
Is this test code self-written or have you picked it up from the archives
here?

Andy
Hi again.
After a little fight i solved the bootloder mode problem by your helps.But now code doesn't execute.
I download the code from http://www.standardics.nxp.com/support/boards/mcb2300/~LPC2368/ (Sample Code Bundle for LPC23xx Peripherals using Keil's μVision, V1.10).
And I builded UART example with RealView compiler.I can't compiler this example with Keil CARM compiler.And i use flash magic for loading to flash.But there is nothing.

I need a basic sample(maybe uart) with startup.s, that can be compiled with Keil CARM compiler.
So thanks for your helps.
Mehmet Kurnaz
Hi Mehmet:

I have the same issues. The examples from the package don't seem to run.

However, the BLINKY example that you can find at:

C:\Program Files\Keil\ARM\RV30\Boards\Keil\MCB2300\Blinky

in the installation of Keil uVision 3, does indeed compile, and run. I
downloaded it with FlashMagic to a MCB2360 Eval Board and it runs
without any problem from Flash. This example has UART, Timer, GPIO and
ADC code.

So, I took that example and started to modify it, to add code for my
test and application and it is working so far.

One exercise yet to be done is to take the LPC23xx.s startup file from
that BLINKY example and use it with the examples from the package to
see if they run. I'll try that later.

Let us know if you get the BLINKY example running...

Regards,

Alex
Hi Andy:

I tried to modify the code provided for the MCB2300 Evaluation board
from Keil (available in the Files, and in NXP website). Even without
modification, those examples don't run.

The only example that seems to work is the BLINKY example that comes
with the Keil uVision installation (latest).

Regards,

Alex