EasyManua.ls Logo

NXP Semiconductors LPC1768 - Page 836

NXP Semiconductors LPC1768
841 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 20 December 2013 836 of 841
continued >>
NXP Semiconductors
UM10360
Chapter 35: Supplementary information
31.6.2.1 Peripheral-to-memory or memory-to-peripheral
DMA flow . . . . . . . . . . . . . . . . . . . . . . . . . . . 610
31.6.2.2 Peripheral-to-peripheral DMA flow . . . . . . . . 610
31.6.2.3 Memory-to-memory DMA flow . . . . . . . . . . . 611
31.6.3 Interrupt requests . . . . . . . . . . . . . . . . . . . . . 611
31.6.3.1 Hardware interrupt sequence flow . . . . . . . . 612
31.6.4 Address generation . . . . . . . . . . . . . . . . . . . 612
31.6.4.1 Word-aligned transfers across a boundary . 612
31.6.5 Scatter/gather . . . . . . . . . . . . . . . . . . . . . . . 612
31.6.5.1 Linked list items . . . . . . . . . . . . . . . . . . . . . . 613
31.6.5.1.1 Programming the DMA controller for
scatter/gather DMA . . . . . . . . . . . . . . . . . . . 613
31.6.5.1.2 Example of scatter/gather DMA. . . . . . . . . . 613
Chapter 32: LPC176x/5x Flash memory interface and programming
32.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 616
32.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616
32.3 Description. . . . . . . . . . . . . . . . . . . . . . . . . . . 616
32.3.1 Memory map after any reset. . . . . . . . . . . . . 617
32.3.1.1 Criterion for Valid User Code . . . . . . . . . . . . 617
32.3.2 Communication protocol. . . . . . . . . . . . . . . . 618
32.3.2.1 ISP command format . . . . . . . . . . . . . . . . . . 618
32.3.2.2 ISP response format. . . . . . . . . . . . . . . . . . . 618
32.3.2.3 ISP data format. . . . . . . . . . . . . . . . . . . . . . . 618
32.3.2.4 ISP flow control. . . . . . . . . . . . . . . . . . . . . . . 619
32.3.2.5 ISP command abort . . . . . . . . . . . . . . . . . . . 619
32.3.2.6 Interrupts during IAP. . . . . . . . . . . . . . . . . . . 619
32.3.2.7 RAM used by ISP command handler . . . . . . 619
32.3.2.8 RAM used by IAP command handler . . . . . . 619
32.4 Boot process flowchart. . . . . . . . . . . . . . . . . 620
32.5 Sector numbers . . . . . . . . . . . . . . . . . . . . . . . 621
32.6 Code Read Protection (CRP) . . . . . . . . . . . . 622
32.7 ISP commands. . . . . . . . . . . . . . . . . . . . . . . . 624
32.7.1 Unlock <Unlock code> . . . . . . . . . . . . . . . . . 624
32.7.2 Set Baud Rate <Baud Rate> <stop bit> . . . . 625
32.7.3 Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 625
32.7.4 Write to RAM <start address> <number of
bytes>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625
32.7.5 Read Memory <address> <no. of bytes> . . . 626
32.7.6 Prepare sector(s) for write operation <start sector
number> <end sector number> . . . . . . . . . . 627
32.7.7 Copy RAM to Flash <flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 627
32.7.8 Go <address> <mode>. . . . . . . . . . . . . . . . . 628
32.7.9 Erase sector(s) <start sector number> <end
sector number>. . . . . . . . . . . . . . . . . . . . . . . 628
32.7.10 Blank check sector(s) <sector number> <end
sector number>. . . . . . . . . . . . . . . . . . . . . . . 629
32.7.11 Read Part Identification number . . . . . . . . . 629
32.7.12 Read Boot Code version number. . . . . . . . . 630
32.7.13 Read device serial number . . . . . . . . . . . . . 630
32.7.14 Compare <address1> <address2> <no of
bytes> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630
32.7.15 ISP Return Codes . . . . . . . . . . . . . . . . . . . . 631
32.8 IAP commands . . . . . . . . . . . . . . . . . . . . . . . 632
32.8.1 Prepare sector(s) for write operation . . . . . . 634
32.8.2 Copy RAM to Flash . . . . . . . . . . . . . . . . . . . 635
32.8.3 Erase Sector(s) . . . . . . . . . . . . . . . . . . . . . . 635
32.8.4 Blank check sector(s). . . . . . . . . . . . . . . . . . 636
32.8.5 Read part identification number . . . . . . . . . . 636
32.8.6 Read Boot Code version number. . . . . . . . . 636
32.8.7 Read device serial number . . . . . . . . . . . . . 637
32.8.8 Compare <address1> <address2> <no of
bytes> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
32.8.9 Re-invoke ISP . . . . . . . . . . . . . . . . . . . . . . . 637
32.8.10 IAP Status Codes. . . . . . . . . . . . . . . . . . . . . 638
32.9 JTAG flash programming interface . . . . . . . 638
32.10 Flash signature generation . . . . . . . . . . . . . 639
32.10.1 Register description for signature generation 639
32.10.1.1 Signature generation address and control
registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640
32.10.1.2 Signature generation result registers. . . . . . 640
32.10.1.3 Flash Module Status register (FMSTAT -
0x0x4008 4FE0). . . . . . . . . . . . . . . . . . . . . . 641
32.10.1.4 Flash Module Status Clear register (FMSTATCLR
- 0x0x4008 4FE8) . . . . . . . . . . . . . . . . . . . . 641
32.10.2 Algorithm and procedure for signature
generation . . . . . . . . . . . . . . . . . . . . . . . . . . 642
Signature generation . . . . . . . . . . . . . . . . . . . 642
Content verification . . . . . . . . . . . . . . . . . . . . 642
Chapter 33: LPC176x/5x JTAG, Serial Wire Debug (SWD), and Trace
33.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643
33.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 643
33.3 Description. . . . . . . . . . . . . . . . . . . . . . . . . . . 643
33.4 Pin Description . . . . . . . . . . . . . . . . . . . . . . . 643
33.5 Debug Notes . . . . . . . . . . . . . . . . . . . . . . . . . 644
33.6 Debug memory re-mapping . . . . . . . . . . . . . 645
33.6.1 Memory Mapping Control register (MEMMAP -
0x400F C040) . . . . . . . . . . . . . . . . . . . . . . . 645

Table of Contents

Other manuals for NXP Semiconductors LPC1768

Related product manuals