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.

17.2.3 Single Boot Mode<br />

Under development<br />

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

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

In Single Boot mode, the flash memory can be re-programmed by using a program contained in<br />

the <strong>TMPM330</strong> on-chip boot ROM. This boot ROM is a masked ROM. When Single Boot mode is<br />

selected upon reset, the boot ROM is mapped to the address region including the interrupt<br />

vector table while the flash memory is mapped to an address region different from it.<br />

Single Boot mode allows for serial programming of the flash memory. Channel 0 of the SIO<br />

(SIO0) of the <strong>TMPM330</strong> is connected to an external host controller. Via this serial link, a<br />

programming routine is downloaded from the host controller to the <strong>TMPM330</strong> on-chip RAM.<br />

Then, the flash memory is re-programmed by executing the programming routine. The host<br />

sends out both commands and programming data to re-program the flash memory.<br />

Communications between the SIO0 and the host must follow the protocol described later. To<br />

secure the contents of the flash memory, the validity of the application’s password is checked<br />

before a programming routine is downloaded into the on-chip RAM. If password matching fails,<br />

the transfer of a programming routine itself is aborted.<br />

As in the case of User Boot mode, all interrupts including the non-maskable interrupt (NMI) must<br />

be disabled in Single Boot mode while the flash memory is being erased or programmed. In<br />

Single Boot mode, the boot-ROM programs are executed in Normal mode.<br />

Once re-programming is complete, it is recommended to protect relevant flash blocks from<br />

accidental corruption during subsequent Single-Chip (Normal mode) operations.<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!