23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

(Step-5)<br />

Under development<br />

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

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

Next, the programming routine (a) downloads new application program code from the host controller<br />

and programs it into the erased flash block. Once programming is complete, protection of that flash<br />

block is turned on. It is not allowed to move program control from the programming routine (a) back to<br />

the boot ROM.<br />

In the example below, new program code comes from the same host controller via the same SIO0<br />

channel as for the programming routine. However, once the programming routine has begun to<br />

execute, it is free to change the transfer path and the source of the transfer. Create board hardware<br />

and a programming routine to suit your particular needs.<br />

(M330)<br />

Boot ROM SIO2<br />

Flash memory<br />

New application<br />

program code<br />

(Step-6)<br />

When programming of the flash memory is complete, power off the board and disconnect the cable<br />

leading from the host to the target board. Turn on the power again so that the <strong>TMPM330</strong> re-boots in<br />

Single-Chip (Normal) mode to execute the new program.<br />

(M330)<br />

(Host)<br />

Boot ROM SIO2<br />

Flash memory<br />

New application<br />

program code<br />

(I/O)<br />

(Host)<br />

(a)Programming routine<br />

RAM<br />

RAM<br />

New application<br />

program code<br />

(a) Programming routine<br />

0 → 1 RESET<br />

Set to Single-Chip<br />

Normal) mode<br />

(BOOT=1)<br />

Flash Memory Operation

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

Saved successfully!

Ooh no, something went wrong!