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
just as a start why do you want IAP, why not ISP. No effort from you will be required. Erik
Well, the system must be remotely reprogrammed through its UART. I mean, no access but the serial interface. The micro that must be reprogrammed receives its new program with frames coming through this serial interface. ISP programming will be made only the first time, to load both bootloader and application.
why not use the "Atmel equivalent" someone made of my NoTouch for Philips P89C51Rx2 - OR switch to the Philips chip and use NoTouch. NoTouch requires just a few lines of code and makes ISP activation possible through any means such as Serial input of a code, keyboard key or whatever. No switches, no "voltage levels" just fire it up. I use Serial string activation, all my customer has to do, in order to update, is to run a .bat file. If you HAVE to use Atmel, search at 8052.com, the "Atmel equivalent" was posted there a while ago, for Philips it is all at the FlashMagic forum. Erik
no access but the serial interface. Reread your post, NoTouch does just that Erik
First, thanks for your interest Erik. Well I think what I'm doing is not exactly notouch, since the micro that must be reprogrammed must be reprogrammed by another micro, not from a PC.
Well I think what I'm doing is not exactly notouch, since the micro that must be reprogrammed must be reprogrammed by another micro, not from a PC. evidently you did not read NoTouch at http://www.esacademy.com it is VERY CLEAR from the document that it will work beautifully when "the micro that must be reprogrammed must be reprogrammed by another micro, not from a PC" Ok, if you have trouble finding it, here it is: http://www.8052.com/users/erikm/notouch.doc Of course, you will need to emulate FlashMagic in your micro that is to program the micro, but that is still less work and you gain that the micro you program is "pure" Erik
quoting the NoTouch document: This method may, of course, be used even if the program is not updated through a PC running a program such as FlashMagic, the data stream may be issued by any means as long as it conforms to the record format specifications in the data sheet.
I'll take a deeper look at it. Thanks a lot.