S5U1C17001C ManUal
EPSOn
11-67
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
11 OTHEr TOOlS
11
Tools
(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.
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...