23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Single Boot Mode<br />

(2-A) Using the Program in the On-Chip Boot ROM<br />

Under development<br />

<strong>TMPM330</strong> (rev 0.4)17-13<br />

<strong>TMPM330</strong><br />

(Step-1)<br />

The flash block containing the older version of the program code need not be erased before executing<br />

the programming routine. Since a programming routine and programming data are transferred via the<br />

SIO (SIO2), the SIO2 must be connected to a host controller. Prepare a programming routine (a) on the<br />

host controller.<br />

(Step-2)<br />

(M330)<br />

Boot ROM SIO2<br />

Flash memory<br />

Old application<br />

program code<br />

(or erased state)<br />

(Host)<br />

Cancel the reset of the <strong>TMPM330</strong> by setting the Single Boot mode pin to “0”, so that the CPU re-boots<br />

from the on-chip boot ROM. The 12-byte password transferred from the host controller via SIO2 is first<br />

compared to the contents of the special flash memory locations. (If the flash block has already been<br />

erased, the password is 0xFFFF).<br />

(M330)<br />

(I/O)<br />

(I/O)<br />

RAM<br />

(Host)<br />

Boot ROM SIO2<br />

Flash memory<br />

Old application<br />

program code<br />

(or erased state)<br />

RAM<br />

New application<br />

program code<br />

(a) Programming routine<br />

New application<br />

program code<br />

(a) Programming routine<br />

0 → 1 RESET<br />

0 BOOT<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!