Author Topic: ICP w/ LPC9381 and FDI USB-ICP  (Read 5528 times)

BobSki778

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
ICP w/ LPC9381 and FDI USB-ICP
« on: November 17, 2008, 12:07:36 pm »
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?

BobSki778

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: ICP w/ LPC9381 and FDI USB-ICP
« Reply #1 on: November 17, 2008, 04:09:38 pm »
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
« Last Edit: November 17, 2008, 04:13:31 pm by BobSki778 »

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: ICP w/ LPC9381 and FDI USB-ICP
« Reply #2 on: November 19, 2008, 01:50:24 pm »
The 89LPC9381 is added to version 4.34.

Andy
Embedded Systems Academy, Inc.
support at esacademy dot com

BobSki778

  • Jr. Member
  • **
  • Posts: 8
    • View Profile
Re: ICP w/ LPC9381 and FDI USB-ICP
« Reply #3 on: November 20, 2008, 09:51:05 am »
Thanks!  It works well.