This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAP Programming

Hi all

I have to add an In-Application Programming feature to my program. I'm using 89c51rc2 with no external memory and keil.

I've read several threads about IAP but not found exactly the thing itself.

At the moment, I
- I have a 'boot' program, which looks if there is a new program on the high part of the flash (previously written there by the application or normal program), by means of an absolute addressable variable. If there is a new program, boot copies the program at the low part of the flash.
- After that, it is supposed that boot must jump to the application program.


But I guess I'm getting in trouble with interrupt vectors or some other conflict. I'd appreciate an example or a link.

Thanks in advance

Parents
  • Well, I think that a power failure does not affect the process, because in that case, the program will start with the bootloader.
    The flag that indicates the existence of a new program is not set to 0 until the copying process form high to low part is done.

    So ... if there is a new program, start again the copying process
    else
    the program in low part is not corrupt and jump to it.

Reply
  • Well, I think that a power failure does not affect the process, because in that case, the program will start with the bootloader.
    The flag that indicates the existence of a new program is not set to 0 until the copying process form high to low part is done.

    So ... if there is a new program, start again the copying process
    else
    the program in low part is not corrupt and jump to it.

Children