
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
806 of 808
continued >>
NXP Semiconductors
UM10360
Chapter 35: LPC17xx Supplementary information
RAM used by ISP command handler . . . . . . 591
RAM used by IAP command handler . . . . . . 591
Boot process flowchart . . . . . . . . . . . . . . . . . 592
Sector numbers . . . . . . . . . . . . . . . . . . . . . . . 593
Code Read Protection (CRP) . . . . . . . . . . . . 594
ISP commands . . . . . . . . . . . . . . . . . . . . . . . . 595
Unlock <Unlock code> . . . . . . . . . . . . . . . . . 596
Set Baud Rate <Baud Rate> <stop bit> . . . . 596
Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 597
Write to RAM <start address> <number of bytes>
597
Read Memory <address> <no. of bytes> . . . 597
Copy RAM to Flash <flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 599
Go <address> <mode>. . . . . . . . . . . . . . . . . 599
Read Part Identification number . . . . . . . . . 600
Read Boot Code version number. . . . . . . . . 601
Read device serial number . . . . . . . . . . . . . 601
Compare <address1> <address2> <no of bytes>
602
ISP Return Codes . . . . . . . . . . . . . . . . . . . . 602
IAP commands . . . . . . . . . . . . . . . . . . . . . . . 603
Prepare sector(s) for write operation . . . . . . 605
Copy RAM to Flash . . . . . . . . . . . . . . . . . . . 606
Erase Sector(s) . . . . . . . . . . . . . . . . . . . . . . 606
Blank check sector(s). . . . . . . . . . . . . . . . . . 607
Read part identification number . . . . . . . . . . 607
Read Boot Code version number. . . . . . . . . 607
Read device serial number . . . . . . . . . . . . . 608
Compare <address1> <address2> <no of bytes>
608
Re-invoke ISP . . . . . . . . . . . . . . . . . . . . . . . 608
IAP Status Codes . . . . . . . . . . . . . . . . . . . . . 609
JTAG flash programming interface . . . . . . . 609
Chapter 33: LPC17xx JTAG, Serial Wire Debug, and Trace
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
Pin Description . . . . . . . . . . . . . . . . . . . . . . . 610
Debug Notes . . . . . . . . . . . . . . . . . . . . . . . . . . 611
Chapter 34: Appendix: Cortex-M3 User Guide
ARM Cortex-M3 User Guide: Introduction. . 613
About the processor and core peripherals . . 613
System level interface . . . . . . . . . . . . . . . . . 614
Integrated configurable debug . . . . . . . . . . . 614
Cortex-M3 core peripherals . . . . . . . . . . . . . 615
ARM Cortex-M3 User Guide: Instruction Set 616
Instruction set summary . . . . . . . . . . . . . . . . 616
Intrinsic functions . . . . . . . . . . . . . . . . . . . . . 619
About the instruction descriptions. . . . . . . . . 619
Operands . . . . . . . . . . . . . . . . . . . . . . . . . . . 620
Restrictions when using PC or SP . . . . . . . . 620
Flexible second operand . . . . . . . . . . . . . . . 620
Shift Operations . . . . . . . . . . . . . . . . . . . . . . 621
Address alignment . . . . . . . . . . . . . . . . . . . . 624
PC-relative expressions . . . . . . . . . . . . . . . . 625
Conditional execution . . . . . . . . . . . . . . . . . . 625
Instruction width selection. . . . . . . . . . . . . . . 627
Memory access instructions . . . . . . . . . . . . . 629
ADR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630
LDR and STR, immediate offset . . . . . . . . . 631
LDR and STR, register offset . . . . . . . . . . . . 634
LDR and STR, unprivileged . . . . . . . . . . . . . 636
LDR, PC-relative . . . . . . . . . . . . . . . . . . . . . 638
LDM and STM . . . . . . . . . . . . . . . . . . . . . . . 640
PUSH and POP . . . . . . . . . . . . . . . . . . . . . . 642
LDREX and STREX . . . . . . . . . . . . . . . . . . . 643
CLREX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645
General data processing instructions. . . . . . 646
ADD, ADC, SUB, SBC, and RSB. . . . . . . . . 647
AND, ORR, EOR, BIC, and ORN. . . . . . . . . 650
ASR, LSL, LSR, ROR, and RRX . . . . . . . . . 652
CLZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
CMP and CMN. . . . . . . . . . . . . . . . . . . . . . . 655
MOV and MVN. . . . . . . . . . . . . . . . . . . . . . . 656
MOVT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658
REV, REV16, REVSH, and RBIT . . . . . . . . . 659
TST and TEQ. . . . . . . . . . . . . . . . . . . . . . . . 660