S5U1C17001C ManUal
EPSOn
10-59
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
10 DEBUggEr
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
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
(Load debugging information.)
(gdb) target icd usb
(Connect the target.)
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
(Load flash routines.)
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
Страница 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 ...