EmbeddedRelated.com
Forums

lpc2148 prototype problem with JTAG (ULINK- Keil)

Started by zahovic April 14, 2008
Hello mehiegl,

Now the p0.31 is left unconnected and nothing changes.

Summary:
- i have pull-up on /TRST, TDI, TMS and TDO
- pull-down on TCK and RTCK. RTCK with a jumper to debug (pulldown) or
not (not pulldown)
- reset with DS1233A (3.3V econoreset)
- P0.14 with a jumper to pull-down, so i can download with ISP method.
- P0.31 unconnected (i've tried with a pull-up too)
- all VCC pins to 3.3V
- all gnd pins to 0V.
- cristal of 12Mhz and capacitors of 39pF
- some decoupling capacitors

With Flash utility and Flash magic i can download OK. And after this
LPC2148 runs program OK.
With ULINK, i only receive a message of "no jtag devices found". ULINK
is working, because on olimex board works good.

I've tried to erase all flash sectors and disable CRP with Flash magic,
but still the problem.

More ideas?

I'm waiting new LPC2148 from other seller to test, hoping these had jtag
dead for same reason (i doubt a bit :P).

Kind regards. Dani.

mehiegl escribi
>
> I don't think I said what I wanted to say clearly at first. My point
> was that unless you want to use P0.31 as an output it should be left
> unconnected. It is an output only, not bidirectional like most of
> the other pins. It's probably ok that you added a pull-up, but my
> question was about where else is it connected. The portion of the
> schematic you showed appears to have some net associated with the pin.
>
> Mark
> --- In l... ,
> zahovic wrote:
> >
> > First, thanks for all your comments. I have not solved this problem
> yet.
> >
> > grahamg227:
> > " In the end the solution turned out to be that I used the program
> > "Flash magic" and completely erased the Flash. After this both
> devices
> > started to be identified by ulink jtag and now work fine."
> > - Before this comment, i was use Flash utility fro NXP. Now i've
> tried
> > with Flash magic and nothing changes. I've erase all flash +
> disable
> > code protect, but i can't connect with jtag yet: "no jtag devices
> found".
> > I've repeat the same steps in olimex board and my own board: erase
> all
> > flash and download a simple code hex. All perfect, all working. But
> i
> > can't connect with jtag on my own board, and i can connect on olimx
> board.
> >
> > noltstein:"Do you have CRP enabled?"
> > -It's disable. I've never enabled. Anyway, i've tried to erase all
> flash
> > and disable code protection with flash magic.
> >
> > mehiegl:"I had a similar experience with the 2138, where the
> original
> > designer
> > of the board wired the P0.31 pin for use as a bidirectional IO pin,
> > and it was being loaded by another device connected on the net. It
> > is unclear from the portion of your schematic that you show what is
> > connected to that pin, but if it is being loaded in some way it
> could
> > be interfering with the JTAG."
> > - Yes, the initial schematic hasn't got a pullup on p0.31. You're
> rigth.
> > But manually i soldered a pullup on my board when i assembled, so
> > actually exists this pullup on real board (not shown on schematic).
> >
> > I bought 4 LPC2148 from Mouser. I doubt these micro were bad, but
> i've
> > order a few from other buyer to test.
> >
> > Any idea?
> >
> > grahamg227 escribi
> > >
> > > --- In l...
> > 40yahoogroups.com>,
> > > zahovic wrote:
> > > >
> > > > Hello,
> > > > I' ve just assembled a board with a LPC2148 and i can't connect
> with
> > > > ULINK and Keil.
> > > >
> > > > I can download software using internal bootloader and com0
> (p0.14
> > > > pulldown) with LPC210x_ISP utility.
> > > >
> > > > i have a prototype board from Olimex, and i can download
> software in
> > > > both modes (ISP and JTAG), so my ulink is working. But on my own
> > > > prototype when i try to download, keil shows a message: "no jtag
> > > devices
> > > > found".
> > > >
> > >
> > > I recently had a similar problem but on a 2138, like you :-
> > >
> > > 1. I could load and run via the bootloader.
> > > 2. But I got the "no Jtag devices found" message.
> > >
> > > I had two 2138's pcb's giving identical results, although one of
> them
> > > had been used before on Jtag without problem.
> > >
> > > In the end the solution turned out to be that I used the program
> > > "Flash magic" and completely erased the Flash. After this both
> devices
> > > started to be identified by ulink jtag and now work fine.
> > >
> > > Today one of them stopped working again. So I repeated the Flash
> Magic
> > > treatment and it fixed it. So there does seem to be some
> connection
> > > between whats in Flash and Jtag working. Maybe someone can
> explain?
> > >
> > >
> > >
> > > __________ Informaci de NOD32 1.532 (20031010) __________
> > >
> > > Este mensaje ha sido analizado con NOD32 Antivirus System
> > > http://www.nod32.com
> > __________ Informaci de NOD32 1.532 (20031010) __________
>
> Este mensaje ha sido analizado con NOD32 Antivirus System
> http://www.nod32.com

An Engineer's Guide to the LPC2100 Series