Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
22
Flash.Erase
Type
Subroutine
Invocation
Flash.Erase(addr, size)
Parameter
Method
Type
Description
addr
ByVal
integral
The start of the Flash region to erase.
size
ByRef
integral
The number of bytes to erase.
Discussion
This subroutine will erase a region of Flash memory.  The actual start address for the region is that
specified by the addr parameter rounded down to a 4K block boundary and the size of the region to be
erased will be the specified size rounded up to a multiple of 4K bytes.
This routine can be used to erase any part of Flash memory, even that containing parts of the application
so it must be used with great care.
Previous page Top Next page