Flash Magic Forum

In-System Programming Support => LPC9xx/LPC9xxx => Topic started by: Joris on May 19, 2005, 06:35:14 AM

Title: Boot loader Jump
Post by: Joris on May 19, 2005, 06:35:14 AM
Does anyone have an example of a boot loader jump code needed for p89lpc932A1 to be able te reprogram the processor in ISP mode.

Title: Re: Boot loader Jump
Post by: Jan Waclawek on May 19, 2005, 09:02:21 AM
Hummm...   LJMP 1F00h?!
(except maybe some of the SFRs might need setting to their initial value; I would at least set SP to 07h and disable all interrupts).

But, wait a moment, is the IP address of your computer really ---.pixs.philips.com???

Strange things happen today...

Jan Waclawek
Title: Re: Boot loader Jump
Post by: erikm on May 19, 2005, 10:52:56 AM
The NoTouch for LPC will do just that, have a look.

Erik
Title: Re: Boot loader Jump
Post by: Jan Waclawek on May 20, 2005, 02:39:18 AM
Oh yes, that's a better solution (provided that the boot vector is intact, i.e. 1Fh). But note, that the IAP entry point (PGM_MTP) has changed for the LPC932A1 to FF03h.

You can also envoke a software reset, setting bit 3 of AUXR1.

Jan Waclawek
Title: Re: Boot loader Jump
Post by: Joris on May 20, 2005, 04:22:53 AM
I'm just a student, just C programming no asm

Title: Re: Boot loader Jump
Post by: erikm on May 20, 2005, 05:23:20 AM
I'm just a student

then I sugges you study

just C programming no asm

Then hang it up, the communication to the bootloader is in the registers which C does not "know" what is.

Erik
Title: Re: Boot loader Jump
Post by: Joris on May 20, 2005, 05:38:03 AM
I meant I only have knowledge of C , so thats why I asked for asm explanation
Title: Re: Boot loader Jump
Post by: Jan Waclawek on May 20, 2005, 09:24:30 AM
Get the NoTouch for LPC935 (the file not by Erik) from this site, the asm code is somewhat commented there. You need also get the user manual for LPC935 and read the IAP section; there is a table with IAP functions, so you will see there why loading those registers etc.
And it should work with LPC932A1 (whereas Erik's works only with the older LPC932).

But, I am still curious, if you are with Philips (even if being a student), couldn't you get these informations from "inside"?

Jan Waclawek
Title: Re: Boot loader Jump
Post by: erikm on May 20, 2005, 01:09:13 PM
(whereas Erik's works only with the older LPC932).

WRONG

I started the NoTouch for the Rx2 and the 66x, Then I sketched NoTouch for LPC which someine else (I were not LPC active at that time) finished.

Thus the NoTouch by me is NOT for LPCs

Erik
Title: Re: Boot loader Jump
Post by: Joseph Goldburg on May 21, 2005, 03:54:01 AM
HI Jan,


And you get your sources from......


Regards
Joseph  - Philips FAE - Adilam Electronics
Title: Re: Boot loader Jump
Post by: Jan Waclawek on May 23, 2005, 01:25:10 AM
See http://www.8052.com/forum/read.phtml?id=84899 and followup.

Jan Waclawek

PS. Erik: My - wrong - impression was based on http://www.8052.com/users/erikm/NoTouch932.phtml which is pointed to from the FM main page.
Sorry.
Title: Re: Boot loader Jump
Post by: erikm on May 23, 2005, 05:59:58 AM
And you get your sources from......

right here, close to the botttom of the page http://www.esacademy.com/software/flashmagic/
Title: Re: Boot loader Jump
Post by: Joris on May 25, 2005, 05:16:16 AM
I probably could....:)