Flash Magic Forum

Archive => Old Topics => Topic started by: Rons on February 17, 2004, 08:59:28 AM

Title: Erasing flash
Post by: Rons on February 17, 2004, 08:59:28 AM
I have been unable to erase flash blocks using the IAP system
calll documented in the data sheet for the P89C668HBA part.
FlashMagic is able to do this (thank you esacademy). I am able
to program bytes with the IAP system call. So I was wondering
if other people encounted this.
Title: Re: Erasing flash
Post by: Andy Ayre on February 17, 2004, 11:18:49 AM
Flash Magic doesn't do any of this, but the Philips ISP bootloader does. However, we have a free Rx2 IAP library on our website that does what you are trying to do (IAP calls from C). It can easily be adapted for the 66x as the devices are very very similar. You can get it from:

http://www.esacademy.com/faq/progs/flash.htm

Title: Re: Erasing flash
Post by: Rons on February 17, 2004, 01:39:09 PM

Yes I know that FlashMagic doesn't do the work, only makes requests.
I did notice that the files you mentioned do one thing that I am not doing.
Disabling interrupts does the trick. Even though I have a timer tick interrupt
that just bumps a counter, I'm not sure why it must be disabled. But I am
not complaining. Thanks.