Isp commands, Nxp semiconductors – NXP Semiconductors LPC24XX UM10237 User Manual

Page 683

Advertising
background image

UM10237_4

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

User manual

Rev. 04 — 26 August 2009

683 of 792

NXP Semiconductors

UM10237

Chapter 30: LPC24XX Flash memory programming firmware

In case a CRP mode is enabled and access to the chip is allowed via the ISP, an
unsupoorted or restricted ISP command will be terminated with return code
CODE_READ_PROTECTION_ENABLED.

9.

ISP commands

The following commands are accepted by the ISP command handler. Detailed status
codes are supported for each command. The command handler sends the return code
INVALID_COMMAND when an undefined command is received. Commands and return
codes are in ASCII format.

CMD_SUCCESS is sent by ISP command handler only when received ISP command has
been completely executed and the new ISP command can be given by the host.
Exceptions from this rule are "Set Baud Rate", "Write to RAM", "Read Memory", and "Go"
commands.

Table 602. Code Read Protection hardware/software interaction

CRP option

User Code
Valid

P2.10 pin at
reset

JTAG enabled LPC2400

enters ISP
mode

partial Flash
Update in ISP
mode

No

No

X

Yes

Yes

Yes

No

Yes

High

Yes

No

NA

No

Yes

Low

Yes

Yes

Yes

CRP1

Yes

High

No

No

NA

CRP1

Yes

Low

No

Yes

Yes

CRP2

Yes

High

No

No

NA

CRP2

Yes

Low

No

Yes

No

CRP3

Yes

x

No

No

NA

CRP1

No

x

No

Yes

Yes

CRP2

No

x

No

Yes

No

CRP3

No

x

No

Yes

No

Table 603. ISP command summary

ISP Command

Usage

Described in

Unlock

U <Unlock Code>

Table 30–604

Set Baud Rate

B <Baud Rate> <stop bit>

Table 30–605

Echo

A <setting>

Table 30–607

Write to RAM

W <start address> <number of bytes>

Table 30–608

Read Memory

R <address> <number of bytes>

Table 30–609

Prepare sector(s) for
write operation

P <start sector number> <end sector number>

Table 30–610

Copy RAM to Flash

C <Flash address> <RAM address> <number of bytes>

Table 30–611

Go

G <address> <Mode>

Table 30–612

Erase sector(s)

E <start sector number> <end sector number>

Table 30–613

Blank check sector(s)

I <start sector number> <end sector number>

Table 30–614

Advertising