Author Topic: Boot loader Jump  (Read 10343 times)

Joris

  • Guest
Boot loader Jump
« 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.


Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Boot loader Jump
« Reply #1 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

erikm

  • Guest
Re: Boot loader Jump
« Reply #2 on: May 19, 2005, 10:52:56 am »
The NoTouch for LPC will do just that, have a look.

Erik

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Boot loader Jump
« Reply #3 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

Joris

  • Guest
Re: Boot loader Jump
« Reply #4 on: May 20, 2005, 04:22:53 am »
I'm just a student, just C programming no asm


erikm

  • Guest
Re: Boot loader Jump
« Reply #5 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

Joris

  • Guest
Re: Boot loader Jump
« Reply #6 on: May 20, 2005, 05:38:03 am »
I meant I only have knowledge of C , so thats why I asked for asm explanation

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Boot loader Jump
« Reply #7 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

erikm

  • Guest
Re: Boot loader Jump
« Reply #8 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

Joseph Goldburg

  • Guest
Re: Boot loader Jump
« Reply #9 on: May 21, 2005, 03:54:01 am »
HI Jan,


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


Regards
Joseph  - Philips FAE - Adilam Electronics

Jan Waclawek

  • Full Member
  • ***
  • Posts: 220
    • View Profile
    • EFTON homepage
Re: Boot loader Jump
« Reply #10 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.

erikm

  • Guest
Re: Boot loader Jump
« Reply #11 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/

Joris

  • Guest
Re: Boot loader Jump
« Reply #12 on: May 25, 2005, 05:16:16 am »
I probably could....:)