s5u1c17001c Epson Electronics America, Inc., s5u1c17001c Datasheet - Page 448

no-image

s5u1c17001c

Manufacturer Part Number
s5u1c17001c
Description
Cmos 16-bit Application Specific Controller
Manufacturer
Epson Electronics America, Inc.
Datasheet
10 DEBUGGER
10.6.9 Flash Memory Operation
The debugger gdb has a function to manipulate flash memory mounted in the target board, as well as the flash write
function to use the ICD.
Manipulating flash memory on the target board
10-56
The debugger gdb has a utility and commands that allow you to write data to or erase data from flash memory
built into the S1C17 chip or mounted on the target board. This utility and these commands can be used in the
debugging environments of ICD Mini mode.
Follow the procedure described below to write data to flash memory. For more details, refer to readme.txt
for flash support utility fls17.
1. Loading flash routines
2. Setting flash memory (c17 fls command)
3. Erasing flash memory (c17 fle command)
Use the load command to load flash routines (erase and write routines) into internal RAM, etc.
Example:
(gdb) file 29lv800t.elf
(gdb) target icd usb
C17 ICD17 debugging
Connecting with target (ID_OK) ..... done
ICD Initializing (ID_INITIALIZE) ... done
Read ICD Version (ID_VER_READ) ..... done
Debug base address (ID_DATA_READ) .. 0x003F00
Boot address (ID_DATA_READ) ........ 0x004090
Target file is pointer24.
(gdb) load
Use these routines when actually erasing and writing data.
Set the start and end addresses of flash memory, along with the entry addresses of erase and write routines
loaded in step 1 in gdb.
Example: When the flash memory area is 0xc00000 to 0xcfffff and the entry addresses of the erase and
(gdb) c17 fls 0xc00000 0xcfffff FLASH_ERASE FLASH_LOAD
Erase the entire area or sectors of flash memory. The contents of flash memory will be changed to 0xff.
Example: To erase the entire area of flash memory whose address is 0xc00000 in the flash memory control
(gdb) c17 fle 0xc00000 0 0
Always be sure to execute the c17 fle command after the c17 fls command. When you do not wish
to erase flash memory, specify the sector range ("0 0" in the examples above) as "-1 0". Only the control
register will be modified.
ICD hardware version ............. 4.1
ICD software version ............. 10.0
write routines are FLASH_ERASE and FLASH_LOAD
register
EPSON
(Load debugging information.)
(Connect the target.)
(Load flash routines.)
(C COMPILER PACKAGE FOR S1C17 FAMILY) (Ver. 1.1)
S5U1C17001C MANUAL

Related parts for s5u1c17001c