AN10337 Adding ISP firmware to an LPC900 software project

Similar documents
AN10428 UART-SPI Gateway for Philips SPI slave bridges

AN Reduce CPU overhead with Intelligence Interrupt Arbitration (I2A) feature. Document information

AN10258 How to use the LPC900 In-circuit programming (ICP)

VHF variable capacitance double diode. Electronic tuning in FM radio applications.

Low forward voltage Ultra small SMD plastic package Low capacitance Flat leads: excellent coplanarity and improved thermal behavior.

PRTR5V0U2X. 1. Product profile. Ultra low capacitance double rail-to-rail ESD protection diode in SOT143B. 1.1 General description. 1.

PESDxU1UT series. 1. Product profile. Ultra low capacitance ESD protection diode in SOT23 package. 1.1 General description. 1.

AN10254 Philips ARM LPC microcontroller family

AN466 In-system programming of the P87LPC76x family of microcontrollers

AN1204 Configuration of CANopen devices via LSS

AN466 In-system programming of the P87LPC76x family of microcontrollers

AN Philips LPC2000 CAN driver. Document information

INTEGRATED CIRCUITS ABSTRACT

DATA SHEET. HT2DC20S20 HITAG 2 stick transponder INTEGRATED CIRCUITS

INTEGRATED CIRCUITS ABSTRACT

AN LPC1700 secondary USB bootloader. Document information. LPC1700, Secondary USB Bootloader, ISP, IAP

MF RD700. PEGODA Contactless Smart Card Reader READER COMPONENTS. Preliminary Product Specification Revision 2.0 PUBLIC. July2002

AN1203 Automatic start of CANopen slave devices

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

AN Automatic RS-485 address detection. Document information

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

& I CODE CL RD701. PEGODA Contactless Smart Card Reader READER COMPONENTS. Product Specification Revision 3.1 PUBLIC.

AN Interfacing Philips Bridge IC with Philips microcontroller. Document information

INTEGRATED CIRCUITS MF RC531. ISO Reader IC. Short Form Specification Revision 3.2. April Philips Semiconductors

Contactless Single-trip Ticket ICs MF0 IC U10 01 MF0 IC U11 01 Specification bumped sawn wafer on UV-tape

USB to Serial Cable Hardware and USB Driver Installation instructions

mifare DESFire Contactless Multi-Application IC with DES and 3DES Security MF3 IC D40 INTEGRATED CIRCUITS Objective Short Form Specification

UM EEPROM Management of PN746X and PN736X. User manual COMPANY PUBLIC. Rev February Document information

User Manual: LPC1830-Xplorer LPC1830-Xplorer

IMPORTANT NOTICE. use

PTN3310/PTN3311 High-speed serial logic translators

8051 General Purpose Board

Versa-Kit-30xx Getting Started Guide Rev 1.0

THIS SPEC IS OBSOLETE

MOSAIC CONTROL DISPLAYS

CMSIS DAP Setup. Document Version History Document Version ngxtechnologies.com 2

PCA bit multiplexed/1-bit latched 5-bit I 2 C EEPROM DIP switch

Use the Status Register when the firmware needs to query the state of internal digital signals.

UM QN908x Quick Start. Document information. QN908x, Quick Start, Development Kit, QN9080 DK, QN9080 Development Kit

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Use the Status Register when the firmware needs to query the state of internal digital signals.

GENERAL DESCRIPTION FEATURES

Writing to Internal Flash in PSoC 3 and PSoC 5

OM13071 LPCXpresso824-MAX Development board

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

MF1 MOA4 S50. Contactless Chip Card Module Specification. This document gives specifications for the product MF1 MOA4 S50.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

AN10184 Connecting a keyboard to the Philips LPC9xx microcontroller

Installation Manual Installation Manual for the MicroWave Office design kit version v1.0

Cypress HX2VL Configuration Utility Blaster User Guide

SEMICONDUCTOR PRODUCT INFORMATION

Installation Manual Installation Manual for the Ansoft Designer v5.0 design kit version v1.0

AN10955 Full-duplex software UART for LPC111x and LPC13xx

Cypress HX2VL Configuration Utility Blaster User Guide

Firmware Upgrading Radiocrafts modules

GPIF II Designer - Quick Start Guide

PCA bit multiplexed/1-bit latched 6-bit I 2 C EEPROM DIP switch

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Firmware Flash Upgrade Wizard. User Manual

Kinetis Flash Tool User's Guide

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

MQX RTOS Release Notes for Kinetis SDK v1.2.0 for KL33Z64 for FRDM-KL43Z Freescale Freedom Development Platform

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

550 MHz, 34 db gain push-pull amplifier

MQX RTOS Release Notes for Kinetis SDK FRDM- KV10Z Freescale Freedom Development Platform

AVR42789: Writing to Flash on the New tinyavr Platform Using Assembly

AN3354 Application note

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

e-link Emulation/Programming Adapter Cable (ESTD-206) User s Guide

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Reviving Bit-slice Technology in a Programmable Fashion

MF1ICS General description. Functional specification. 1.1 Key applications. 1.2 Anticollision. Energy. MIFARE card contacts La, Lb.

IP4220CZ6 Dual USB 2.0 Integrated ESD protection to IEC level 4

DATA SHEET. BGA2031/1 MMIC variable gain amplifier DISCRETE SEMICONDUCTORS. Product specification Supersedes data of 2000 Mar 02.

This optional pin is present if the Mode parameter is set to SyncMode or PulseMode. Otherwise, the clock input does not show.

THIS SPEC IS OBSOLETE

ASCII Text Control (ATC) Protocol for Remote Control of Equinox Programmers

ST33F1M. Smartcard MCU with 32-bit ARM SecurCore SC300 CPU and 1.25 Mbytes high-density Flash memory. Features. Hardware features.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Xitanium LED drivers spot and downlight fixed output LED driver 30W 400mA 69V 230V

AN10917 Memory to DAC data transfers using the LPC1700's DMA

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

Boot Loader for the Z51F6412 MCU

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

Programmer User Guide

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

LED driver 36W 0.3-1A 48V 230V

AN3965 Application note

LED driver 40W 1050mA 40V s 230V

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

AVR Development Board

EFM8 Universal Bee Family EFM8UB2 Errata

January 2014 Rev FEATURES

In data sheets and application notes which still contain NXP or Philips Semiconductors references, use the references to Nexperia, as shown below.

STM3210B-SK/KEIL STR91X-SK/KEI, STR7-SK/KEIL

SIGFOX-CCT (Configuration and Communication Tool) User Manual

Kinetis Flash Tool User's Guide

For one or more fully configured, functional example projects that use this user module go to

Transcription:

Rev. 01 13 December 2004 Application note Document information Info Keywords Abstract Content LPC900, ISP This application note describes how to add In-System Programming (ISP) firmware into a Keil µvision 3 software project.

Revision history Rev Date Description 01 20041213 Initial version Application note Rev. 01 13 December 2004 2 of 7

1. Introduction The P89LPC900 family of microcontrollers has In System Programming (ISP) capability on some of its family members, which allows the microcontroller to be programmed when it is soldered on the printed circuit board. ISP code is programmed into the microcontroller as factory default. The ISP code is programmed in the upper half of the highest sector on the LPC900 devices. This appnote will show how to add Philips ISP code to a software project to have it included in the code with the µvision 3 IDE from Keil. The ISP source code will be provided in assembly language with this Appnote and can be added to any code project in C or assembly. 2. Benefits of adding ISP in a project The benefits of adding the ISP code to the software project are: The global CRC and the sector CRCs of the device will match the hex file, and therefore the complete code can be verified with a parallel programmer including the ISP section of the Flash memory. If ISP gets erased by accident it can be reprogrammed with a parallel programmer. Another benefit is that the compiler will produce errors and/or warnings if there are any conflicts between the usercode and ISP code. Application note Rev. 01 13 December 2004 3 of 7

3. ISP version and sizes Currently there are four versions of ISP and four memory sizes. Make sure you use the correct version and code size of ISP with the following devices. When using an incorrect version the ISP will not function correctly. Table 1 shows the different part numbers with the ISP version number and memory size. Table 1: ISP files used by LPC900 parts Part number ISP version ISP sector location Memory size File name P89LPC920 Version 2 Upper half of sector 1 2 kb LPC_ISP_2K_V02.a51 P89LPC921 Version 2 Upper half of sector 1 4 kb LPC_ISP_4K_V02.a51 P89LPC922 Version 2 Upper half of sector 1 8 kb LPC_ISP_8K_V02.a51 P89LPC924 Version 4 Upper half of sector 1 4 kb LPC_ISP_4K_V04.a51 P89LPC925 Version 4 Upper half of sector 1 8 kb LPC_ISP_8K_V04.a51 P89LPC930 Version 2 Upper half of sector 1 4 kb LPC_ISP_4K_V02.a51 P89LPC931 Version 2 Upper half of sector 1 8 kb LPC_ISP_8K_V02.a51 P89LPC932 Version 1 Upper half of sector 1 8 kb LPC_ISP_8K_V01.a51 P89LPC932A1 Version 4 Upper half of sector 1 8 kb LPC_ISP_8K_V04.a51 P89LPC933 Version 4 Upper half of sector 1 4 kb LPC_ISP_4K_V04.a51 P89LPC934 Version 4 Upper half of sector 1 8 kb LPC_ISP_8K_V04.a51 P89LPC935 Version 4 Upper half of sector 7 8 kb LPC_ISP_8K_V04.a51 P89LPC936 Version 4 Upper quarter of sector 16 kb LPC_ISP_16K_V04.a51 7 P89LPC938 Version 4 Upper half of sector 7 8 kb LPC_ISP_8K_V04.a51 Table 2 shows the changes between the different ISP versions. Table 2: ISP changes ISP version ISP changes Version 1 Initial version Version 2 Added security key and updated bootvector Version 3 Added high speed communications Version 4 Added control of hardware security for UCFG1 The added security key is not visible when using ISP, but make sure when you are using IAP that the correct key is passed to IAP, please see the appropriate users manual for more details. High speed communications allow ISP to load a higher baudrate when using ISP making programming a lot shorter. Hardware security for UCFG1 allows the UCFG1 configuration byte to be protected by hardware and cannot be altered by ISP anymore when protected. Application note Rev. 01 13 December 2004 4 of 7

4. Adding ISP in an µvision3 project To add the ISP code you simply have to add the LPC_ISP_xK_Vxx.a51 file to the project file in the Keil µvision3 compiler. Table 1 shows the different file names for the ISP files. To do this first you can copy the ISP assembly file in the same folder as the project you are working on. In µvision3 you can right click the project and select add files. Then the next time the project is compiled the ISP file will be added into the hex file that can be programmed in the Flash memory of the microcontroller. Figure 1 shows how to add the ISP file to a µvision3 project. Fig 1. Adding the ISP A51 file to a µvision3 project Application note Rev. 01 13 December 2004 5 of 7

5. Disclaimers Life support These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips Semiconductors customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application. Right to make changes Philips Semiconductors reserves the right to make changes in the products - including circuits, standard cells, and/or software - described or contained herein in order to improve design and/or performance. When the product is in full production (status Production ), relevant changes will be communicated via a Customer Product/Process Change Notification (CPCN). Philips Semiconductors assumes no responsibility or liability for the use of any of these products, conveys no licence or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless otherwise specified. Application information Applications that are described herein for any of these products are for illustrative purposes only. Philips Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. Application note Rev. 01 13 December 2004 6 of 7

6. Contents 1 Introduction............................ 3 2 Benefits of adding ISP in a project.......... 3 3 ISP version and sizes.................... 4 4 Adding ISP in an µvision3 project.......... 5 5 Disclaimers............................. 6 Koninklijke Philips Electronics N.V. 2004 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: 13 December 2004 Document number: 9397 750 14286 Published in the U.S.A.