Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | Watchdog and ISP

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

Watchdog and ISP - ssk2k4 - Apr 3 1:38:05 2007

Dear Forum Members,

I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.


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


RE: Watchdog and ISP - Andy Berney - Apr 3 4:46:17 2007

You don't mention the specifics of your environment in terms of main clock
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.

ie: WDTC = 0xFFFFFFFF;

2^32 / 60,000,000 = 71.583...

Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).

Any help?

Andy

-----Original Message-----
From: l...@yahoogroups.com [mailto:l...@yahoogroups.com]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...@yahoogroups.com
Subject: [lpc2000] Watchdog and ISP
Dear Forum Members,

I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.

[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: Watchdog and ISP - Andy Berney - Apr 3 5:04:29 2007

In fact thinking about it the Watchdog also has a prescaler of 4, so that'd
give you 286 seconds... surely that must be sufficient?

Andy

-----Original Message-----
From: l...@yahoogroups.com [mailto:l...@yahoogroups.com]On Behalf Of
Andy Berney
Sent: 03 April 2007 09:43
To: l...@yahoogroups.com
Subject: RE: [lpc2000] Watchdog and ISP
You don't mention the specifics of your environment in terms of main clock
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.

ie: WDTC = 0xFFFFFFFF;

2^32 / 60,000,000 = 71.583...

Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).

Any help?

Andy

-----Original Message-----
From: l...@yahoogroups.com [mailto:l...@yahoogroups.com]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...@yahoogroups.com
Subject: [lpc2000] Watchdog and ISP

Dear Forum Members,

I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.

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

[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: Watchdog and ISP - S K - Apr 4 6:53:27 2007

Thanks Andy,

I am using 14.7456 MHz crystal and PCLK at default value.

Also how can i feed watchdog once in ISP mode?? if flash magic takes more 4
mins then what??

Pls. help.
On 4/3/07, Andy Berney wrote:
>
> You don't mention the specifics of your environment in terms of main
> clock
> speed and peripheral clock speed, however even with a peripheral clock
> running at 60Meg you've still potentially got 71 seconds between Watchdog
> time outs if you set the maximum range.
>
> ie: WDTC = 0xFFFFFFFF;
>
> 2^32 / 60,000,000 = 71.583...
>
> Is this not sufficient time for you to program your part? (As far as I'm
> aware unlike WDMOD, WDTC can be written by software whenever you like and
> will be uploaded to the WD timer every time you do a WD feed).
>
> Any help?
>
> Andy
>
> -----Original Message-----
> From: l...@yahoogroups.com [mailto:
> l...@yahoogroups.com ]On Behalf Of
> ssk2k4
> Sent: 03 April 2007 06:37
> To: l...@yahoogroups.com
> Subject: [lpc2000] Watchdog and ISP
>
> Dear Forum Members,
>
> I am using LPC2106 for time attendance application. I have enabled
> WATCHDOG at the start of my code. It is working fine. Sometimes I need
> to upgrade the application on site. So I have included code to switch
> the LPC to ISP mode for programming the flash. This is also working as
> LPC switches to ISP mode and programming starts through Flash Magic.
> But the watchdog is not OFF, hence it resets the LPC and programming
> fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
> WATCHDOG is OFF and then code enables it. But this being software
> reset, I am not able to switch OFF the watchdog. Please help me in
> this regard. Your earliest help in this regard will be highly
> appreciated. Thanks in advance.
>
> [Non-text portions of this message have been removed]
>
[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 )