Author Topic: WORKING ISP NoTouch code P89LPC935 P89LPC9321  (Read 9372 times)

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
WORKING ISP NoTouch code P89LPC935 P89LPC9321
« on: February 03, 2007, 07:14:00 pm »
OK,  I have had time to prove my theory of getting NoTouch ISP bootloader activating code working.

Please find the ASM code attached... Note it calls the ISP bootloader at 1F00h for the LPC932A1 and LPC935.

It's very simple code (no complicated IAP stuff required)!

Enjoy  Joe    ;D 

PS..... If your can't jmp to 1F00h (eg code stuck in a loop or other) then you can't activate the NoTouch bootloader, and ISP hardware entry will be required.


(Andy - you can hang it on your web site if you think it is suitable)

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #1 on: February 05, 2007, 01:53:04 pm »
Added - thanks!

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

erikm

  • Full Member
  • ***
  • Posts: 113
    • View Profile
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #2 on: February 06, 2007, 06:19:27 am »
If your can't jmp to 1F00h (eg code stuck in a loop or other) then you can't activate the NoTouch bootloader, and ISP hardware entry will be required

Thsat is why "the backdoor" was invented. Read all about it.  the same can easily be applied to any proceoor version of NoTouch.  With "the backdoor" hold a port pin low, reset and you are in business.

Erik
erik

Je Gold

  • Full Member
  • ***
  • Posts: 135
    • View Profile
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #3 on: April 20, 2007, 09:13:50 am »
Hi Andy,

I have put some comments in to the latest piece of isp.a51  which relates to setting all registers back to power-on defaults and turing off the Watchdog duing isp activities.

There's no change to the code... just comments...

Can you update the isp.a51 in resources page with the one attached.

Joe

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #4 on: April 20, 2007, 09:18:49 am »
Done. You may need to clear your browser cache to get it.

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

rbtamd

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
WORKING ISP NoTouch code P89LPC935 P89LPC9321 with backdoor added
« Reply #5 on: May 21, 2007, 02:59:47 pm »
I made a backdoor version for the Joe's ISP demostration program. This was made based in the Erik's and Joe's documents. I hope this can help, the file name is ispbackdoor.a51 and it is attached to this post.
Andy if you consider it you can put it in the resourses section.

Thanks

Roberto

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2160
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #6 on: May 22, 2007, 09:16:17 am »
Added - thanks!

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

pak

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
    • Email
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #7 on: May 26, 2007, 01:44:19 am »
Hi Roberto,
           According to your ispbackdoor.a51,
Quote
If you have any trouble with ISP and you loose the boot vector, you must to shut down your system and put a clip from TXD pin to GND. Then power up your system, remove the clip, and your controller will be in ISP state. This controller will be in "fesh state" I mean, when you power it up it will be in ISP mode.
From my understanding, I have to make short-circuited from TXD pin to GND. For example, I want to recover ISP mode of P89LPC935FA and then
1) Shut down the system,
2) pin 18 and pin 7 (GND) have to be connected.
3) Power up the system, then remove the short-circuit from pin 18 and pin 7.
4) now p89LPC935FA can be used in ISP mode again. Meaning, the chip can communicate with Flash Magic.
Is it correct?

Thanks a lot,
pak

rbtamd

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #8 on: May 26, 2007, 07:52:05 am »
Exactly that is. Follow the code and you can see the test in the TXD pin and the IAP calls.

Roberto

rbtamd

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: WORKING ISP NoTouch code P89LPC935 P89LPC9321
« Reply #9 on: May 26, 2007, 07:59:22 am »
Please check the "default boot vector values and ISP entry points" in the datasheet to set the right value to the boot vector.

Roberto