6. Flash
Programmer
Mode
S5U1C17001H2 User Manual
Seiko Epson Corporation
25
(ICDmini Ver2.0) (Rev2.0)
6.1.1.2
Command setting example
When S1C17 processor is selected
Example: Save FLS program fwr17701v11.saf to S5U1C17001H internal memory.
With erasing routine address 0x48 and writing routine address 0x80
(gdb) c17 fwlp. fwr17701v11.saf 0x48 0x80
Example: When flash programming voltage and communication packet size setting are required
Set the communication packet size to 128 bytes, the flash erase voltage to 7.5 V, and the write
voltage to 7.0 V, and save the FLS program fwr17651v11.saf to the S5U1C17001H internal
memory.
For erasing routine address 0x9c and writing routine address 0x68
(gdb)c17 fwlp fwr17651v11.saf 0x9c 0x68 “-v7.5-7.0 –s128”
Example: To execute write-back function
Set the write-back routine address to 0x10 and the write-back FLS program size to 1312 bytes, and
save the dedicated write-back function execution FLS program fwr17f57_writeback.saf to the
S5U1C17001H internal memory.
For erasing routine address 0x9c and writing routine address 0x68
(gdb)c17 fwlp fwr17f57_writeback.saf 0x9c 0x68 “-v7.5-7.0 –s128 –b0x10-1312”
For more details of FLS programs such as erasing and writing routine addresses, refer to the “ReadMe” shown
below created when the GNU17 was installed.
User folder\
EPSON\GNU17\mcu_model\model\fls
When S1C33 processor is selected
Example: Save FLS program fls_program.saf to S5U1C17001H internal memory.
With erasing routine address 0x14c and writing routine address 0x180
(gdb) c33 fwlp fls_program.saf 0x14c 0x180
For more details of FLS programs such as erasing and writing routine addresses, refer to the documentation
included with the FLS program.
6.1.2 fwld
Command
The debugger (gdb) “fwld” command is used to save data to be written to the target flash memory in the
S5U1C17001H internal memory.
6.1.2.1 Command
format
(gdb) S1c fwld Filename EraseStartBlock EraseEndBlock EraseParam [Comment]
S1c: Target processor command (“c17” or “c33”)
Filename: Data file name (Motorola S3 format)
EraseStartBlock: Erase start block
EraseEndBlock: Erase end block
EraseParam: Flash memory start address
Comment:
Data/address information identifier comment (can be omitted)
Enclose in double quotes if it includes spaces.
6.1.2.2
Command setting example
When S1C17 is selected
Example: With S1C processor that supports chip erasing
To erase all sectors and load user_program.saf from Flash 0x8000 address
(gdb) c17 fwld user_ program.saf 0 0 0x8000