mmbutler
04-21-06, 11:23 PM
As I mentioned in my earlier thread, I'm using the NMIN-12A256B. I don't have the board at hand right now, but I believe it's running Max-FORTH v5.1.
The last time I checked, New Micros had an online document that was supposed to list all the words in v5.0, and described their function. Several flash-related words are mentioned, but I'm not finding FLERASE in my (several) plain text copies of that document. I used to have a URL for an HTML version of this doc that NMI had posted, but I can't locate it now. Note that v5.1 might be, stricly speaking, not documented at this level, depending on what has changed from v5.0. I can't tell.
The only mention of FLERASE I've seen is in the very last paragraph of the NMIN-12A256B PDF file (bottom of page 17). It's mentioned there in passing -- no details.
I've used NMI's website search for any mention of FLERASE in the forums. I only find one ARM-related post that doesn't mean much to me.
So, some questions:
1) On the NMIN-12A256B running the most recent version of Max-FORTH, what does FLERASE do? Does it erase part, or all, of the flash page pointed to by PPAGE (the register at HEX 00C0)?
2) If so, does it erase that flash page in increments of 512-byte flash memory boundaries? If not, is there a word you folks have written that does that? I would assume so, since FL!, FLC! and FLWORD would probably not work properly if you didn't have such code.
3) How is FLERASE called, and what, if anything, does it return?
4) Does FLERASE ever return any exceptions? If so, what?
Thanks.
The last time I checked, New Micros had an online document that was supposed to list all the words in v5.0, and described their function. Several flash-related words are mentioned, but I'm not finding FLERASE in my (several) plain text copies of that document. I used to have a URL for an HTML version of this doc that NMI had posted, but I can't locate it now. Note that v5.1 might be, stricly speaking, not documented at this level, depending on what has changed from v5.0. I can't tell.
The only mention of FLERASE I've seen is in the very last paragraph of the NMIN-12A256B PDF file (bottom of page 17). It's mentioned there in passing -- no details.
I've used NMI's website search for any mention of FLERASE in the forums. I only find one ARM-related post that doesn't mean much to me.
So, some questions:
1) On the NMIN-12A256B running the most recent version of Max-FORTH, what does FLERASE do? Does it erase part, or all, of the flash page pointed to by PPAGE (the register at HEX 00C0)?
2) If so, does it erase that flash page in increments of 512-byte flash memory boundaries? If not, is there a word you folks have written that does that? I would assume so, since FL!, FLC! and FLWORD would probably not work properly if you didn't have such code.
3) How is FLERASE called, and what, if anything, does it return?
4) Does FLERASE ever return any exceptions? If so, what?
Thanks.