EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Can’t seem to program a target with J-Link

Started by kender_a September 28, 2009
Colleagues,

Apologies for the newbie question, it's my first attempt with IAR
tools. I have a board with LPC2368. When I connect J-Link and run
JLink.exe, it identifies one JTAG device and says that it's ARM7.
It suggests that wiring of JTAG is correct. When I try to download a
simple program from Embedded Bench into the chip, it doesn't verify
and I get warnings:

Verify error at address 0x00000093, target byte: 0xFF, byte in file:
0x4B

Verify error at address 0x00000094, target byte: 0xFF, byte in file:
0x9C
Could you help me identify causes of this problem?

Cheers,

- Nick



An Engineer's Guide to the LPC2100 Series

I wonder if you have the "target" set correctly in the IAR setup? If not, it won't program. :(
--- In l..., "kender_a" wrote:
> Colleagues,
>
> Apologies for the newbie question, it's my first attempt with IAR
> tools. I have a board with LPC2368. When I connect J-Link and run
> JLink.exe, it identifies one JTAG device and says that it's ARM7.
> It suggests that wiring of JTAG is correct. When I try to download a
> simple program from Embedded Bench into the chip, it doesn't verify
> and I get warnings:
>
> Verify error at address 0x00000093, target byte: 0xFF, byte in file:
> 0x4B
>
> Verify error at address 0x00000094, target byte: 0xFF, byte in file:
> 0x9C
> Could you help me identify causes of this problem?
>
> Cheers,
>
> - Nick
>
>
>

The "target" was initially set to ARM7TDMI-S. Then I've changed it to LPC2368 (my chip). But I'm still getting the same warnings during verification that target memory doesn't match the file.

- Nick

--- In l..., "redwire85" wrote:
>
> I wonder if you have the "target" set correctly in the IAR setup? If not, it won't program. :(
> --- In l..., "kender_a" wrote:
> >
> >
> > Colleagues,
> >
> >
> >
> > Apologies for the newbie question, it's my first attempt with IAR
> > tools. I have a board with LPC2368. When I connect J-Link and run
> > JLink.exe, it identifies one JTAG device and says that it's ARM7.
> > It suggests that wiring of JTAG is correct. When I try to download a
> > simple program from Embedded Bench into the chip, it doesn't verify
> > and I get warnings:
> >
> > Verify error at address 0x00000093, target byte: 0xFF, byte in file:
> > 0x4B
> >
> > Verify error at address 0x00000094, target byte: 0xFF, byte in file:
> > 0x9C
> >
> >
> > Could you help me identify causes of this problem?
> >
> >
> >
> > Cheers,
> >
> > - Nick
> >

Update

In the Project -> Options - > Debugger I didn't have the "Use flash loader(s)" box checked. I've checked it. The list of flash loaders now says ".(default)". My target is set to LPC2368. When I run the debugger, it tries to download to the target and generates a different error:

Fatal error: Write memory error @ address 0xE01FC10C, word access: Memory access timeout.

Probably the initial error got fixed. But there's something else not quite right.

- Nick

--- In l..., "kender_a" wrote:
>
>
> Colleagues,
>
>
>
> Apologies for the newbie question, it's my first attempt with IAR
> tools. I have a board with LPC2368. When I connect J-Link and run
> JLink.exe, it identifies one JTAG device and says that it's ARM7.
> It suggests that wiring of JTAG is correct. When I try to download a
> simple program from Embedded Bench into the chip, it doesn't verify
> and I get warnings:
>
> Verify error at address 0x00000093, target byte: 0xFF, byte in file:
> 0x4B
>
> Verify error at address 0x00000094, target byte: 0xFF, byte in file:
> 0x9C
>
>
> Could you help me identify causes of this problem?
>
>
>
> Cheers,
>
> - Nick


The 2024 Embedded Online Conference