This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions,
flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.
Hi,
I'm looking to be able to erase flash from within my program, but I
have a question about doing it with NFLASH_USEERASEBLOCKSIZE=0. The
function nf_eraseBlock takes two arguments: nf_device * dev and long
page. I know what the dev argument is, but what about the page
number? Is this the erase page number (16K blocks), or the write page
number (512 byte blocks)?
The erase sample says NFLASH_USEERASEBLOCKSIZE must be 1, but does
that mean I can't erase the flash if I'm writing in 512 byte blocks?
I don't mind if I can only erase in 16K blocks (I really just want to
be able to erase the entire flash), I just need to know what argument
to pass to it, or if I need to modify the lib to allow this.
And yes, if I need to, I can use 16K write blocks, but it performs
much better using 512 byte blocks, so I'd prefer to keep using it like
this.
Thanks,
Pat
------------------------------------

(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )