Flash Magic Forum

In-System Programming Support => P89V51Rx2/P89LV51Rx2 => Topic started by: scottyz on November 29, 2006, 11:30:31 PM

Title: How can I repair bootloader?
Post by: scottyz on November 29, 2006, 11:30:31 PM
Hi :
I make a mistake ,i had erased contents in block1,
now ,i know block1 contains a bootloader code ,
even i usr All-11 programmer to burn my code in block0,
the mcu still not work, i had download a bootloader v5,and burn it
to block1, but i seems to have no effect.

what can i do?
Title: Re: How can I repair bootloader?
Post by: Je Gold on December 09, 2006, 10:43:28 AM
Hi,

I can confirm you can reload the bootloader to block1  using a "Parallel" propgramer like the HiLo All-11.
(block0 is the user program code)

I have done it a few times.

you need to download the latest bootloader code from  NXP (Philips).

http://www.standardics.nxp.com/support/documents/microcontrollers/zip/boot.loader.p89(l)v51rd2.zip


PS... You may need to check your programmer setting to disable double clock etc.

Joe


Joe
Title: Re: How can I repair bootloader?
Post by: Jan Waclawek on December 10, 2006, 12:55:15 PM
Even if you wouldn't be able to program block1 on the parallel programmer - which I doubt, I believe there must be some "trick" how to achieve it - maybe they map Block1 to above 0xFFFF? try consulting the programmer's manual, manufacturer's website etc. - if you program the "upgrade" into block 0, upon running it programs the bootloader to block1.

Have fun!

JW
Title: Re: How can I repair bootloader?
Post by: Andy Ayre on December 11, 2006, 06:37:39 AM
The 89(L)V51Rx2 bootloader in the Flash Magic resources section is newer than the version on the NXP web site.

  http://www.flashmagictool.com/resources.html (http://www.flashmagictool.com/resources.html)

Andy