Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: pcodas on February 13, 2006, 01:54:32 AM

Title: IAP work, but its dangerous
Post by: pcodas on February 13, 2006, 01:54:32 AM
Hi, I was looking form some help to do my sw update arch. Can I erase the first block of my flash? I think that's dangerous, because after I've errased it in IAP and change the STATUS BYTE to NON CERO, so my programm can start at BOOT VECTOR = 0x8000; since then I can NOT acces to my micro (89C664) with ISP.

Is there a form to acces again to my micro? Don't tell me just with the parallel programming form, please!!!

I can't RUN my programm since I ERASED the first block... what a miss!!!

Thanks for your help.

Regards,

Piero
Title: Re: IAP work, but its dangerous
Post by: Andy Ayre on February 13, 2006, 07:00:45 AM
If you changed the boot vector to something other than the factory default then:

  - if you have your own bootloader at that location, perhaps something is wrong with it?

  - I have no idea regarding non-factory bootloaders

Title: Re: IAP work, but its dangerous
Post by: pcodas on February 13, 2006, 11:02:51 PM
Andy, it worked perfectly (STATUS_BYTE != 0x00 && BOOT_VECTOR == 0x8000) because I've copied the exacly flash programm to this address (0x8000). Miserably something went wrong because I was proving my SW and I was unable to change the STATUS BYTE and BOOT VECTOR due to no implementation of this functions were included in my new SW (too bad, my fault).

But anyway, it seems that I've to demount the micro and reprogramm it in parallel again.

Thanks for the response.

Regards,

Piero

Title: Re: IAP work, but its dangerous
Post by: erikm on February 16, 2006, 04:55:20 AM
IAP is NOT "dangerous" it just requires that you THINK (gasp)

I have seen more IAP that could not handel a power interruption than Carter has liver pills.

Erik