Flash Programmer Mode; Preparing For Flash Programming - Epson S5U1C33001H1400 Manual

In-circuit debugger for s1c33 series microcomputers
Table of Contents

Advertisement

8. FLASH PROGRAMMER MODE

8. FLASH PROGRAMMER MODE
Flash programmer mode lets the S5U1C33001H function as a flash programmer. Described below are
preparations for starting up the S5U1C33001H in flash programmer mode and associated procedures.
8.1

Preparing for flash programming

The S5U1C33001H can write data, such as a program downloaded to internal flash memory, directly
to the flash memory of the target system.
As described below, start by downloading to the S5U1C33001H the data you want to write to the
target system's flash memory.
(1) Convert the file to be written to the target system flash memory to a Motorola S3 file.
Use objcopy.exe (included in the C Compiler Package for S1C33 Family) to perform this file
conversion.
Example:
1. Converting sample.elf to Motorola S3 file
>objcopy -O srec -R .gbss --srec-forceS3 sample.elf sample.sa
2. Fill the empty addresses in sample.sa with 0xff and produce sample.saf.
(When the fill start address is 0x600000 and the target block size is 0x1000)
>moto2ff 0x600000 1000 sample.sa
(2) Launch the S5U1C33001H in ICD mode.
(3) Launch the debugger.
1. Launching GDB
>gdb
2. Connecting the target system
(gdb) target icd6 usb
(4) Delete any unnecessary programs or data in the S5U1C33001H with the c33 fwe command.
(5) Use the c33 fwlp command to download the flash erase/write program to the S5U1C33001H.
Example: Downloading data erase/write program file, writer.sa
(when the erase routine start address is 0x14c and the write routine start address is 0x180)
(gdb) c33 fwlp writer.sa 0x14c 0x180
28
EPSON
S5U1C33001H1400 Manual (Rev. 0.20)
S1C33 Family In-Circuit Debugger

Advertisement

Table of Contents
loading

Table of Contents