Erase the data in flash memory

Description

  Erase a range of data in flash memory.

This command only can't be used in commands set.

Note: V7 firmware----the address will be remapped into the reserved memory space that reserved by command Reserve flash.

Usage:

Direct:

"FLMERAL"

Arduino:

void flashErase(uint32_t addr, uint32_t length)

C:

void Digole_flashErase(uint24_t addr, uint24_t length)

Parameters:

A, addr

The 3 bytes start address where the memory going to be erased.

L, length

The 3 bytes length of the memory going to be erased

Return:

none

Example (Arduino):

mydisp.flashErase(65536L,4096); //erase the flash memory from address 65536 to 69631

Example(direct)

serial.writeString("FLMER\x01\x00\00\x00\x10\x00"); //erase the flash memory from address 65536 to 69631

Changelog

Version Description
   

See Also

Mini file