Epson S5U1C17001C Manual page 694

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

(4) Connect ICDmini to the PC and the target and set to ICD mode.
After connecting ICDmini to the PC and the target, turn off DIP switches 2 and 3 on the side of ICDmini.
(5) Start the debugger and connect the debugger and the target.
Follow the procedures described in the S5U1C17001H User Manual (Refer to Section 5.2) to start ICDmini.
Start the gdb debugger from the command prompt (or GNU17 IDE).
(6) Connect the target and the debugger.
(gdb) target icd usb
• If the connection fails, repeat steps (5) and (6).
(7) Download the program for erasing and writing the target flash memory to ICDmini using the c17 fwlp
command.
Example: When the target model is c17701 and the ICDmini firmware version is Ver. 1.1:
(gdb) c17 fwlp fwr17701v11.saf 0x48 0x80
• Specify the file name selected in step (3) for the first parameter (erasing and writing program file name).
• Refer to readme_e.txt in NU17\mcu_model\17xxx\fls for more information on the second and third
parameters (erasing and writing routine addresses). Note that the setting value differs depending on the model
and firmware version.
(8) Download the ROM data to be written to the target flash memory to ICDmini using the c17 fwld (or c17 fwdc)
command.
Example: When the target model is c17701 and to erase all blocks and write sample.saf:
(gdb) c17 fwld sample.saf 0 0 0x8000
• Set the range to be erased with the second and third parameters (start and end blocks for erasing) and the
fourth parameter (flash memory start address) at the same time.
(9) Quit the debugger.
(gdb) quit
• The debugger will not be used in the subsequent steps.
(10)Set ICDmini to FLASH WRITER mode and set the processing to be performed.
Turn on DIP switches 2 and 3 on the side of ICDmini and restart ICDmini.
• Turning on either DIP switch 2 or 3 enables FLASH WRITER mode.
(11)Press RESET/START button in the upper part of ICDmini to start the flash writer.
If the LED for FLASH WRITER mode does not turn on before the flash writer starts or a flashing error occurs
immediately after entering this mode, restart ICDmini as for ICD mode.
• Refer to Section 6.2 of the S5U1C17001H User Manual for LED specifications and for other information
when using the stand-alone flash writer.
When the LED corresponding to the selected ICDmini processing turns green, the processing is completed.
To write the same data to a different target, repeat the steps from step (10).
・ Refer to Section 10.7, "Command Reference" for detailed information on debugger commands.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
EPSOn
11 OTHEr TOOlS
11
Tools
11-67

Advertisement

Table of Contents
loading

Table of Contents