Main Menu

LPC 932 Watchdog

Started by Markus Buerstner, March 09, 2004, 06:21:12 AM

Previous topic - Next topic

Markus Buerstner

Hi!

I'm using Flashmagic V1.87 for programming the LPC932.
Programming works pretty fine until i set the 'enable watchdog' bit in the device configuration window.
I have problems entering bootstrap mode (reset pulses or break condition) after activating the watchdog.

Any ideas?

Thanx!

Andy Ayre

LPC932 + watchdog enabled = no ISP. This is a known problem that Philips are aware of. Basically the bootloader does not feed the watchdog, so it times out. If you click on the search link at the top and enter "watchdog" you will find a lot of past postings on this subject.

Embedded Systems Academy, Inc.
support at esacademy dot com

Markus Buerstner

Oh, sorry, i found only postings about using the watchdog timer for serial communication. I missed the ISP stuff...

*sigh* This is getting nasty. Pretty difficult to debug my WD code. One try and the controller is gone for good :-(
And the PDS900 emulator doesnt support the watchdog at the moment.

A new bootloader with WD-support is the only work-around at the moment? Is there a download available?

Cheers!

Andy Ayre

I'm not sure the status of new bootloaders - I believe the LPC935 does not have this problem. I don't know if Philips will provide a user-programmable replacement for the LPC932. You might want to check with them.

Embedded Systems Academy, Inc.
support at esacademy dot com

Markus Buerstner

Thanx!
Maybe there will be a new controller revision soon ;-)
I might be able to abandon the WD option for a while...

Bye!

Markus Buerstner

Hi!

It's me again ;-)
On the Philips website (selector table 2-clk-controllers) i saw a LPC932 with improved programmability. Unfortunatelly the device seems to be only available in a PLCC package.
Did i get this right?
Is it possible to use a LPC935 as a replacement? Does a 932 program run on a 935 without changes.

Markus

Andy Ayre

I'm not sure what the improvement in functionality is. You might want to check with Philips on that.

I believe that the LPC935 can execute an LPC932 program without changes.

Embedded Systems Academy, Inc.
support at esacademy dot com

Andreas Gretsch

Hi

I have a similar Problem. Im working with Flashmagic 1.88 and programming is working fine, except UCFG1. I changed the Bits in LPC900.A51 but after programming the UCFG1 is still in default configuration.

Does Flashmagic not Programm the UCFG1 memory area?

Thanx
Andreas


Andy Ayre

UCFG1 can only be changed by using the Device Configuration item on the ISP menu. Seems quite a few people think that UCFG1 can be changed in a Hex file - which it can't. I would be interested to know where you got that idea from so I can investigate this misinformation. Thanks!

Embedded Systems Academy, Inc.
support at esacademy dot com

Andy Ayre

Version 1.89 of Flash Magic supports setting UCFG1 and the security bits in the hex file, as specified by Keil's start900.a51.

Basically, locate UCFG1 at FFF0H and the security bits starting at FFF8H with one byte per block.

Embedded Systems Academy, Inc.
support at esacademy dot com

Bauke Siderius

Hi,

For the LPC932 the Watchdog can not be enabled to run the ISP code. Shortly an improved LPC932 called the P89LPC932A1 will be released. The LPC932A1 will have ISP that supports watchdog feeds. It will also support high speed communications from FlashMagic, that will allow the communications to go up to 115200.
More features of the LPC932A1 will be the byte-erase function in IAP and increased protection for IAP functions that do erase or program commands.

Regards,

Bauke Siderius

John Poore

I'm using the LPC935 and find a possibly related problem: If you select the Watchdog Oscillator 400 kHz as the cpu clock you can no longer communicate with the microprocessor using Flash Magic.

Andy Ayre

Because 400kHz is very slow, the baud rate you use also has to be very low to match. I tested using the LPC935 on an MCB900 board clocked from the Watchdog oscillator and found that I could connect only at 600 baud. To use this speed you will need to directly enter "600" into the Baud Rate box in section 1 of the Flash Magic window. The value in the Oscillator Frequency box is not used so can be anything.

Let me know if this solves your problem.

Embedded Systems Academy, Inc.
support at esacademy dot com

John Poore

Andy,

Yes, this does solve the problem.

It is worth noting that with the 7.373 MHz oscillator selected, Flash Magic only works at 9600 baud. With the 400 kHz oscillator selecteselected, Flash Magic only works at 600 baud. This applies to selecting clock and other features, erasing, and programming.

John Poore

Bauke

Hi,

The LPC935 supports watchdog feeds in the ISP code, also the LPC934 and LPC933.
Soon there will also be an LPC932A that wil support watchdog feeds in the ISP code.
The reason the LPC932 and LPC932A are named differently is so that it can show up in distribution systems as a different part that people can order.

Regards,

Bauke