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.
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...