Table 30–609, Table 30–610, Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 686

Advertising
background image

UM10237_4

© NXP B.V. 2009. All rights reserved.

User manual

Rev. 04 — 26 August 2009

686 of 792

NXP Semiconductors

UM10237

Chapter 30: LPC24XX Flash memory programming firmware

"OK<CR><LF>" to continue further transmission. If the check-sum does not match then
the host should respond with "RESEND<CR><LF>". In response the ISP command
handler sends the data again.

9.6 Prepare sector(s) for write operation <start sector number> <end

sector number>

This command makes Flash write/erase operation a two step process.

Table 609. ISP Read Memory command

Command

R

Input

Start Address:

Address from where data bytes are to be read. This address

should be a word boundary.

Number of Bytes:

Number of bytes to be read. Count should be a multiple of 4.

Return Code

CMD_SUCCESS followed by <actual data (UU-encoded)> |

ADDR_ERROR (Address not on word boundary) |

ADDR_NOT_MAPPED |

COUNT_ERROR (Byte count is not a multiple of 4) |

PARAM_ERROR |

CODE_READ_PROTECTION_ENABLED

Description

This command is used to read data from RAM or Flash memory. This command is
blocked when code read protection is enabled.

Example

"R 1073741824 4<CR><LF>" reads 4 bytes of data from address 0x4000 0000.

Table 610. ISP Prepare sector(s) for write operation command

Command

P

Input

Start Sector Number

End Sector Number:

Should be greater than or equal to start sector number.

Return Code

CMD_SUCCESS |

BUSY |

INVALID_SECTOR |

PARAM_ERROR

Description

This command must be executed before executing "Copy RAM to Flash" or
"Erase Sector(s)" command. Successful execution of the "Copy RAM to Flash" or
"Erase Sector(s)" command causes relevant sectors to be protected again. The
boot block can not be prepared by this command. To prepare a single sector use
the same "Start" and "End" sector numbers.

Example

"P 0 0<CR><LF>" prepares the Flash sector 0.

Advertising