Erases a single sector in System Flash memory. The sector to erase is determined based on the provided address. Any address within the sector will specify that the entire sector be erased. The sector specified must be in the acceptable range for the user area of Flash memory for the device. See the device User's Manual for Flash memory layout details.
Byte address within the sector to erase.
Retrieves the layout of the flash memory.
Reads data from System Flash memory starting at the specified address. The address and length must both be integer multiples of the System Flash page size.
Byte address to begin read operation.
The buffer to store the data that is read. The transfer length is determined by the buffer's byte length. The buffer must not be modified or detached until the returned Promise settles.
Writes data to System Flash memory starting at the specified address. The address and length must both be integer multiples of the System Flash page size. This method will not erase the sector prior to writing. You must use eraseSector to erase a sector prior to writing.
Byte address to begin write operation.
The data to write. The transfer length is determined by the buffer's byte length. The buffer must not be modified or detached until the returned Promise settles.
Interface that provides the methods that may be used to interact with flash memory.