30.01.2015 Views

UM10211 - Standard ICs

UM10211 - Standard ICs

UM10211 - Standard ICs

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>UM10211</strong><br />

Chapter 27: Flash memory programming firmware<br />

Rev. 01 — 27 March 2007<br />

User manual<br />

1. Flash boot loader<br />

2. Features<br />

3. Applications<br />

4. Description<br />

The boot loader controls initial operation after reset, and also provides the means to<br />

accomplish programming of the flash memory. This could be initial programming of a<br />

blank device, erasure and re-programming of a previously programmed device, or<br />

programming of the flash memory by the application program in a running system.<br />

• In-System Programming: In-System programming (ISP) is programming or<br />

reprogramming the on-chip flash memory, using the boot loader software and UART0<br />

serial port. This can be done when the part resides in the end-user board.<br />

• In Application Programming: In-Application (IAP) programming is performing erase<br />

and write operation on the on-chip flash memory, as directed by the end-user<br />

application code.<br />

The flash boot loader provides both In-System and In-Application programming interfaces<br />

for programming the on-chip flash memory.<br />

The flash boot loader code is executed every time the part is powered on or reset. The<br />

loader can execute the ISP command handler or the user application code. A LOW level<br />

after reset at the P2.10 pin is considered as an external hardware request to start the ISP<br />

command handler. Assuming that power supply pins are on their nominal levels when the<br />

rising edge on RESET pin is generated, it may take up to 3 ms before P2.10 is sampled<br />

and the decision on whether to continue with user code or ISP handler is made. If P2.10 is<br />

sampled low and the watchdog overflow flag is set, the external hardware request to start<br />

the ISP command handler is ignored. If there is no request for the ISP command handler<br />

execution (P2.10 is sampled HIGH after reset), a search is made for a valid user program.<br />

If a valid user program is found then the execution control is transferred to it. If a valid user<br />

program is not found, the auto-baud routine is invoked.<br />

Pin P2.10 that is used as hardware request for ISP requires special attention. Since P2.10<br />

is in high impedance mode after reset, it is important that the user provides external<br />

hardware (a pull-up resistor or other device) to put the pin in a defined state. Otherwise<br />

unintended entry into ISP mode may occur.<br />

When ISP mode is entered after a power on reset, the IRC and PLL are used to generate<br />

CCLK of 14.748 MHz. This may not be the case when ISP is invoked by the user<br />

application (see Section 27–9.8 “Reinvoke ISP” on page 532).<br />

<strong>UM10211</strong>_1<br />

© NXP B.V. 2007. All rights reserved.<br />

User manual Rev. 01 — 27 March 2007 513 of 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!