ICP w/ LPC9381 and FDI USB-ICP

Started by BobSki778, November 17, 2008, 12:07:36 PM

Previous topic - Next topic


Hi Everyone,

Has anyone had any success with ICP on the P89LPC9381?  I am using the USB-ICP programming adaptor and a custom PCB with the P89LPC9381 on it.  Neither UCB-ICP nor FlashMagic seem to "officially" support the P89LPC9381, but an NXP FAE told me that I should be able to just treat it as an P89LPC938 with half of the flash blocks and a few less peripherals, since that's basically what it is.  I tried this, though, will no success.  FlashMagic complained that the ID bytes didn't match (which is to be expected, since it's not *actually* a '938), but erased the device anyway with apparent success.  When I attempted to read the device signature manually, it returned all 0s.

Any ideas?


Ok, so I'm an idiot.   :P I had the reset and ICP PCL signals swapped in my connector.  Doh!  It seems to mostly work fine now.  It would still be nice to have "official" support of the 89LPC9381, though, because the ISP code is in a different location than on the 89LPC938, so I'm not sure the "protect ISP code" works correctly.  Does that option actually read the boot vector and status bits from the device to determine which flash block to "protect" or does it use a hard-coded location per device (i.e. 0x1C00-0x1FFF for '938)?

By the way, the device signature for the 89LPC9381 is:
Manufacturer ID: 0x15 (Philips/NXP)
Device ID 1: 0xDD
Device ID 2: 0x2A

Andy Ayre

The 89LPC9381 is added to version 4.34.

Embedded Systems Academy, Inc.
support at esacademy dot com