EasyManua.ls Logo

Philips LPC2101 - Page 279

Philips LPC2101
279 pages
Print Icon
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© Koninklijke Philips Electronics N.V. 2006
All rights are reserved. Reproduction in whole or in part is prohibited without the prior
written consent of the copyright owner. The information presented in this document does
not form part of any quotation or contract, is believed to be accurate and reliable and may
be changed without notice. No liability will be accepted by the publisher for any
consequence of its use. Publication thereof does not convey nor imply any license under
patent- or other industrial or intellectual property rights.
Date of release: 12 January 2006
Published in The Netherlands
Philips Semiconductors
UM10161
Volume 1 Chapter 22: Supplementary information
19.8 ISP commands . . . . . . . . . . . . . . . . . . . . . . . . 235
19.8.1 Unlock <unlock code> . . . . . . . . . . . . . . . . . 236
19.8.2 Set Baud Rate <baud rate> <stop bit> . . . . . 236
19.8.3 Echo <setting> . . . . . . . . . . . . . . . . . . . . . . . 237
19.8.4 Write to RAM <start address>
<number of bytes>. . . . . . . . . . . . . . . . . . . . 237
19.8.5 Read memory <address> <no. of bytes> . . . 237
19.8.6 Prepare sector(s) for write operation <start sector
number> <end sector number> . . . . . . . . . . 238
19.8.7 Copy RAM to flash <Flash address> <RAM
address> <no of bytes> . . . . . . . . . . . . . . . . 239
19.8.8 Go <address> <mode>. . . . . . . . . . . . . . . . . 239
19.8.9 Erase sector(s) <start sector number> <end
sector number>. . . . . . . . . . . . . . . . . . . . . . . 240
19.8.10 Blank check sector(s) <sector number> <end
sector number>. . . . . . . . . . . . . . . . . . . . . . . 240
19.8.11 Read part identification number . . . . . . . . . . 240
19.8.12 Read boot code version number . . . . . . . . . 241
19.8.13 Compare <address1> <address2>
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 241
19.8.14 ISP Return codes. . . . . . . . . . . . . . . . . . . . . 241
19.9 IAP commands . . . . . . . . . . . . . . . . . . . . . . . 242
19.9.1 Prepare sector(s) for write operation . . . . . . 244
19.9.2 Copy RAM to flash . . . . . . . . . . . . . . . . . . . . 245
19.9.3 Erase sector(s). . . . . . . . . . . . . . . . . . . . . . . 246
19.9.4 Blank check sector(s). . . . . . . . . . . . . . . . . . 246
19.9.5 Read part identification number. . . . . . . . . . 246
19.9.6 Read boot code version number . . . . . . . . . 247
19.9.7 Compare <address1> <address2>
<no of bytes> . . . . . . . . . . . . . . . . . . . . . . . . 247
19.9.8 Reinvoke ISP . . . . . . . . . . . . . . . . . . . . . . . . 247
19.9.9 IAP status codes . . . . . . . . . . . . . . . . . . . . . 248
19.10 JTAG flash programming interface . . . . . . . 248
Chapter 20: EmbeddedICE logic
20.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
20.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 249
20.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
20.4 Pin description. . . . . . . . . . . . . . . . . . . . . . . . 250
20.5 Reset state of multiplexed pins . . . . . . . . . . 250
20.6 Register description . . . . . . . . . . . . . . . . . . . 251
20.7 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 251
20.8 DEBUG mode. . . . . . . . . . . . . . . . . . . . . . . . . 252
20.8.1 Enable Debug mode . . . . . . . . . . . . . . . . . . 252
20.8.2 JTAG pin selection . . . . . . . . . . . . . . . . . . . . 253
Chapter 21: RealMonitor
21.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
21.2 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 254
21.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
21.3.1 RealMonitor components . . . . . . . . . . . . . . . 255
21.3.2 RMHost. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
21.3.3 RMTarget . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
21.3.4 How RealMonitor works . . . . . . . . . . . . . . . . 256
21.4 How to enable Realmonitor. . . . . . . . . . . . . . 257
21.4.1 Adding stacks . . . . . . . . . . . . . . . . . . . . . . . . 257
21.4.2 IRQ mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
21.4.3 Undef mode . . . . . . . . . . . . . . . . . . . . . . . . . 257
21.4.4 SVC mode . . . . . . . . . . . . . . . . . . . . . . . . . . 257
21.4.5 Prefetch Abort mode . . . . . . . . . . . . . . . . . . 258
21.4.6 Data Abort mode . . . . . . . . . . . . . . . . . . . . . 258
21.4.7 User/System mode . . . . . . . . . . . . . . . . . . . 258
21.4.8 FIQ mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
21.4.9 Handling exceptions. . . . . . . . . . . . . . . . . . . 258
21.4.10 RealMonitor exception handling. . . . . . . . . . 258
21.4.11 RMTarget initialization . . . . . . . . . . . . . . . . . 259
21.4.12 Code example . . . . . . . . . . . . . . . . . . . . . . . 259
21.5 RealMonitor build options . . . . . . . . . . . . . . 262
Chapter 22: Supplementary information
22.1 Abbreviations. . . . . . . . . . . . . . . . . . . . . . . . . 265
22.2 Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 266
22.3 Trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 266

Table of Contents

Related product manuals