11-66
EPSOn
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
11 OTHEr TOOlS
11.12 Stand-alone flash Writer
11.12.1 Overview
The stand-alone flash writer writes data or addresses to the ICDmini flash memory via the debugger in advance.
The ICDmini FLASH WRITER mode makes it easy to write to the target without the debugger.
Debugger commands are used to write data and addresses to the ICDmini flash memory. To select FLASH
WRITER mode, set the DIP switch on the side of the ICDmini main body.
The ICDmini stand-alone flash writer implements three types of processing: ERASE, WRITE, and VERIFY. Select
the desired processing by setting the DIP switch on the side of the ICDmini main body.
After completing these settings, press RESET/START button in the upper part of ICDmini to begin the selected
processing of the flash writer. The LED on ICDmini indicates the execution status of the selected processing.
To write the same data once again, simply press RESET/START button in the upper part of ICDmini to execute the
flash writer. You do not need to repeat the initial settings.
11.12.2 Procedures for Stand-alone flash Writer
To execute a stand-alone flash writer, you will need the following two files.
・
The ROM file to be written to target flash memory
・
The program file for erasing and writing target flash memory
First, generate the ROM file (in Motorola S3 format) to be written to target flash memory. Generate the file using
objcopy.exe and moto2ff.exe (included in the S1C17 Family C compiler package).
(1) Convert the generated elf file into Motorola S3 format.
Example: To convert sample.elf into sample.sa in Motorola S3 format:
>
objcopy -I elf32-little -O srec -R .gbss --srec-forceS3 sample.elf sample.sa
•
Refer to Section 11.4, "objcopy.exe" for detailed information on parameters.
(2) Fill the unused area of the generated sa file with 0xff data.
Example: To fill the unused area of the generated sample.sa with 0xff:
(When the data start address is 8000h and target block size is 1000h)
> moto2ff 0x8000 1000 sample.sa
•
The extension of the output file is saf. This does not need to be changed.
Next, prepare the program file for erasing and writing the target flash memory. This file is placed under "GNU17\
mcu_model\17xxx\fls." ("xxx" in "17xxx" indicates the model name.) Note that the folder differs from model to
model.
(3) Prepare the erasing and writing program file appropriate for the target model and the ICDmini firmware
version.
Example: When the target model is c17701 and the ICDmini firmware version is Ver1.1:
Use GNU17\mcu_model\17701\fls\fwr17701v11.saf.
•
Use fls17701.elf in the same folder when you write the flash memory using the debugger.
•
Use fwr17701v10.saf in the same folder when the ICDmini firmware version is Ver. 1.0. Since the speed of
the flash writer is improved in Ver. 1.1, we recommend updating the firmware if you are currently using Ver.
1.0.
When the required files above are ready, download the two files to ICDmini flash memory.
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 ...