EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

LPC1768 JTAG programming problem

Started by Thomas Weber December 2, 2011
Hello,

when programming the LPC1768 on a custom board I always get verifier
errors. The flash content doesn't change, also with erase all.
All errors are in the first sector.

The program runs into SVC handler after start, when ignoring the
Verifier error.

Any pointers on that?

Thanks in advance.
Thomas Weber
IDE: Rowley Crossworks for ARM 2.1
JTAG: Amontec JTAGkey

An Engineer's Guide to the LPC2100 Series

On 02.12.2011 10:06, Paul Curtis wrote:
>> when programming the LPC1768 on a custom board I always get verifier
>> errors. The flash content doesn't change, also with erase all.
>> All errors are in the first sector.
>>
>> The program runs into SVC handler after start, when ignoring the
>> Verifier error.
>>
>> Any pointers on that?
> Pointer #1: "on a custom board"
>
> Pointer #2: try a non-custom board that CrossWorks supports out of the box.

Hello,

I investigated it a little bit further with a non-custom board.
And the problem is, that the first sector is not erased during erase all.

Can it be prevented by something or can it be a timing problem after reset?
Thomas

On Fri, 2011-12-09 at 14:04 +0100, Thomas Weber wrote:
> On 02.12.2011 10:06, Paul Curtis wrote:
> >> when programming the LPC1768 on a custom board I always get verifier
> >> errors. The flash content doesn't change, also with erase all.

> I investigated it a little bit further with a non-custom board.
> And the problem is, that the first sector is not erased during erase all.
>
> Can it be prevented by something or can it be a timing problem after reset?

Hi Thomas,

You might want to check the power supply decoupling
capacitors. Make sure all the power pins have at least
a 100nF ceramic capacitor.
Most of the flash programming errors I have seen come
by on this forum where related to bad decoupling in
some way or another.

roelof

On 09.12.2011 09:09, roelof 't Hooft wrote:
> You might want to check the power supply decoupling
> capacitors. Make sure all the power pins have at least
> a 100nF ceramic capacitor.
> Most of the flash programming errors I have seen come
> by on this forum where related to bad decoupling in
> some way or another.
>

how do people know what capacitance is enough for the power pins? I
haven't seen anything about it in the docs...maybe I missed that part?
On Fri, 2011-12-09 at 09:28 -0600, Christopher Harvey wrote:
> how do people know what capacitance is enough for the power pins? I
> haven't seen anything about it in the docs...maybe I missed that part?

100nF is a standard value I guess. I also use elco's depending
on the type of power supply used. The value of the elco's also
depends on the current drawn by the electronics connected to it.
And do not forget about choke's. You would use these to seperate
your analog and digital power supply rails.

roelof

On 09.12.2011 16:53, roelof 't Hooft wrote:
>
>
> On Fri, 2011-12-09 at 09:28 -0600, Christopher Harvey wrote:
> > how do people know what capacitance is enough for the power pins? I
> > haven't seen anything about it in the docs...maybe I missed that part?
>
> 100nF is a standard value I guess. I also use elco's depending
> on the type of power supply used. The value of the elco's also
> depends on the current drawn by the electronics connected to it.
> And do not forget about choke's. You would use these to seperate
> your analog and digital power supply rails.
>
> roelof

The BSL pin was sometimes low, and thatswhy the lpc1768 started in
bootloader mode and I got the verifier errors.

Thanks for the help.

Thomas



The 2024 Embedded Online Conference