22.3 How to Reprogram Flash using Single Boot Mode
The single boot mode utilizes a program contained in built-in BOOT ROM for reprogramming Flash memory.
In this mode, BOOT ROM is mapped to the area containing interrupt vector tables and Flash memory is mapped
to another address area other than BOOT ROM area.
In the boot mode, Flash memory is reprogrammed using serial command/data transfer. With connecting serial
channel (UART) of this device to the external host, a reprogramming program is copied from the external host to
the built-in RAM. A reprogramming routine in the RAM is executed to reprogram Flash memory. For details of com-
munication with host, follow the protocol described later.
Even in the single boot mode, do not generate interrupt/fault except reset to avoid abnormal program termination.
To secure the contents of Flash memory in the single chip mode (normal operation mode), once re-program-
ming is complete, it is recommended to protect relevant flash blocks against accidental erasure during subsequent sin-
gle chip operations.
22.3.1 Mode Setting
In order to execute the on-board programming, this device is booted-up in the single boot mode. Below set-
ting is for the single boot mode setting.
BOOT = 0
RESET = 0 → 1
While BOOT pin is set to the above in advance, set RESET pin to "0". Then release RESET pin, the de-
vice will boot-up in the single boot mode.
22.3.2 Interface Specification
This section describes UART communication format in the single boot mode. The serial operation sup-
ports UART (asynchronous communication) modes. In order to execute the on-board programming, set the com-
munication format of the programming controller as well.
・
UART communication
Communication channel: channel 0
Serial transfer mode: UART (asynchronous), half-duplex, LSB first
Data length: 8-bit
Parity bit: None
STOP bit: 1-bit
Baud rate: Arbitrary baud rate
The boot program operates the clock/mode control block setting as an initial condition. For detail of the in-
itial setting of the clock, refer to "Clock/Mode control".
As explained in the "22.3.5.1 Serial Operation Mode Determination", a baud rate is determined by the 16-
bit timer (TMRB). When determining the baud rate, communication is executed by 1/16 of a desired baud
rate. Therefore, the communication baud rate must be within the measurable range. The timer count clock op-
erates at ΦT1 (fc/2).
Table 22-10 shows the pins used in the boot program. Other than these pins are not used by the boot program.
TMPM3V6/M3V4
22.
Flash Memory Operation
22.3 How to Reprogram Flash using Single Boot Mode
Page 464
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......