6. Flash
Programmer
Mode
26
Seiko Epson Corporation
S5U1C17001H2 User Manual
(ICDmini Ver2.0)
Example: With S1C processor that supports sector erasing
To erase sectors 0 to 31 and load user_program.saf from Flash 0x8000 address
Specify sector 1 when specifying erase start/end blocks.
(gdb) c17 fwld user_program.saf 1 32 0x8000
The procedure for specifying the sectors for erasing will differ depending on the S1C17 model. For details of
the particular method, refer to the “ReadMe” shown below created when the GNU17 was installed.
User folder
\EPSON\GNU17\mcu_model\model\fls\
When S1C33 is selected
Example: To erase all sectors and load user_program.saf from Flash 0xc00000 address
(gdb) c33 fwld user_program.saf 0 0 0xc00000
Example: To erase sectors 0 to 141 and load user_program.saf from Flash 0xc00000 address
Specify the corresponding sector number when specifying erase start/end blocks.
(gdb) c33 fwld user_program.saf 0 141 0xc00000
For more details of fwld commands, refer to the documentation included with the FLS program.
6.2
Operations in Flash Programmer Mode
The following describes how to start up the S5U1C17001H and procedure for Flash programming.
(1) Set SW2 and SW3 according to the Flash operation to be performed.
One of the three sequences, erasing and programming, verification only, or erasing, programming, and
verification, can be selected.
Table 6.2.1 DIP Switch Settings in Flash Programmer Mode
SW2 SW3
Setting
OPEN (
) OPEN
(
)
ICD mode (default)
ON (
) OPEN
(
)
Flash programmer mode Erase
program
OPEN (
) ON
(
)
Flash programmer mode Verify
ON (
) ON
(
)
Flash programmer mode Erase
program
verify
(2) If Flash programming voltage output is required, set SW8 to “ON.”
When S1C17 processor is selected
The Flash programming voltage set by the “fwlp” command is output only for erasing or programming
from the FLASH VCC OUT pin.
When S1C33 processor is selected
A voltage of 7 V is output continuously from the FLASH VCC OUT pin.
Note: Refer to the individual technical manual for each model to determine whether the Flash
programming voltage supply is required. Do not use this voltage unless specifically mentioned in
the technical manual. Otherwise, there is a risk of damaging the S1C processor due to overvoltage.
(3) If the DIP switches have been altered while power is supplied via the USB cable, press the
RESET/START switch to switch the S5U1C17001H to Flash programmer mode.
If you change the DIP switch settings with the power off, connect the USB cable of the ICDmini to the
USB port of the host computer or to a 5 V AC USB adapter (see “3.2 Right Side Panel”) to supply power.
In the Flash programmer mode, only power is required from the USB cable and there is no
communication with the host computer.