AN2504 Freescale Semiconductor / Motorola, AN2504 Datasheet - Page 10

no-image

AN2504

Manufacturer Part Number
AN2504
Description
On-Chip FLASH Programming API for CodeWarrior Software
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2504/D
ProgramRange
ProgramRangeX
10
On-Chip FLASH Programming API for CodeWarrior Software
ProgramRange programs a range of FLASH memory with the contents of RAM.
This routine doesn’t verify whether the range to be programmed is already
blank. Programming new data to a location that is not blank is not legal. The
resulting value in the FLASH location after such an illegal programming attempt
will be incorrect or unreliable.
ProgramRangeX is the enhanced version of ProgramRange. This function
programs a range of FLASH memory with the contents of RAM. Before
programming, it verifies that the range to be programmed is blank. If the range
is not blank, the function doesn’t attempt to program it (maintaining the integrity
of the range) and returns an error code.
Freescale Semiconductor, Inc.
Entry Conditions
Entry Conditions
Exit Conditions
Exit Conditions
For More Information On This Product,
Return value
Return value
Parameters
Parameters
Prototype
Prototype
Remarks
Remarks
Go to: www.freescale.com
_ini: the absolute address of the first location in FLASH
_num: number of bytes to program
DATA contains the data to be programmed
None
None
_num must be less than or equal to 64
_ini: the absolute address of the first location in FLASH
_num: number of bytes to program.
DATA contains the data to be programmed.
None
SUCCESS or FAIL
_num must be less than or equal to 64
Table 9. ProgramRangeX
Table 8. ProgramRange
to be programmed
to be programmed.
Byte ProgramRangeX (Word *_ini, Byte _num)
Void ProgramRange (Word *_ini, Byte _num)
MOTOROLA

Related parts for AN2504