Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

PINSEL2 crashes everything

PINSEL2 crashes everything

2005-08-01 by soren_t_hansen

I'm trying to write to the PINSEL2 register, to ensure that it has 0's
at bit 2 and 3, but if I try to write to the register, the JTAG
connection drops, and it seems as if the MCU enter some other mode,
since I can't restore the connection whitout having to do a power cycle. 
Has anyone experienced this?
And how can I write to the PINSEL2 register, whitout having this problem?

/Søren

Re: [lpc2000] PINSEL2 crashes everything

2005-08-01 by 42Bastian Schick

soren_t_hansen <soren_t_hansen@...> schrieb am Mon, 01 Aug 2005 
14:04:44 -0000:

> I'm trying to write to the PINSEL2 register, to ensure that it has 0's
> at bit 2 and 3, but if I try to write to the register, the JTAG
> connection drops, and it seems as if the MCU enter some other mode,
> since I can't restore the connection whitout having to do a power cycle.
> Has anyone experienced this?
> And how can I write to the PINSEL2 register, whitout having this problem?

Some bits disable JTAG, be sure to set these to the correctly.

-- 
42Bastian Schick

Re: [lpc2000] PINSEL2 crashes everything

2005-08-02 by Aalt Lokhorst

Hello Søren,

Not sure what processor you are using but I think you are diabling the JTAG by changing a JTAG line into a GPIO line.

I am using the LC2129 and the usermanual of this processor shows the following:

Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
(PINSEL2 - 0xE002C014)

1:0 Reserved.

2 When 0, pins P1.36:26 are used as GPIO pins.
   When 1, P1.31:26 are used as a Debug port. (RTCK)

3 When 0, pins P1.25:16 are used as GPIO pins.
   When 1, P1.25:16 are used as a Trace port.  (TRACESYNC)

4:5 Reserved.  Note: These bits must not be altered at any time.
     Changing them may result in an incorrect code execution.

6:31 Reserved.

According to this info you are disabling the JTAG RTCK line.

Hope this helps,
Aalt

-- ==============================
Aalt Lokhorst
Schut Geometrische Meettechniek bv
Duinkerkenstraat 21
9723 BN Groningen
P.O. Box 5225
9700 GE Groningen
The Netherlands
Tel: +31-50-5877877
Fax: +31-50-5877899
E-mail: Lokhorst@...m
==============================

soren_t_hansen wrote:
Show quoted textHide quoted text
> I'm trying to write to the PINSEL2 register, to ensure that it has 0's
> at bit 2 and 3, but if I try to write to the register, the JTAG
> connection drops, and it seems as if the MCU enter some other mode,
> since I can't restore the connection whitout having to do a power cycle.
> Has anyone experienced this?
> And how can I write to the PINSEL2 register, whitout having this problem?
> > /Søren
> > > > > ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
> >     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        >     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
> > > ------------------------------------------------------------------------
>

Re: PINSEL2 crashes everything

2005-08-02 by soren_t_hansen

--- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
> Hello Søren,
> 
> Not sure what processor you are using but I think you are diabling
the JTAG by changing a JTAG line into a GPIO line.
> 
> I am using the LC2129 and the usermanual of this processor shows the
following:
> 
> Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
> (PINSEL2 - 0xE002C014)
> 
> 1:0 Reserved.
> 
> 2 When 0, pins P1.36:26 are used as GPIO pins.
>    When 1, P1.31:26 are used as a Debug port. (RTCK)
> 
> 3 When 0, pins P1.25:16 are used as GPIO pins.
>    When 1, P1.25:16 are used as a Trace port.  (TRACESYNC)
> 
> 4:5 Reserved.  Note: These bits must not be altered at any time.
>      Changing them may result in an incorrect code execution.
> 
> 6:31 Reserved.
> 
> According to this info you are disabling the JTAG RTCK line.
> 
> Hope this helps,
> Aalt
> 

Ups forgot to tell - it's a lpc2132 :o)

I use the following line and it still crashes:

PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));

At the moment it isn't that big a deal, since the PINSEL2 bit 2 and 3
are 0 at reset, and that's what I want them to be. It just pusled me
that I couldn't write to those two bits whithout the MCU crashing.

/Søren

Re: [lpc2000] Re: PINSEL2 crashes everything

2005-08-02 by Aalt Lokhorst

Hello Soren,

I think your hardware is running fine, probably the behaviour is not what your expecting but that is not caused by a hardware failure.

Look in the User Manual of the LPC2132, you can find it on the Philips site.

The manual tells:
Warning: use read-modify-write operation when accessing PINSEL2 register. Accidental write of 0 to bit 2 and/or bit 3 results in loss of 
debug and/or trace functionality! Changing of either bit 4 or bit 5 from 
1 to 0 may cause an incorrect code execution!

The same manual shows in Table 60 that the Reset value of bit 2 isn't 0, 
the default value is the inverted level that is at P1.26 (RTCK) during Reset. This P1.26 needs to be low during reset if you want to use the JTAG port. This will result in setting bit 2 of PINSEL2. If you clear this bit then it will disable the JTAG port.

Regarding your code:
I think your line of code isn't doing what you want it to do.

PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));

You are 'anding' PINSEL2 with 0 because the both (0 << #) items will evalute to 0. If you want to clear a bit then you have to 'AND' with the 
inverted bitvalue to prevent the changing of the other bits . (I think it should be something like ~(1<<2)


Regards
Aalt

soren_t_hansen wrote:
> --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
>  > Hello Søren,
>  >
>  > Not sure what processor you are using but I think you are diabling
> the JTAG by changing a JTAG line into a GPIO line.
>  >
>  > I am using the LC2129 and the usermanual of this processor shows the
> following:
>  >
>  > Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
>  > (PINSEL2 - 0xE002C014)
>  >
>  > 1:0 Reserved.
>  >
>  > 2 When 0, pins P1.36:26 are used as GPIO pins.
>  >    When 1, P1.31:26 are used as a Debug port. (RTCK)
>  >
>  > 3 When 0, pins P1.25:16 are used as GPIO pins.
>  >    When 1, P1.25:16 are used as a Trace port.  (TRACESYNC)
>  >
>  > 4:5 Reserved.  Note: These bits must not be altered at any time.
>  >      Changing them may result in an incorrect code execution.
>  >
>  > 6:31 Reserved.
>  >
>  > According to this info you are disabling the JTAG RTCK line.
>  >
>  > Hope this helps,
>  > Aalt
>  >
> > Ups forgot to tell - it's a lpc2132 :o)
> > I use the following line and it still crashes:
> > PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> > At the moment it isn't that big a deal, since the PINSEL2 bit 2 and 3
> are 0 at reset, and that's what I want them to be. It just pusled me
> that I couldn't write to those two bits whithout the MCU crashing.
> > /Søren
> > > > ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
> >     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        >     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        >     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
> > > ------------------------------------------------------------------------
> 
-- ==============================
Aalt Lokhorst
Schut Geometrische Meettechniek bv
Duinkerkenstraat 21
9723 BN Groningen
P.O. Box 5225
9700 GE Groningen
The Netherlands
Tel: +31-50-5877877
Fax: +31-50-5877899
E-mail: Lokhorst@...
==============================

Re: [lpc2000] Re: PINSEL2 crashes everything

2005-08-02 by Jim Parziale

PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));

According to this, you're clearing PINSEL2 altogether. Did you mean:

PINSEL2 = (PINSEL2 & (1 << 2) & (1 << 3));

On 8/2/05, soren_t_hansen <soren_t_hansen@...> wrote:
> 
>  --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
> > Hello Søren,
> > 
> > Not sure what processor you are using but I think you are diabling
> the JTAG by changing a JTAG line into a GPIO line.
> > 
> > I am using the LC2129 and the usermanual of this processor shows the
> following:
> > 
> > Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
> > (PINSEL2 - 0xE002C014)
> > 
> > 1:0 Reserved.
> > 
> > 2 When 0, pins P1.36:26 are used as GPIO pins.
> > When 1, P1.31:26 are used as a Debug port. (RTCK)
> > 
> > 3 When 0, pins P1.25:16 are used as GPIO pins.
> > When 1, P1.25:16 are used as a Trace port. (TRACESYNC)
> > 
> > 4:5 Reserved. Note: These bits must not be altered at any time.
> > Changing them may result in an incorrect code execution.
> > 
> > 6:31 Reserved.
> > 
> > According to this info you are disabling the JTAG RTCK line.
> > 
> > Hope this helps,
> > Aalt
> > 
> 
> Ups forgot to tell - it's a lpc2132 :o)
> 
> I use the following line and it still crashes:
> 
> PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> 
> At the moment it isn't that big a deal, since the PINSEL2 bit 2 and 3
> are 0 at reset, and that's what I want them to be. It just pusled me
> that I couldn't write to those two bits whithout the MCU crashing.
> 
> /Søren
>


[Non-text portions of this message have been removed]

Re: [lpc2000] Re: PINSEL2 crashes everything

2005-08-02 by Jim Parziale

Oops - now I did it ...
Is this what you really meant?

 PINSEL2 = PINSEL2 & ((1 << 2) | (1 << 3));

Even so, this clear all other bits...

On 8/2/05, Jim Parziale <nuncio.bitis@...> wrote:
> 
> PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> 
> According to this, you're clearing PINSEL2 altogether. Did you mean:
> 
> PINSEL2 = (PINSEL2 & (1 << 2) & (1 << 3));
> 
> On 8/2/05, soren_t_hansen <soren_t_hansen@...> wrote:
> > 
> >  --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
> > > Hello Søren,
> > > 
> > > Not sure what processor you are using but I think you are diabling
> > the JTAG by changing a JTAG line into a GPIO line.
> > > 
> > > I am using the LC2129 and the usermanual of this processor shows the
> > following:
> > > 
> > > Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
> > > (PINSEL2 - 0xE002C014)
> > > 
> > > 1:0 Reserved.
> > > 
> > > 2 When 0, pins P1.36:26 are used as GPIO pins.
> > > When 1, P1.31:26 are used as a Debug port. (RTCK)
> > > 
> > > 3 When 0, pins P1.25:16 are used as GPIO pins.
> > > When 1, P1.25:16 are used as a Trace port. (TRACESYNC)
> > > 
> > > 4:5 Reserved. Note: These bits must not be altered at any time.
> > > Changing them may result in an incorrect code execution.
> > > 
> > > 6:31 Reserved.
> > > 
> > > According to this info you are disabling the JTAG RTCK line.
> > > 
> > > Hope this helps,
> > > Aalt
> > > 
> > 
> > Ups forgot to tell - it's a lpc2132 :o)
> > 
> > I use the following line and it still crashes:
> > 
> > PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> > 
> > At the moment it isn't that big a deal, since the PINSEL2 bit 2 and 3
> > are 0 at reset, and that's what I want them to be. It just pusled me
> > that I couldn't write to those two bits whithout the MCU crashing.
> > 
> > /Søren
> > 
> 
> 


-- 
----------------------------------------------------------
Jim Parziale
Email: nuncio.bitis@...
Malden, MA
----------------------------------------------------------


[Non-text portions of this message have been removed]

Re: PINSEL2 crashes everything

2005-08-02 by dsidlauskas1

If yopu want to clear bits 2&3 without changing any of the others do:

PINSEL2 = PINSEL2 & 0xfffffff3;
or 
PINSEL2 &= 0xfffffff3;

Dave S.

--- In lpc2000@yahoogroups.com, Jim Parziale <nuncio.bitis@g...> wrote:
> Oops - now I did it ...
> Is this what you really meant?
> 
>  PINSEL2 = PINSEL2 & ((1 << 2) | (1 << 3));
> 
> Even so, this clear all other bits...
> 
> On 8/2/05, Jim Parziale <nuncio.bitis@g...> wrote:
> > 
> > PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> > 
> > According to this, you're clearing PINSEL2 altogether. Did you mean:
> > 
> > PINSEL2 = (PINSEL2 & (1 << 2) & (1 << 3));
> > 
> > On 8/2/05, soren_t_hansen <soren_t_hansen@y...> wrote:
> > > 
> > >  --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...>
wrote:
> > > > Hello Søren,
> > > > 
> > > > Not sure what processor you are using but I think you are diabling
> > > the JTAG by changing a JTAG line into a GPIO line.
> > > > 
> > > > I am using the LC2129 and the usermanual of this processor
shows the
> > > following:
> > > > 
> > > > Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
> > > > (PINSEL2 - 0xE002C014)
> > > > 
> > > > 1:0 Reserved.
> > > > 
> > > > 2 When 0, pins P1.36:26 are used as GPIO pins.
> > > > When 1, P1.31:26 are used as a Debug port. (RTCK)
> > > > 
> > > > 3 When 0, pins P1.25:16 are used as GPIO pins.
> > > > When 1, P1.25:16 are used as a Trace port. (TRACESYNC)
> > > > 
> > > > 4:5 Reserved. Note: These bits must not be altered at any time.
> > > > Changing them may result in an incorrect code execution.
> > > > 
> > > > 6:31 Reserved.
> > > > 
> > > > According to this info you are disabling the JTAG RTCK line.
> > > > 
> > > > Hope this helps,
> > > > Aalt
> > > > 
> > > 
> > > Ups forgot to tell - it's a lpc2132 :o)
> > > 
> > > I use the following line and it still crashes:
> > > 
> > > PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> > > 
> > > At the moment it isn't that big a deal, since the PINSEL2 bit 2
and 3
Show quoted textHide quoted text
> > > are 0 at reset, and that's what I want them to be. It just pusled me
> > > that I couldn't write to those two bits whithout the MCU crashing.
> > > 
> > > /Søren
> > > 
> > 
> > 
> 
> 
> -- 
> ----------------------------------------------------------
> Jim Parziale
> Email: nuncio.bitis@g...
> Malden, MA
> ----------------------------------------------------------
> 
> 
> [Non-text portions of this message have been removed]

Re: PINSEL2 crashes everything

2005-08-03 by Dave

--- In lpc2000@yahoogroups.com, "soren_t_hansen" <soren_t_hansen@y...>
wrote:
> --- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
> > Hello S�ren,
> > 
> > Not sure what processor you are using but I think you are diabling
> the JTAG by changing a JTAG line into a GPIO line.
> > 
> > I am using the LC2129 and the usermanual of this processor shows the
> following:
> > 
> > Table 63: Pin Function Select Register 2 for LPC2119/2129/2194
> > (PINSEL2 - 0xE002C014)
> > 
> > 1:0 Reserved.
> > 
> > 2 When 0, pins P1.36:26 are used as GPIO pins.
> >    When 1, P1.31:26 are used as a Debug port. (RTCK)
> > 
> > 3 When 0, pins P1.25:16 are used as GPIO pins.
> >    When 1, P1.25:16 are used as a Trace port.  (TRACESYNC)
> > 
> > 4:5 Reserved.  Note: These bits must not be altered at any time.
> >      Changing them may result in an incorrect code execution.
> > 
> > 6:31 Reserved.
> > 
> > According to this info you are disabling the JTAG RTCK line.
> > 
> > Hope this helps,
> > Aalt
> > 
> 
> Ups forgot to tell - it's a lpc2132 :o)
> 
> I use the following line and it still crashes:
> 
> PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> 
> At the moment it isn't that big a deal, since the PINSEL2 bit 2 and 3
> are 0 at reset, and that's what I want them to be. It just pusled me
> that I couldn't write to those two bits whithout the MCU crashing.
> 
> /S�ren

You obviously meant:

//---------------------------------------------------------------

#define PIO_PINSEL0        ((volatile unsigned long *) 0xE002C000)
#define PIO_PINSEL1        ((volatile unsigned long *) 0xE002C004)
#define PIO_PINSEL2        ((volatile unsigned long *) 0xE002C014)

struct PINSEL_REGS {
	volatile unsigned long* sel0;
	volatile unsigned long* sel1;
	volatile unsigned long* sel2;
};

static const struct PINSEL_REGS pinsel_regs = {
	PIO_PINSEL0,
	PIO_PINSEL1,
	PIO_PINSEL2
};

static const struct PINSEL_REGS* pioGetPinSel(void) { return
&pinsel_regs; }

//---------------------------------------------------------------

	unsigned long regVal;
	const struct PINSEL_REGS* pinsel = pioGetPinSel();

	regVal = *pinsel->sel2;
	regVal &= ~(PINSEL2_ENABLE_TRACE | PINSEL2_ENABLE_DEBUG);
	*pinsel->sel2 = regVal;

Dave

Re: PINSEL2 crashes everything

2005-08-03 by soren_t_hansen

--- In lpc2000@yahoogroups.com, Jim Parziale <nuncio.bitis@g...> wrote:
> Oops - now I did it ...
> Is this what you really meant?
> 
>  PINSEL2 = PINSEL2 & ((1 << 2) | (1 << 3));
 
This is the code that I've been trying now, but still it crashes. 

PINSEL2 = (PINSEL2 & ~(1 << 2)) & ~(1 << 3);

But I'll just leave it be since if I don't do anything it works ok :o)

/Søren

Re: PINSEL2 crashes everything

2005-08-03 by soren_t_hansen

--- In lpc2000@yahoogroups.com, "Aalt Lokhorst" <lokhorst@s...> wrote:
> Hello Soren,
> 
> I think your hardware is running fine, probably the behaviour is not
what your expecting but that is not caused by a hardware failure.
> 
> Look in the User Manual of the LPC2132, you can find it on the
Philips site.
> 
> The manual tells:
> Warning: use read-modify-write operation when accessing PINSEL2
register. Accidental write of 0 to bit 2 and/or bit 3 results in loss of 
> debug and/or trace functionality! Changing of either bit 4 or bit 5
from 
> 1 to 0 may cause an incorrect code execution!
> 
> The same manual shows in Table 60 that the Reset value of bit 2
isn't 0, 
> the default value is the inverted level that is at P1.26 (RTCK)
during Reset. This P1.26 needs to be low during reset if you want to
use the JTAG port. This will result in setting bit 2 of PINSEL2. If
you clear this bit then it will disable the JTAG port.
> 
> Regarding your code:
> I think your line of code isn't doing what you want it to do.
> 
> PINSEL2 = (PINSEL2 & (0 << 2) & (0 << 3));
> 
> You are 'anding' PINSEL2 with 0 because the both (0 << #) items will
evalute to 0. If you want to clear a bit then you have to 'AND' with the 
> inverted bitvalue to prevent the changing of the other bits . (I
think it should be something like ~(1<<2)
> 


So this actually means that I can't use these pins at the same time as
the JTag interface? Seems that I need to have a little chat with the
guys who made the requirements for this assignment :o)

Thank you very much for the clarification

/Søren

Re: PINSEL2 crashes everything

2006-03-15 by upanie1

--- In lpc2000@yahoogroups.com, 42Bastian Schick <bastian42@...> wrote:
>
> soren_t_hansen <soren_t_hansen@...> schrieb am Mon, 01 Aug 2005 
> 14:04:44 -0000:
> 
> > I'm trying to write to the PINSEL2 register, to ensure that it has 0's
> > at bit 2 and 3, but if I try to write to the register, the JTAG
> > connection drops, and it seems as if the MCU enter some other mode,
> > since I can't restore the connection whitout having to do a power
cycle.
> > Has anyone experienced this?
> > And how can I write to the PINSEL2 register, whitout having this
problem?
> 
> Some bits disable JTAG, be sure to set these to the correctly.
> 
> -- 
> 42Bastian Schick
>

Hi. Ihave the same problem.

> Some bits disable JTAG, be sure to set these to the correctly.
OK, but how to this if i can't load new program - JTAG doesn't want to
work. I can't use ISP because my hardware does not allow to do it.
And one more thing: user manual says that one can't write 1s at
specified position to PINSEL2 but i write 0 to it and JTAG crashes.

please help
Adam

Re: [lpc2000] Re: PINSEL2 crashes everything

2006-03-15 by German Ortiz

Hi!

If you write PINSEL2 bit 2 to zero, this disable the debug resource on the
LPC microcontroller. So, if you need to debug yor firmware, this bit
PINSEL2:2 must be 1, to ensure the P1.31-26 are enabled as debug port.

I hope this help!

Regards!

German

----- Original Message -----
Show quoted textHide quoted text
From: "upanie1" <upanie@...>
To: <lpc2000@yahoogroups.com>
Sent: Wednesday, March 15, 2006 8:40 AM
Subject: [lpc2000] Re: PINSEL2 crashes everything


> --- In lpc2000@yahoogroups.com, 42Bastian Schick <bastian42@...> wrote:
> >
> > soren_t_hansen <soren_t_hansen@...> schrieb am Mon, 01 Aug 2005
> > 14:04:44 -0000:
> >
> > > I'm trying to write to the PINSEL2 register, to ensure that it has 0's
> > > at bit 2 and 3, but if I try to write to the register, the JTAG
> > > connection drops, and it seems as if the MCU enter some other mode,
> > > since I can't restore the connection whitout having to do a power
> cycle.
> > > Has anyone experienced this?
> > > And how can I write to the PINSEL2 register, whitout having this
> problem?
> >
> > Some bits disable JTAG, be sure to set these to the correctly.
> >
> > --
> > 42Bastian Schick
> >
>
> Hi. Ihave the same problem.
>
> > Some bits disable JTAG, be sure to set these to the correctly.
> OK, but how to this if i can't load new program - JTAG doesn't want to
> work. I can't use ISP because my hardware does not allow to do it.
> And one more thing: user manual says that one can't write 1s at
> specified position to PINSEL2 but i write 0 to it and JTAG crashes.
>
> please help
> Adam
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.2/280 - Release Date: 13/03/2006
>
>

Re: [lpc2000] Re: PINSEL2 crashes everything

2006-03-15 by Stanley Frederickson

When you say that your hardware doesn't support ISP, I
am guessing you just don't have the UART setup to
communicate with the PC.  Can you still pull pin P0.14
low during reset to have the chip enter bootloader
mode anyway?  If so, your code that disabled the JTAG
interface won't get to run (the Philips ISP bootloader
will run instead) and then you can connect through the
JTAG interface and reprogram the chip.

Did you also write 0 to bit 2?  If so, this would
switch the JTAG pins into GPIO mode instead of debug
mode.

--- upanie1 <upanie@...> wrote:

> OK, but how to this if i can't load new program -
> JTAG doesn't want to
> work. I can't use ISP because my hardware does not
> allow to do it.
> And one more thing: user manual says that one can't
> write 1s at
> specified position to PINSEL2 but i write 0 to it
> and JTAG crashes.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com

Re: [lpc2000] Re: PINSEL2 crashes everything

2006-03-15 by Adam Malinowski

Thanks. I used P0.14 to get rid of my program
and reprogramed it via JTAG.
Smart idea. Thanks again.

Adam

Stanley Frederickson wrote:
Show quoted textHide quoted text
> When you say that your hardware doesn't support ISP, I
> am guessing you just don't have the UART setup to
> communicate with the PC.  Can you still pull pin P0.14
> low during reset to have the chip enter bootloader
> mode anyway?  If so, your code that disabled the JTAG
> interface won't get to run (the Philips ISP bootloader
> will run instead) and then you can connect through the
> JTAG interface and reprogram the chip.
>
> Did you also write 0 to bit 2?  If so, this would
> switch the JTAG pins into GPIO mode instead of debug
> mode.
>
> --- upanie1 <upanie@...> wrote:
>
> > OK, but how to this if i can't load new program -
> > JTAG doesn't want to
> > work. I can't use ISP because my hardware does not
> > allow to do it.
> > And one more thing: user manual says that one can't
> > write 1s at
> > specified position to PINSEL2 but i write 0 to it
> > and JTAG crashes.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> SPONSORED LINKS
> Microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=mfaAujKZXA2Z_vxre9sGnQ> 
> 	Microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=9jjd2D3GOLIESVQssLmLsA> 
> 	Intel microprocessors 
> <http://groups.yahoo.com/gads?t=ms&k=Intel+microprocessors&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=OMnZuqMZX95mgutt4B-tDw> 
>
> Pic microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microcontrollers&w2=Microprocessor&w3=Intel+microprocessors&w4=Pic+microcontrollers&c=4&s=95&.sig=Malspbd0T4Rq3M4Q0nHrfw> 
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.