EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

LPC1112 SWD problem

Started by Sebastien Jacquemard April 22, 2013
Hello,

I've got problems programming LPC1112 with SWD :
- I made a first board 2 month ago who's working perfectly with my
J-Link ultra from Keil.
- Now I receive 2 new PCB and I test them with 2 new LPC1112FHN33
(different batch number than first one).
I can't program these boards.
One time it write "erase failed" and next time "erase done" then "Flash
timout"

I connect SWDIO and SWCLK, reset, 3.3V, one 12Mhz cristal, and a pullup
to PIO0.1 (IAP).

I can't test it with IAP because my board has a RS485 driver and no IAP
function connected to UART.

Sebastien

An Engineer's Guide to the LPC2100 Series

Did you try to ground ISP (PIO0.1) already?

Booting to ISP should generate stable conditions again...

--- In l..., Sebastien Jacquemard wrote:
>
> Hello,
>
> I've got problems programming LPC1112 with SWD :
> - I made a first board 2 month ago who's working perfectly with my
> J-Link ultra from Keil.
> - Now I receive 2 new PCB and I test them with 2 new LPC1112FHN33
> (different batch number than first one).
> I can't program these boards.
> One time it write "erase failed" and next time "erase done" then "Flash
> timout"
>
> I connect SWDIO and SWCLK, reset, 3.3V, one 12Mhz cristal, and a pullup
> to PIO0.1 (IAP).
>
> I can't test it with IAP because my board has a RS485 driver and no IAP
> function connected to UART.
>
> Sebastien
>

Yes it doesn't change anything.

I made 3 tests :
- First batch of pcb with LPC1112 buy in February : OK
- First batch of pcb with LPC1112 buy last week : NON OK
- New batch of pcb with LPC1112 buy last week : NON OK
( I test 3 boards and all are not working.
- I try also to wire an external RS232 driver with IAP and Reset and it
doesn't work (no communication with FlashMagic).

There is a strange point, Jlink driver found the Cortex M0 ID (I've got
0x0BB114777)
Erase seems to be ok 1 time in 2.

I will try to buy some new LPC1112 from a other batch.

Sebastien

Le 23/04/2013 13:38, zero_atwork a rit :
>
> Did you try to ground ISP (PIO0.1) already?
>
> Booting to ISP should generate stable conditions again...
>
> --- In l... ,
> Sebastien Jacquemard wrote:
> >
> > Hello,
> >
> > I've got problems programming LPC1112 with SWD :
> > - I made a first board 2 month ago who's working perfectly with my
> > J-Link ultra from Keil.
> > - Now I receive 2 new PCB and I test them with 2 new LPC1112FHN33
> > (different batch number than first one).
> > I can't program these boards.
> > One time it write "erase failed" and next time "erase done" then "Flash
> > timout"
> >
> > I connect SWDIO and SWCLK, reset, 3.3V, one 12Mhz cristal, and a pullup
> > to PIO0.1 (IAP).
> >
> > I can't test it with IAP because my board has a RS485 driver and no IAP
> > function connected to UART.
> >
> > Sebastien
> >



Hello Sebastien,

> - First batch of pcb with LPC1112 buy in February : OK
> - First batch of pcb with LPC1112 buy last week : NON OK
> - New batch of pcb with LPC1112 buy last week : NON OK

can you post the characters/numbers printed on the chip?

LPC1112x
/xxx
xxxxxxx
xxYYWWxR[x]

[x] seems to be the version.
Is one of them 'A' and the other 'B' or newer?
Interesting is perhaps also YYWW,
which seems to be the manufacturing year and week.
Any letter between "LPC11" and "12",
so you perhaps have received a variant of LPC1112?

You mentioned the chip id. Which are reported?
Are they equal for both?

Best regards,

Martin

I'm missing a reset pullup. To use ISP (reliable) with FlashMagic there's nothing required except power, Reset pullup, grounded ISP and of course a working UART-RS232 or UART-USB converter. If that's not working it's a hardware problem, probably your board or a soldering issue.

--- In l..., Sebastien Jacquemard wrote:
>
> Yes it doesn't change anything.
>
> I made 3 tests :
> - First batch of pcb with LPC1112 buy in February : OK
> - First batch of pcb with LPC1112 buy last week : NON OK
> - New batch of pcb with LPC1112 buy last week : NON OK
> ( I test 3 boards and all are not working.
> - I try also to wire an external RS232 driver with IAP and Reset and it
> doesn't work (no communication with FlashMagic).
>
> There is a strange point, Jlink driver found the Cortex M0 ID (I've got
> 0x0BB114777)
> Erase seems to be ok 1 time in 2.
>
> I will try to buy some new LPC1112 from a other batch.
>
> Sebastien
>
> Le 23/04/2013 13:38, zero_atwork a rit :
> >
> >
> >
> > Did you try to ground ISP (PIO0.1) already?
> >
> > Booting to ISP should generate stable conditions again...
> >
> > --- In l... ,
> > Sebastien Jacquemard wrote:
> > >
> > > Hello,
> > >
> > > I've got problems programming LPC1112 with SWD :
> > > - I made a first board 2 month ago who's working perfectly with my
> > > J-Link ultra from Keil.
> > > - Now I receive 2 new PCB and I test them with 2 new LPC1112FHN33
> > > (different batch number than first one).
> > > I can't program these boards.
> > > One time it write "erase failed" and next time "erase done" then "Flash
> > > timout"
> > >
> > > I connect SWDIO and SWCLK, reset, 3.3V, one 12Mhz cristal, and a pullup
> > > to PIO0.1 (IAP).
> > >
> > > I can't test it with IAP because my board has a RS485 driver and no IAP
> > > function connected to UART.
> > >
> > > Sebastien
> > >
> >
> >
>
>
>
>
>

I make new verifications :
- I take a LPC1112 from first batch (buy January 11th) with the new PCB
and now it's working (with J-link and IAP)

So finally I've got :
"old" LPC1112F/101 buy January 11th with printed informations : "918.105
"ZSD10300A" -> working
"new" LPC1112F/101 buy april 18th with printed informations : "536.118"
"ZSD12211B" -> not working (seems to be flash problem)

Same results with the 2 generations of PCB.
Sebastien

I've got a look at the errasheet of LPC1112, so then new batch of
LPC1112 who are not working is a "B" revision and the old one is a "A"
revision.
Is there some limitations with Keil and Segger J-Link versions maybe ?

I've got keil last version (v4.70a) and a J-Link Ultra rev 1 (compiled
November 14th 2012) with Segger J-Link control panel v4.62

Sebastien
Le 25/04/2013 09:40, Sebastien Jacquemard a rit :
> I make new verifications :
> - I take a LPC1112 from first batch (buy January 11th) with the new
> PCB and now it's working (with J-link and IAP)
>
> So finally I've got :
> "old" LPC1112F/101 buy January 11th with printed informations :
> "918.105 "ZSD10300A" -> working
> "new" LPC1112F/101 buy april 18th with printed informations :
> "536.118" "ZSD12211B" -> not working (seems to be flash problem)
>
> Same results with the 2 generations of PCB.
>




The 2024 Embedded Online Conference