Author Topic: P89LPC932: ISP with watchdog enabled  (Read 9338 times)

Christian Suesskind

  • Guest
P89LPC932: ISP with watchdog enabled
« on: July 14, 2003, 05:14:36 pm »
I use FlashMagic (Version 1.76) to program the P89LPC932 using the ISP.

As soon as the watchdog of the P89LPC932 is enabled it is not possible to reprogram the flash anymore.

If I select "Start BootROM" (using the Send Break Condition) the device enters the Boot-ROM. But because the watchdog is not fed anymore it will reset within less than 2 seconds.

So is there any solution to use the watchdog and the ISP feature together?
For example a very fast "Start BootROM and disable watchdog" function?

Thanks for your help!

Christian Suesskind

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89LPC932: ISP with watchdog enabled
« Reply #1 on: July 15, 2003, 04:06:46 pm »
This problem only occurs if you enable the Watchdog Safety mode (WDSE bit in UCFG1). When enabled, the watchdog will start after every reset. The ISP code will not feed the watchdog.

Currently the only solution is to not enable the WDSE bit until you are sure you will not need to reprogram the device via ISP.

Embedded Systems Academy, Inc.
support at esacademy dot com

Don

  • Guest
Re: P89LPC932: ISP with watchdog enabled
« Reply #2 on: July 31, 2003, 07:51:34 pm »
I disagree.  I have the watchdog enabled without the WDSE bit set and the device will no longer program using FlashMagic.  Disabling the Watchdog via FlashMagic will then allow me to program the chip.  Truly an inconvenience since the code I am developing requires the internal wathdog be enabled.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89LPC932: ISP with watchdog enabled
« Reply #3 on: July 31, 2003, 07:54:17 pm »
Don - I have forwarded your comment to Philips to see if they can confirm if the WDSE bit is not the cause of the problem.

Embedded Systems Academy, Inc.
support at esacademy dot com

Christian Suesskind

  • Guest
Re: P89LPC932: ISP with watchdog enabled
« Reply #4 on: August 21, 2003, 04:08:18 pm »
Hi!

I can confirm that even without WDSE set it is not possible to enter the ISP using FlashMagic.

I also can not disable the watchdog because the function "Start BootROM..." needs so much time that the watchdog resets the device in the meantime.

At the moment the only workaround I have found is to program the watchdog with the longest timeout possible and to use the commandline version of FlashMagic to reset the device configuration and to enter the ISP bootloader by connecting the RxD pin immediately before starting the command.

If there is an easier way I really would like to know!

Thanks in advance!

Christian Suesskind

Ray Abram

  • Guest
Re: P89LPC932: ISP with watchdog enabled
« Reply #5 on: November 03, 2003, 12:05:58 am »
Another aproach is to write you own ISP programmer, and then you can makeup for all the Deficiencies present in flash magic.

I have successfully written an ISP programmer in LabVIEW as part of an ATE (Automated Test Equiptment) i am writing for our companies product

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89LPC932: ISP with watchdog enabled
« Reply #6 on: November 03, 2003, 03:08:39 pm »
Hi Ray,

What other problems have you experiences besides the watchdog that have not been solved?

Embedded Systems Academy, Inc.
support at esacademy dot com

Octavio

  • Guest
Re: P89LPC932: ISP with watchdog enabled
« Reply #7 on: November 19, 2004, 03:26:16 pm »
Hi everybody  
 
I want to learn how to program the P89LPC932.  
Could you recommend one software to start and one site when I can go to download?  
 
thank you for helpAndrew Ayre wrote:


Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2105
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: P89LPC932: ISP with watchdog enabled
« Reply #8 on: November 19, 2004, 03:33:30 pm »
Get the Keil MCB900 board, which comes with a special version of the Keil compiler for the LPC9xx (http://www.keil.com/lpc/lpc900_studio.htm). You can program an LPC9xx with Flash Magic (this site), which is free.

Embedded Systems Academy, Inc.
support at esacademy dot com