Flash Memory Operation - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

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
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_j.
txt / readme_e.txt for flash support utility fls17.
1. Loading flash routines
Use the load command to load flash routines (erase and write routines) into internal RAM, etc.
Example:
(gdb) file fls17701.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
ICD hardware version ............. 1.0
ICD software version ............. 1.0
Debug base address (ID_DATA_READ) .. 0x000FC0
Boot address (ID_DATA_READ) ........ 0x008080
Hardware break MAX ................. 4
Target file is pointer24.
(gdb) load
Use the routines loaded here to erase data from or write data to flash memory.
2. Setting flash memory (c17 fls command)
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 0x8000 to 0x17fff and the entry addresses of the erase and write
routines are FLASH_ERASE and FLASH_LOAD
(gdb) c17 fls 0x8000 0x17fff FLASH_ERASE FLASH_LOAD
3. Erasing flash memory (c17 fle command)
Erase the entire area or blocks of flash memory.
The contents of flash memory will change to 0xff after erasure.
Example: To erase all flash memory whose start address is 0x8000
(gdb) c17 fle 0x8000 0 0
Always run the c17 fle command after the c17 fls command. If you do not want to erase flash
memory, specify the block range ("0 0" in the example above) as "-1 0", precluding the need for erasing
flash memory.
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
(Load debugging information.)
(Connect the target.)
(Load flash routines.)
EPSOn
10 DEBUggEr
10
Debugger
10-59

Advertisement

Table of Contents
loading

Table of Contents