Discussion group dedicated to the Philips LPC2000 family of ARM MCUs
HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 0:59:01 2008
Greetings everyone,
im with a big problem and i have no idea of wats going on. Please, i
need help!
so, here is what is going on : im working on a datalogger project
using lpc2148. I am using the board LPC-H2148 from Olimex for
prototyping and im using H-JTAG for uploading the .hex file for the
lpc via the parallel port 'wiggler'.
Everything was going well, and then i started writing code to
manipulate the pins that would interface with my LCD. So, here is what
happened the first time : I wrote the library and a code to test the
pin manipulation. After that code was uploaded, i could never program
the LPC again. H-JTAG wont recognize it and displays an error message
saying that i should check the connections and power source.
this moment i thought : i did some serious shit here.
As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
board and kept on working on other stuff. Everything was going well,
until i decided i was going to do some tests with the LCD control
pins. Im back with the same problem now. One thing i can say is that
the firmware is running, so, i conclude that the chip isnt toasted.
Well, now i lost my 2nd LPC . I have no spare part . I dont know where
is the problem. I cant solve it alone.
so, here are the pins i am using for the LCD controls :
CS1 P0.25
CS2 P1.25
RST P0.14
R/W P0.11
DI P0.1
E P1.24 <<<< TRACECLK ( could this be the problem ? )
for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
is there anyway i can erase the chip so i can reprogram it ?
Please, i need a bit of your experience !
Lucas Santiago
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: HELP! lost my JTAG functionality ! - Vinod Ganesh - Oct 1 1:19:42 2008
USE ISP and recover the jtag. the chip is not fused.
On Wed, Oct 1, 2008 at 10:28 AM, senhoruilson
wrote:
> Greetings everyone,
>
> im with a big problem and i have no idea of wats going on. Please, i
> need help!
>
> so, here is what is going on : im working on a datalogger project
> using lpc2148. I am using the board LPC-H2148 from Olimex for
> prototyping and im using H-JTAG for uploading the .hex file for the
> lpc via the parallel port 'wiggler'.
>
> Everything was going well, and then i started writing code to
> manipulate the pins that would interface with my LCD. So, here is what
> happened the first time : I wrote the library and a code to test the
> pin manipulation. After that code was uploaded, i could never program
> the LPC again. H-JTAG wont recognize it and displays an error message
> saying that i should check the connections and power source.
>
> this moment i thought : i did some serious shit here.
>
> As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> board and kept on working on other stuff. Everything was going well,
> until i decided i was going to do some tests with the LCD control
> pins. Im back with the same problem now. One thing i can say is that
> the firmware is running, so, i conclude that the chip isnt toasted.
>
> Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> is the problem. I cant solve it alone.
>
> so, here are the pins i am using for the LCD controls :
>
> CS1 P0.25
> CS2 P1.25
> RST P0.14
> R/W P0.11
> DI P0.1
> E P1.24 <<<< TRACECLK ( could this be the problem ? )
>
> for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
>
> is there anyway i can erase the chip so i can reprogram it ?
>
> Please, i need a bit of your experience !
>
> Lucas Santiago
>
>
>
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - =?ISO-8859-1?Q?Johan_Linn=E9r?= - Oct 1 1:28:43 2008
Hi,
You could try the FlashMagic tool from http://www.flashmagictool.com/ to=20
erase or download an other program.
It uses serial port 0 on the LPC.
DTR and RTS from the serial port are used to palce the device in BootROM.=20
Circuit diagram is in the programs manual.
Good luck,,
Johan
Johan Linn=E9r | Husqvarna Construction Products | Mail:=20
j...@husqvarna.se | Phone: +46 31 949122 | Adress: Jons v=E4g 19,=20
433 81 Jonsered, Sweden=20
l...@yahoogroups.com wrote on 2008-10-01 06:58:54:
> Greetings everyone,
>=20
> im with a big problem and i have no idea of wats going on. Please, i
> need help!
>=20
> so, here is what is going on : im working on a datalogger project
> using lpc2148. I am using the board LPC-H2148 from Olimex for
> prototyping and im using H-JTAG for uploading the .hex file for the
> lpc via the parallel port 'wiggler'.=20
>=20
> Everything was going well, and then i started writing code to
> manipulate the pins that would interface with my LCD. So, here is what
> happened the first time : I wrote the library and a code to test the
> pin manipulation. After that code was uploaded, i could never program
> the LPC again. H-JTAG wont recognize it and displays an error message
> saying that i should check the connections and power source.=20
>=20
> this moment i thought : i did some serious shit here.
>=20
> As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> board and kept on working on other stuff. Everything was going well,
> until i decided i was going to do some tests with the LCD control
> pins. Im back with the same problem now. One thing i can say is that
> the firmware is running, so, i conclude that the chip isnt toasted.
>=20
> Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> is the problem. I cant solve it alone.
>=20
> so, here are the pins i am using for the LCD controls :
>=20
> CS1 P0.25
> CS2 P1.25=20
> RST P0.14
> R/W P0.11
> DI P0.1
> E P1.24 <<<< TRACECLK ( could this be the problem ? )
>=20
> for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
>=20
> is there anyway i can erase the chip so i can reprogram it ?
>=20
> Please, i need a bit of your experience !
>=20
> Lucas Santiago
>=20=20
The information contained in this email may be confidential and/or legally=
=20
privileged. It has been sent for the sole use of the intended=20
recipient(s). If the reader of this message is not an intended recipient,=20
you are hereby notified that any unauthorized review, use, disclosure,=20
dissemination, distribution, or copying of this communication, or any of=20
its contents, is strictly prohibited. If you have received this=20
communication in error, please contact the sender by reply email and=20
destroy all copies of the original message.
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: HELP! lost my JTAG functionality ! - Leon - Oct 1 1:30:24 2008
----- Original Message -----
From: "senhoruilson"
To:
Sent: Wednesday, October 01, 2008 5:58 AM
Subject: [lpc2000] HELP! lost my JTAG functionality !
> Greetings everyone,
>
> im with a big problem and i have no idea of wats going on. Please, i
> need help!
>
> so, here is what is going on : im working on a datalogger project
> using lpc2148. I am using the board LPC-H2148 from Olimex for
> prototyping and im using H-JTAG for uploading the .hex file for the
> lpc via the parallel port 'wiggler'.
>
> Everything was going well, and then i started writing code to
> manipulate the pins that would interface with my LCD. So, here is what
> happened the first time : I wrote the library and a code to test the
> pin manipulation. After that code was uploaded, i could never program
> the LPC again. H-JTAG wont recognize it and displays an error message
> saying that i should check the connections and power source.
The JTAG pins sometimes get damaged and you have to replace the chip. It's
quite rare, so for you to have it happen twice is very unfortunate. Did you
connect the JTAG I/F with power supplied to the target board? I have a
feeling that is the usual cause.
It's a good idea to remove power before connecting anything to the target.
Leon
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - eremitic193 - Oct 1 2:19:07 2008
Some things that you might try...
1.) Make sure the CRP (Code Read Protection) is not enabled.
Some levels of CRP cause JTAG to no longer function.
(Refer to UM10139 LPC2148 manual for CRP information)
If this is the case you should be able to overwrite
via serial using something like FlashMagic.
2.) Given that you were working with pins... refer to UM10139
manual for LPC2148 and verify that the port and pins you are
working with are not used by the JTAG port. Again this can be
fixed by erasing the chip via serial RS232 with FlashMagic or Philips
Flash Utility.
Looking at the pdf for that particular board I can see that it
does not have a native serial interface and without a custom usb
bootloader it is not possible to flash that chip via the usb
interface.
You might be able to track down a MAX232 chip or and FTDI chip or
something similar and wire that to EXT1-1 and EXT1-2 and ground. That
would give you a connection between you PC and the board. Then
you could use FlashMagic to erase the chip and start over.
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: HELP! lost my JTAG functionality ! - Mike Harrison - Oct 1 3:54:01 2008
On Wed, 01 Oct 2008 04:58:54 -0000, you wrote:
>Greetings everyone,
>
>im with a big problem and i have no idea of wats going on. Please, i
>need help!
>
>so, here is what is going on : im working on a datalogger project
>using lpc2148. I am using the board LPC-H2148 from Olimex for
>prototyping and im using H-JTAG for uploading the .hex file for the
>lpc via the parallel port 'wiggler'.
>
>Everything was going well, and then i started writing code to
>manipulate the pins that would interface with my LCD. So, here is what
>happened the first time : I wrote the library and a code to test the
>pin manipulation. After that code was uploaded, i could never program
>the LPC again. H-JTAG wont recognize it and displays an error message
>saying that i should check the connections and power source.
>
>this moment i thought : i did some serious shit here.
>
>As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
>board and kept on working on other stuff. Everything was going well,
>until i decided i was going to do some tests with the LCD control
>pins. Im back with the same problem now. One thing i can say is that
>the firmware is running, so, i conclude that the chip isnt toasted.
>
>Well, now i lost my 2nd LPC . I have no spare part . I dont know where
>is the problem. I cant solve it alone.
>so, here are the pins i am using for the LCD controls :
>
>CS1 P0.25
>CS2 P1.25
>RST P0.14
>R/W P0.11
>DI P0.1
>E P1.24 <<<< TRACECLK ( could this be the problem ? )
>
>for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
>
>is there anyway i can erase the chip so i can reprogram it ?
>Please, i need a bit of your experience !
>
>Lucas Santiago
I've had this happen on a 2136 for no obvious reason - It was recoverable by putting the
chip in ISP
mode (P0.14 low on reset) then reprogramming via JTAG.
Another possible - on the 2136, the trace port pins are enabled when it sees a pin held
low on
reset ( can't remember which), and this needs to be disabled in order to use the trace
pins for IO
ports - I think it's a bit in PINSEL2. Not sure if this may affect JTAG,
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 13:42:25 2008
Ok, i will try this and post the results.
Thanx a lot for your attention
Lucas
--- In l...@yahoogroups.com, "Vinod Ganesh"
wrote:
>
> USE ISP and recover the jtag. the chip is not fused.
>
> On Wed, Oct 1, 2008 at 10:28 AM, senhoruilson wrote:
>
> > Greetings everyone,
> >
> > im with a big problem and i have no idea of wats going on. Please, i
> > need help!
> >
> > so, here is what is going on : im working on a datalogger project
> > using lpc2148. I am using the board LPC-H2148 from Olimex for
> > prototyping and im using H-JTAG for uploading the .hex file for the
> > lpc via the parallel port 'wiggler'.
> >
> > Everything was going well, and then i started writing code to
> > manipulate the pins that would interface with my LCD. So, here is what
> > happened the first time : I wrote the library and a code to test the
> > pin manipulation. After that code was uploaded, i could never program
> > the LPC again. H-JTAG wont recognize it and displays an error message
> > saying that i should check the connections and power source.
> >
> > this moment i thought : i did some serious shit here.
> >
> > As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> > board and kept on working on other stuff. Everything was going well,
> > until i decided i was going to do some tests with the LCD control
> > pins. Im back with the same problem now. One thing i can say is that
> > the firmware is running, so, i conclude that the chip isnt toasted.
> >
> > Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> > is the problem. I cant solve it alone.
> >
> > so, here are the pins i am using for the LCD controls :
> >
> > CS1 P0.25
> > CS2 P1.25
> > RST P0.14
> > R/W P0.11
> > DI P0.1
> > E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >
> > for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >
> > is there anyway i can erase the chip so i can reprogram it ?
> >
> > Please, i need a bit of your experience !
> >
> > Lucas Santiago
> >
> >
> >
> [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 13:43:34 2008
Thank you very very much.
I will try it today and post the results.
my best regards,
Lucas
--- In l...@yahoogroups.com, Johan Linn=EF=BF=BDr
wro=
te:
>
> Hi,
> You could try the FlashMagic tool from
http://www.flashmagictool.com/ to=20
> erase or download an other program.
> It uses serial port 0 on the LPC.
> DTR and RTS from the serial port are used to palce the device in
BootROM.=20
> Circuit diagram is in the programs manual.
>=20
> Good luck,,
> Johan
>=20
> Johan Linn=EF=BF=BDr | Husqvarna Construction Products | Mail:=20
> johan.linner@... | Phone: +46 31 949122 | Adress: Jons v=EF=BF=BDg 19,=20
> 433 81 Jonsered, Sweden=20
>=20
> l...@yahoogroups.com wrote on 2008-10-01 06:58:54:
>=20
> > Greetings everyone,
> >=20
> > im with a big problem and i have no idea of wats going on. Please, i
> > need help!
> >=20
> > so, here is what is going on : im working on a datalogger project
> > using lpc2148. I am using the board LPC-H2148 from Olimex for
> > prototyping and im using H-JTAG for uploading the .hex file for the
> > lpc via the parallel port 'wiggler'.=20
> >=20
> > Everything was going well, and then i started writing code to
> > manipulate the pins that would interface with my LCD. So, here is what
> > happened the first time : I wrote the library and a code to test the
> > pin manipulation. After that code was uploaded, i could never program
> > the LPC again. H-JTAG wont recognize it and displays an error message
> > saying that i should check the connections and power source.=20
> >=20
> > this moment i thought : i did some serious shit here.
> >=20
> > As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> > board and kept on working on other stuff. Everything was going well,
> > until i decided i was going to do some tests with the LCD control
> > pins. Im back with the same problem now. One thing i can say is that
> > the firmware is running, so, i conclude that the chip isnt toasted.
> >=20
> > Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> > is the problem. I cant solve it alone.
> >=20
> > so, here are the pins i am using for the LCD controls :
> >=20
> > CS1 P0.25
> > CS2 P1.25=20
> > RST P0.14
> > R/W P0.11
> > DI P0.1
> > E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >=20
> > for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >=20
> > is there anyway i can erase the chip so i can reprogram it ?
> >=20
> > Please, i need a bit of your experience !
> >=20
> > Lucas Santiago
>=20
> >=20=20
>=20
>=20
> The information contained in this email may be confidential and/or
legally=20
> privileged. It has been sent for the sole use of the intended=20
> recipient(s). If the reader of this message is not an intended
recipient,=20
> you are hereby notified that any unauthorized review, use, disclosure,=20
> dissemination, distribution, or copying of this communication, or
any of=20
> its contents, is strictly prohibited. If you have received this=20
> communication in error, please contact the sender by reply email and=20
> destroy all copies of the original message.
>=20
> [Non-text portions of this message have been removed]
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 13:46:05 2008
Leon, i did not connect anything with the board powered up, but im
still not sure the JTAG isnt damaged ... would it be possible for the
jtag to get damaged and the rest of the chip remain working ? ( there
ar status leds blinking indicating that code is running )
My best, Lucas
--- In l...@yahoogroups.com, "Leon"
wrote:
>
> ----- Original Message -----
> From: "senhoruilson"
> To:
> Sent: Wednesday, October 01, 2008 5:58 AM
> Subject: [lpc2000] HELP! lost my JTAG functionality !
> > Greetings everyone,
> >
> > im with a big problem and i have no idea of wats going on. Please, i
> > need help!
> >
> > so, here is what is going on : im working on a datalogger project
> > using lpc2148. I am using the board LPC-H2148 from Olimex for
> > prototyping and im using H-JTAG for uploading the .hex file for the
> > lpc via the parallel port 'wiggler'.
> >
> > Everything was going well, and then i started writing code to
> > manipulate the pins that would interface with my LCD. So, here is what
> > happened the first time : I wrote the library and a code to test the
> > pin manipulation. After that code was uploaded, i could never program
> > the LPC again. H-JTAG wont recognize it and displays an error message
> > saying that i should check the connections and power source.
>
> The JTAG pins sometimes get damaged and you have to replace the
chip. It's
> quite rare, so for you to have it happen twice is very unfortunate.
Did you
> connect the JTAG I/F with power supplied to the target board? I have a
> feeling that is the usual cause.
>
> It's a good idea to remove power before connecting anything to the
target.
>
> Leon
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 13:48:57 2008
I have some max232 here so i will try to accomplish this serial
connection and erase the chip.
thank you for your attention.
my best regards,
Lucas
--- In l...@yahoogroups.com, "eremitic193"
wrote:
>
> Some things that you might try...
>
> 1.) Make sure the CRP (Code Read Protection) is not enabled.
> Some levels of CRP cause JTAG to no longer function.
> (Refer to UM10139 LPC2148 manual for CRP information)
> If this is the case you should be able to overwrite
> via serial using something like FlashMagic.
>
> 2.) Given that you were working with pins... refer to UM10139
> manual for LPC2148 and verify that the port and pins you are
> working with are not used by the JTAG port. Again this can be
> fixed by erasing the chip via serial RS232 with FlashMagic or Philips
> Flash Utility.
>
> Looking at the pdf for that particular board I can see that it
> does not have a native serial interface and without a custom usb
> bootloader it is not possible to flash that chip via the usb
> interface.
>
> You might be able to track down a MAX232 chip or and FTDI chip or
> something similar and wire that to EXT1-1 and EXT1-2 and ground. That
> would give you a connection between you PC and the board. Then
> you could use FlashMagic to erase the chip and start over.
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: HELP! lost my JTAG functionality ! - Leon - Oct 1 13:56:28 2008
----- Original Message -----
From: "senhoruilson"
To:
Sent: Wednesday, October 01, 2008 6:45 PM
Subject: [lpc2000] Re: HELP! lost my JTAG functionality !
> Leon, i did not connect anything with the board powered up, but im
> still not sure the JTAG isnt damaged ... would it be possible for the
> jtag to get damaged and the rest of the chip remain working ? ( there
> ar status leds blinking indicating that code is running )
Yes, that is possible. The JTAG is disconnected in normal operation, anyway.
Leon
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: HELP! lost my JTAG functionality ! - senhoruilson - Oct 1 14:16:38 2008
One question : i have 2 UARTS on LPC2148. Can i choose any for the ISP
? The pin P0.14 is described as "Data Carrier Detect input for UART1"
. is that the pin i should tie LOW to connect via ISP using UART1 ??
thank you,
Lucas
--- In l...@yahoogroups.com, Mike Harrison
wrote:
>
> On Wed, 01 Oct 2008 04:58:54 -0000, you wrote:
>
> >Greetings everyone,
> >
> >im with a big problem and i have no idea of wats going on. Please, i
> >need help!
> >
> >so, here is what is going on : im working on a datalogger project
> >using lpc2148. I am using the board LPC-H2148 from Olimex for
> >prototyping and im using H-JTAG for uploading the .hex file for the
> >lpc via the parallel port 'wiggler'.
> >
> >Everything was going well, and then i started writing code to
> >manipulate the pins that would interface with my LCD. So, here is what
> >happened the first time : I wrote the library and a code to test the
> >pin manipulation. After that code was uploaded, i could never program
> >the LPC again. H-JTAG wont recognize it and displays an error message
> >saying that i should check the connections and power source.
> >
> >this moment i thought : i did some serious shit here.
> >
> >As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> >board and kept on working on other stuff. Everything was going well,
> >until i decided i was going to do some tests with the LCD control
> >pins. Im back with the same problem now. One thing i can say is that
> >the firmware is running, so, i conclude that the chip isnt toasted.
> >
> >Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> >is the problem. I cant solve it alone.
> >
> >
> >so, here are the pins i am using for the LCD controls :
> >
> >CS1 P0.25
> >CS2 P1.25
> >RST P0.14
> >R/W P0.11
> >DI P0.1
> >E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >
> >for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >
> >is there anyway i can erase the chip so i can reprogram it ?
> >
> >
> >Please, i need a bit of your experience !
> >
> >Lucas Santiago
>
> I've had this happen on a 2136 for no obvious reason - It was
recoverable by putting the chip in ISP
> mode (P0.14 low on reset) then reprogramming via JTAG.
>
> Another possible - on the 2136, the trace port pins are enabled when
it sees a pin held low on
> reset ( can't remember which), and this needs to be disabled in
order to use the trace pins for IO
> ports - I think it's a bit in PINSEL2. Not sure if this may affect JTAG,
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: Re: HELP! lost my JTAG functionality ! - Zach - Oct 1 15:10:34 2008
You must use UART0 for ISP Bootloader. P0.14 is the correct pin to use to enter ISP Mode.
At least by glancing
at some schematics from our devices that happen to be sitting on my desk. Might want to
check to manual to be sure.
Other than that you just need RX0 and TX0 which should be available on the header if I am
correct about the board you are using.
EXT1-1 EXT1-2.
----- Original Message -----
From: senhoruilson
To: l...@yahoogroups.com
Sent: Wednesday, October 01, 2008 1:16 PM
Subject: [lpc2000] Re: HELP! lost my JTAG functionality !
One question : i have 2 UARTS on LPC2148. Can i choose any for the ISP
? The pin P0.14 is described as "Data Carrier Detect input for UART1"
. is that the pin i should tie LOW to connect via ISP using UART1 ??
thank you,
Lucas
--- In l...@yahoogroups.com, Mike Harrison
wrote:
>
> On Wed, 01 Oct 2008 04:58:54 -0000, you wrote:
>
> >Greetings everyone,
> >
> >im with a big problem and i have no idea of wats going on. Please, i
> >need help!
> >
> >so, here is what is going on : im working on a datalogger project
> >using lpc2148. I am using the board LPC-H2148 from Olimex for
> >prototyping and im using H-JTAG for uploading the .hex file for the
> >lpc via the parallel port 'wiggler'.
> >
> >Everything was going well, and then i started writing code to
> >manipulate the pins that would interface with my LCD. So, here is what
> >happened the first time : I wrote the library and a code to test the
> >pin manipulation. After that code was uploaded, i could never program
> >the LPC again. H-JTAG wont recognize it and displays an error message
> >saying that i should check the connections and power source.
> >
> >this moment i thought : i did some serious shit here.
> >
> >As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> >board and kept on working on other stuff. Everything was going well,
> >until i decided i was going to do some tests with the LCD control
> >pins. Im back with the same problem now. One thing i can say is that
> >the firmware is running, so, i conclude that the chip isnt toasted.
> >
> >Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> >is the problem. I cant solve it alone.
> >
> >
> >so, here are the pins i am using for the LCD controls :
> >
> >CS1 P0.25
> >CS2 P1.25
> >RST P0.14
> >R/W P0.11
> >DI P0.1
> >E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >
> >for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >
> >is there anyway i can erase the chip so i can reprogram it ?
> >
> >
> >Please, i need a bit of your experience !
> >
> >Lucas Santiago
>
> I've had this happen on a 2136 for no obvious reason - It was
recoverable by putting the chip in ISP
> mode (P0.14 low on reset) then reprogramming via JTAG.
>
> Another possible - on the 2136, the trace port pins are enabled when
it sees a pin held low on
> reset ( can't remember which), and this needs to be disabled in
order to use the trace pins for IO
> ports - I think it's a bit in PINSEL2. Not sure if this may affect JTAG,
>
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - senhoruilson - Oct 1 16:13:39 2008
Hello all !
the problem was solved as soon as i reprogrammed the chip using ISP
and 'flash magic tool' .
I happened to have a 'FTDI TTL-232R-3V3' usb cable that made the
connections really simple. All i had to do was connect RX , TX , GND
and tie P0.14 to the ground. FMT connected easyly ( i unchecked the
option "let DTR and RTS controll pins P0.14 and RST" , but dont know
if that was necessary, just a guess).
Now i got back my JTAG functionality on both boards i thought i had
smoked. I guess everythig is back to normal. Anybody has a guess of
why did this problem happenned ? I do guess it has something to do
with PINSEL2.
I would like you to know that i am really thankfull to all your help
and support.
My best regards,
Lucas
--- In l...@yahoogroups.com, "senhoruilson"
wrote:
>
> Greetings everyone,
>
> im with a big problem and i have no idea of wats going on. Please, i
> need help!
>
> so, here is what is going on : im working on a datalogger project
> using lpc2148. I am using the board LPC-H2148 from Olimex for
> prototyping and im using H-JTAG for uploading the .hex file for the
> lpc via the parallel port 'wiggler'.
>
> Everything was going well, and then i started writing code to
> manipulate the pins that would interface with my LCD. So, here is what
> happened the first time : I wrote the library and a code to test the
> pin manipulation. After that code was uploaded, i could never program
> the LPC again. H-JTAG wont recognize it and displays an error message
> saying that i should check the connections and power source.
>
> this moment i thought : i did some serious shit here.
>
> As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> board and kept on working on other stuff. Everything was going well,
> until i decided i was going to do some tests with the LCD control
> pins. Im back with the same problem now. One thing i can say is that
> the firmware is running, so, i conclude that the chip isnt toasted.
>
> Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> is the problem. I cant solve it alone.
> so, here are the pins i am using for the LCD controls :
>
> CS1 P0.25
> CS2 P1.25
> RST P0.14
> R/W P0.11
> DI P0.1
> E P1.24 <<<< TRACECLK ( could this be the problem ? )
>
> for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
>
> is there anyway i can erase the chip so i can reprogram it ?
> Please, i need a bit of your experience !
>
> Lucas Santiago
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - "Charles R. Grenz" - Oct 1 16:34:34 2008
senhoruilson wrote:
> Hello all !
>
> the problem was solved as soon as i reprogrammed the chip using ISP
> and 'flash magic tool' .
>
> I happened to have a 'FTDI TTL-232R-3V3' usb cable that made the
> connections really simple. All i had to do was connect RX , TX , GND
> and tie P0.14 to the ground. FMT connected easyly ( i unchecked the
> option "let DTR and RTS controll pins P0.14 and RST" , but dont know
> if that was necessary, just a guess).
>
> Now i got back my JTAG functionality on both boards i thought i had
> smoked. I guess everythig is back to normal. Anybody has a guess of
> why did this problem happenned ? I do guess it has something to do
> with PINSEL2.
>
> I would like you to know that i am really thankfull to all your help
> and support.
>
> My best regards,
> Lucas
> --- In l...@yahoogroups.com, "senhoruilson"
wrote:
>> Greetings everyone,
>>
>> im with a big problem and i have no idea of wats going on. Please, i
>> need help!
>>
>> so, here is what is going on : im working on a datalogger project
>> using lpc2148. I am using the board LPC-H2148 from Olimex for
>> prototyping and im using H-JTAG for uploading the .hex file for the
>> lpc via the parallel port 'wiggler'.
>>
>> Everything was going well, and then i started writing code to
>> manipulate the pins that would interface with my LCD. So, here is what
>> happened the first time : I wrote the library and a code to test the
>> pin manipulation. After that code was uploaded, i could never program
>> the LPC again. H-JTAG wont recognize it and displays an error message
>> saying that i should check the connections and power source.
>>
>> this moment i thought : i did some serious shit here.
>>
>> As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
>> board and kept on working on other stuff. Everything was going well,
>> until i decided i was going to do some tests with the LCD control
>> pins. Im back with the same problem now. One thing i can say is that
>> the firmware is running, so, i conclude that the chip isnt toasted.
>>
>> Well, now i lost my 2nd LPC . I have no spare part . I dont know where
>> is the problem. I cant solve it alone.
>> so, here are the pins i am using for the LCD controls :
>>
>> CS1 P0.25
>> CS2 P1.25
>> RST P0.14
>> R/W P0.11
>> DI P0.1
>> E P1.24 <<<< TRACECLK ( could this be the problem ? )
>>
>> for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
>>
>> is there anyway i can erase the chip so i can reprogram it ?
>> Please, i need a bit of your experience !
>>
>> Lucas Santiago
>>
CRP being set?
Charles
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - senhoruilson - Oct 1 16:48:29 2008
No, i reprogrammed it without setting CRP. Should I ?
--- In l...@yahoogroups.com, "Charles R. Grenz"
wrote:
>
> senhoruilson wrote:
> > Hello all !
> >
> > the problem was solved as soon as i reprogrammed the chip using ISP
> > and 'flash magic tool' .
> >
> > I happened to have a 'FTDI TTL-232R-3V3' usb cable that made the
> > connections really simple. All i had to do was connect RX , TX , GND
> > and tie P0.14 to the ground. FMT connected easyly ( i unchecked the
> > option "let DTR and RTS controll pins P0.14 and RST" , but dont know
> > if that was necessary, just a guess).
> >
> > Now i got back my JTAG functionality on both boards i thought i had
> > smoked. I guess everythig is back to normal. Anybody has a guess of
> > why did this problem happenned ? I do guess it has something to do
> > with PINSEL2.
> >
> > I would like you to know that i am really thankfull to all your help
> > and support.
> >
> > My best regards,
> > Lucas
> >
> >
> > --- In l...@yahoogroups.com, "senhoruilson" wrote:
> >> Greetings everyone,
> >>
> >> im with a big problem and i have no idea of wats going on. Please, i
> >> need help!
> >>
> >> so, here is what is going on : im working on a datalogger project
> >> using lpc2148. I am using the board LPC-H2148 from Olimex for
> >> prototyping and im using H-JTAG for uploading the .hex file for the
> >> lpc via the parallel port 'wiggler'.
> >>
> >> Everything was going well, and then i started writing code to
> >> manipulate the pins that would interface with my LCD. So, here is
what
> >> happened the first time : I wrote the library and a code to test the
> >> pin manipulation. After that code was uploaded, i could never program
> >> the LPC again. H-JTAG wont recognize it and displays an error message
> >> saying that i should check the connections and power source.
> >>
> >> this moment i thought : i did some serious shit here.
> >>
> >> As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> >> board and kept on working on other stuff. Everything was going well,
> >> until i decided i was going to do some tests with the LCD control
> >> pins. Im back with the same problem now. One thing i can say is that
> >> the firmware is running, so, i conclude that the chip isnt toasted.
> >>
> >> Well, now i lost my 2nd LPC . I have no spare part . I dont know
where
> >> is the problem. I cant solve it alone.
> >>
> >>
> >> so, here are the pins i am using for the LCD controls :
> >>
> >> CS1 P0.25
> >> CS2 P1.25
> >> RST P0.14
> >> R/W P0.11
> >> DI P0.1
> >> E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >>
> >> for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >>
> >> is there anyway i can erase the chip so i can reprogram it ?
> >>
> >>
> >> Please, i need a bit of your experience !
> >>
> >> Lucas Santiago
> >> CRP being set?
>
> Charles
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - senhoruilson - Oct 1 16:56:32 2008
So, here are the results of my latest tests :
i recompiled the code with some modifications in order to try to
detect the bad pin.
when i configured pin 1.24 and pin 1.25 as GPIO, JTAG stopped working
again.
as P1.24 is the TRACECLK pin and P1.25 is not used by JTAG and has no
special functions ( only GPIO and EXINT func), i was pretty sure that
P1.24 was the problem.
so i tried to configure 1.25 as GPIO and leave P1.24 without changes
to see if my assumption was right.
well, JTAG isnt working ...
now ill try to set P1.24 as gpio and leave P1.25 alone ...
lets see what will happen
my best,
Lucas
--- In l...@yahoogroups.com, "senhoruilson"
wrote:
>
> Hello all !
>
> the problem was solved as soon as i reprogrammed the chip using ISP
> and 'flash magic tool' .
>
> I happened to have a 'FTDI TTL-232R-3V3' usb cable that made the
> connections really simple. All i had to do was connect RX , TX , GND
> and tie P0.14 to the ground. FMT connected easyly ( i unchecked the
> option "let DTR and RTS controll pins P0.14 and RST" , but dont know
> if that was necessary, just a guess).
>
> Now i got back my JTAG functionality on both boards i thought i had
> smoked. I guess everythig is back to normal. Anybody has a guess of
> why did this problem happenned ? I do guess it has something to do
> with PINSEL2.
>
> I would like you to know that i am really thankfull to all your help
> and support.
>
> My best regards,
> Lucas
> --- In l...@yahoogroups.com, "senhoruilson" wrote:
> >
> > Greetings everyone,
> >
> > im with a big problem and i have no idea of wats going on. Please, i
> > need help!
> >
> > so, here is what is going on : im working on a datalogger project
> > using lpc2148. I am using the board LPC-H2148 from Olimex for
> > prototyping and im using H-JTAG for uploading the .hex file for the
> > lpc via the parallel port 'wiggler'.
> >
> > Everything was going well, and then i started writing code to
> > manipulate the pins that would interface with my LCD. So, here is what
> > happened the first time : I wrote the library and a code to test the
> > pin manipulation. After that code was uploaded, i could never program
> > the LPC again. H-JTAG wont recognize it and displays an error message
> > saying that i should check the connections and power source.
> >
> > this moment i thought : i did some serious shit here.
> >
> > As i couldnt reprogram the chip, i got my spare prototyping LPC-H2148
> > board and kept on working on other stuff. Everything was going well,
> > until i decided i was going to do some tests with the LCD control
> > pins. Im back with the same problem now. One thing i can say is that
> > the firmware is running, so, i conclude that the chip isnt toasted.
> >
> > Well, now i lost my 2nd LPC . I have no spare part . I dont know where
> > is the problem. I cant solve it alone.
> >
> >
> > so, here are the pins i am using for the LCD controls :
> >
> > CS1 P0.25
> > CS2 P1.25
> > RST P0.14
> > R/W P0.11
> > DI P0.1
> > E P1.24 <<<< TRACECLK ( could this be the problem ? )
> >
> > for the LCD 8 bit data bus im using pins [ P1.16 , P1.23 ].
> >
> > is there anyway i can erase the chip so i can reprogram it ?
> >
> >
> > Please, i need a bit of your experience !
> >
> > Lucas Santiago
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )Re: PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - Richard Duits - Oct 2 10:41:43 2008
senhoruilson wrote:
> Hello all !
>
> the problem was solved as soon as i reprogrammed the chip using ISP
> and 'flash magic tool' .
>
>
What seems to help for me in these situations is holding down the
bootloader select pin (usually P0.14) while I treprogram the device via
the JTAG port.
Because if bootloader is running your program will not get the chance to
(accidentally) disable the JTAG pins or go into idle/power down mode.
Regards,
Richard.
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )
Re: PROBLEM SOLVED ! >>> "HELP! lost my JTAG functionality !" - senhoruilson - Oct 2 14:31:45 2008
Hey ! it works !!!
great solution ! easy !
thanks man !
--- In l...@yahoogroups.com, Richard Duits
wrote:
>
> senhoruilson wrote:
> > Hello all !
> >
> > the problem was solved as soon as i reprogrammed the chip using ISP
> > and 'flash magic tool' .
> >
> >
> What seems to help for me in these situations is holding down the
> bootloader select pin (usually P0.14) while I treprogram the device via
> the JTAG port.
> Because if bootloader is running your program will not get the
chance to
> (accidentally) disable the JTAG pins or go into idle/power down mode.
>
> Regards,
> Richard.
>
------------------------------------

(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )