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
  • mmm a power failure during interrupt vector redirection...

    the application program will miss the interrupt. It is not critical. There are only interrupts. The program would start again.

    But my problem at this point is -I think- how to redirect interrupts or the philosophy of my iap system itself or how to avoid any conflict between the bootloader and the application.

    Do i need a third program?? call it interrupt handler?? how would I write it in C.


    Thanks

Reply
  • mmm a power failure during interrupt vector redirection...

    the application program will miss the interrupt. It is not critical. There are only interrupts. The program would start again.

    But my problem at this point is -I think- how to redirect interrupts or the philosophy of my iap system itself or how to avoid any conflict between the bootloader and the application.

    Do i need a third program?? call it interrupt handler?? how would I write it in C.


    Thanks

Children