EmbeddedRelated.com
Forums

LPC2368 that won't start without JTAG

Started by Jan Thogersen December 15, 2006
> If you read all messages from this thread, you'll find more
> information.

I've read all the posts having 'boot' in the title. If there is an
answer in there, I've missed it.

> If you are using Keil's examples (as posted in the NXP website), there
> is some information missing in the linker's configuration to properly
> create executable files. They compile and link without warning, but
> they don't run once programmed in the MCU.

> The problem is that the Project-> Options -> Linker -? R/O
> base and R/W base are blank.

> By filling with the correct data (R/0 = 0x00000000 R/W = 0x40000000)
> the examples are compiling and running from the flash of the MCB2360.

I'm running gcc. If you read that thread closely, the OP first had
trouble getting his code to boot at all, and then had problems with
running it. The thread morphed into the later problem after he got it
to boot.

> Mehmet Kurnaz wrote
> "After a little fight i solved the bootloder mode problem by your helps.But now code doesn't execute."

So what did the bootloader mode have to do with it ? I checked MEMMAP
for both the code that runs and the code that does and it has the same
value (0x01).

What am I missing ?

An Engineer's Guide to the LPC2100 Series

> Check your setting in the linker field, "Use memory layout
> from target dialog", if this field is checked, you need to go
> to "target dialog" to see what the memory layout looks like.
> In the software example, I think all the memory layout is
> defined in the target dialog area that you don't need to do
> that again in the linker field.
>
> If you don't have this field checked, you need to specify your
> own R/O and R/W and/or create a scatter file.

Alex, Tom -

I believe this "problem" came about in the eval version of the latest
Keil SW (I'm seeing the problem in version 3.5). Keil has added
scatter capabilities in the latest rev, but this feature is NOT
supported in the eval tool (makes sense when you think about it). In
the eval tool, you can't toggle the "use memory layout from target
dialog" - it's grey'ed out - so you have to add the R/O and R/W
fields to get things working again.

Again, I believe you should only see this issue in the eval tool.

Regards,

Steve
Hi Suvidh,

I've the same problem. Can you run the examples with the full version?
Is there a work around for the trail version?

Regards,

Bert-Jan