MassEraseFlash Method
UP ]

 

Description

This method is used to erase the entire contents of one memory block (64 Kbytes) of on-chip Flash in a single operation.

Syntax

HCS121.MassEraseFlash (BlockNumber)

Part Type Description
BlockNumber Integer Target’s on-chip flash memory block number to be erased. Each block has 64Kbytes so that mean, if you are using a target device with 128 Kbytes of on-chip flash you have 2 block, 0 and 1.

Remarks

After execution of this method is a good idea to verify erasing using EraseVerifyFlash .

See also:

EraseVerifyFlash method .

 

If you have a question or suggestion please contact me. Updated: 03.27.2003
Copyright (c) 2003-2004 J.Gorgas. All rights reserved. All trademarks mentioned are the property of their respective owners.