epson 16-bit microcontroller gnu17 ver.3.1.1 …...seiko epson corporation epson 16-bit...

61
Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project Set Emulator, Evaluation Board Execute Program Rev.1.2

Upload: others

Post on 12-Mar-2020

68 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation

EPSON 16-bit MicrocontrollerGNU17 Ver.3.1.1

Startup Guide

Tool install Import Sample Project Build Project Set Emulator, Evaluation Board Execute Program

Rev.1.2

Page 2: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.2

■Purpose

■The purpose of this document is for setup EPSON 16bitMicrocontroller :S1C17 Family development Environment Easily.

This Manual explains how to install the tools, import sample project, build and execute program using Emulator tool, Evaluation Board.

Emulator ToolICDmini Ver.3

(or Ver.2) Evaluation BoardC compiler PKGGNU17 Ver.3

Sample Software

Page 3: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.3

By following, Development Environment setup will be completed.

0. Preparation1. Install C Compiler Package : GNU17 Ver.32. Import Sample Project

2.1 Import Sample Project (GNU17 Ver.3)2.2 Import Sample Project (GNU17 Ver.2)

3. Build Project3.1 Set Project Property3.2 Build Project

4. Setup Emulator Tool, Evaluation Board5. Load to FLASH, Execute Program6. FAQ

■Contents

Page 4: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.4

■Word Explanation

Word explanationS1C17 Family EPSON 16-bit Microcontroller Family.GNU17v3 IDE Development Environment structured by

S1C17 Family C Compiler package for program development.

ICDmini Ver.3 Hardware Tool(Emulator) for S1C17 Family software development.

Evaluation Board S1C17 Family Evaluation Board.Sample Project S1C17 Family Sample project provided by

EPSON.Sample Project v2 S1C17 Family Sample Project for GNU17v2

(Ver.2)Sample Project v3 S1C17 Family Sample Project for GNU17v3

(Ver.3)

Page 5: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.5

0. Preparation

Page 6: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.6

0. Preparation

※ Please prepare following before start.

PC for install tools. Please prepare by a customer.

C Compiler :GNU17v3 Please download from EPSON Microcontroller Users Site

(See following page)

Sample Projct Please download from EPSON Microcontroller Users Site

(See following page)

Emulator :ICDmini Ver.2 or 3(S5U1C17001H) Please purchase from Distributors.

S1C17 Family Evauation Board Please purchase from Distributors.

Page 7: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.7

Download C Compiler Package :GNU17v3

■Please download following EPSON Microcontroller Users site.http://global.epson.com/products_and_drivers/semicon/products

/micro_controller/16bit/sw_tool.html

Page 8: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.8

Download Sample Project

■Please download following EPSON Microcontroller Users site.http://global.epson.com/products_and_drivers/semicon/products

/micro_controller/16bit/app_note.html

Page 9: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.9

1. Install C Compiler Package:GNU17 Ver.3

Page 10: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.10

1. Please extend download gnu17v3xx.zip.

2. Please Double click “setup.exe”.

1. Please select [Next >] on following window.

1. Install GNU17 Ver.3

Page 11: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.11

4. Please check the license condition, if you agree, put ✓ into □. Then please select [Next >] button.

5. Please set install folder, and select [Next >] button.

1. Install GNU17 Ver.3

Page 12: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.12

6. Please select [Install] button.

7. The install is on processing, please wait a minutes.

1. Install GNU17 Ver.3

Page 13: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.13

8. Please select [Finish] button after install complete.

9. Please check GNU17v3 is set to PC startup menu:[EPSON MCU] > [GNU17] > [GNU17V3 IDE].

If above 8, 9 window is missing, please install again.

1. Install GNU17 Ver.3

Page 14: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.14

10. Please check the target model exists on following folder- GNU17v3 installed [¥GNU17V3¥mcu_model¥]folder

If the target model does NOT exist, please download from EPSON Microcontroller Users site.

If the target model which you want does NOT exist on EPSON Microcontroller Users site, please contact our distributors.

1. Install GNU17 Ver.3

Page 15: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.15

2. Import Sample Project

Page 16: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.16

2.1 Import Sample Project v3

Page 17: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.17

1. Please specify a workspace folder for storing a project. Any folder can be specified for the workspace. This document specified following folder as the workspace.

C:¥EPSON_MCU¥workspace

2. This document explains based on S1C17W23 Sample Project. S1C17W23 Sample Project is structured by following.

3. The manual or readme is included, please check.

2.1 Import Sample Project v3

Page 18: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.18

4. [s1c17m01_w22_w23_sample] project folder has 2 projects. This chapter explains Sample project v3.(S1C17 family sample projects have a similar structure)

• [s1c17m01_w22_w23_sample_gnu17v3]folder structure

2.1 Import Sample Project v3

Page 19: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.19

5. Please startup GNU17v3 by select [EPSON MCU] > [GNU17]> [GNU17V3 IDE] on Windows startup menu.

6. Please specify the workspace decided “1” in this section, then select [OK] button.

Please do NOT specify project folder(including .project file) as a workspace.

2.1 Import Sample Project v3

Page 20: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.20

GNU17v3 will be up.

8. Please select [Import] in GNU17v3 [File] menu.

2.1 Import Sample Project v3

Page 21: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.21

9. Please Select [Existing Project into Workspace] in [General] menu on [Import] Dialogue, and then select [Next >] button.

Extend by click

2.1 Import Sample Project v3

Page 22: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.22

10. Please specify [s1c17m01_w22_w23_sample_gnu17v3] sample project folder by click [Browse] button, and select [Copy projects into workspace] check box, and thenpush [Finish] button.

2.1 Import Sample Project v3

Page 23: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.23

9. Click [Workbench]. (might not be necessary)

10.Please check [Project Explorer] window, sample project should be imported.

2.1 Import Sample Project v3

Page 24: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.24

2.2 Import Sample Project v2

This chapter is only for a customer change GNU17 Ver.2 to GNU17 Ver.3.A customer starts from GNU17 Ver.3, please skip to Chapter3.

Page 25: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.25

1. Please specify a workspace folder for storing a project. Any folder can be specified for the workspace. This document specified following folder as the workspace.

C:¥EPSON_MCU¥workspace

2. This document explains based on S1C17W23 Sample Project. S1C17W23 Sample Project is structured by following.

3. The manual or readme is included, please check.

2.2 Import Sample Project v2

Page 26: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.26

4. [s1c17m01_w22_w23_sample] project folder has 2 projects. This chapter explains Sample project v3.(S1C17 Family sample projects have a similar structure)

• s1c17m01_w22_w23_sample_gnu17v3 folder structure

2.2 Import Sample Project v2

Page 27: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.27

6. Please startup GNU17v3 by select [EPSON MCU] > [GNU17] > [GNU17V3 IDE] on Windows startup menu.

7. Please specify the workspace decided “1” in this section, then select [OK] button.

Please do NOT specify project folder(including .project file) as a workspace.

2.2 Import Sample Project v2

Page 28: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.28

GNU17v3 will be up.

8. Please select [Import] in GNU17v3 [File] menu.

2.2 Import Sample Project v2

Page 29: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.29

9. Please Select [GNU17 V2 Project] in [General] menu on [Import] Dialogue, and then select [Next >] button.

2.2 Import Sample Project v2

Click for extend

Page 30: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.30

10. Please specify [s1c17m01_w22_w23_sample_gnu17v2] sample project folder by click [Browse] button, and select [Copy projects into workspace] check box, and thenpush [Finish] button.

2.2 Import Sample Project v2

Page 31: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.31

11. Click [Workbench] button. (might not be necessary)

12.Please check [Project Explorer] window, sample project should be imported.

2.2 Import Sample Project v2

Page 32: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.32

13. Following document will be up, please check and modify the source code, if it requires.

2.2 Import Sample Project v2

Page 33: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.33

3.1 Set Project Property

Page 34: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.34

1. Please select the project and then select [Project] > [Properties].

3.1 Set Project Property

Page 35: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.35

2. Select [GNU17 Setting] and then select target CPU, after that push [OK] button.

If target model is missing, please go to chapter1-10.

3.1 Set Project Property

Page 36: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.36

3.2 Build Project

Page 37: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.37

1. Please modify below part which includes [¥inc¥c17_mcu_select.h] header file of sample software according to target CPU.// Please activate macro of used MCU.//#define C17_MCUSEL_M01//#define C17_MCUSEL_W22#define C17_MCUSEL_W23

2. Please comment out all sample programs except of the sample programs which are executed in [¥src¥c17_init_config.h] header file. This startup guide uses LCD24A, so comment out all “#define C17_PE_*” excetp of below 3.RTCA、T16 are used for LCD24A execution.//#define C17_PE_ADC /// (W23 only)//#define C17_PE_I2C_MASTER//・ ・ ・#define C17_PE_LCD24A /// (W22,W23 only)//・ ・ ・#define C17_PE_RTCA//・ ・ ・#define C17_PE_T16//・ ・ ・//#define C17_PE_WDT

3.2 Build Project

Page 38: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.38

Debugger compares the program on MCU flash and one which will be load on flash in default setting. If they are same, Debugger starts up without program loading to flash.If Debugger always load the program to flash, please add below commnet in gdbmini3.ini (or gdbmini2.ini) for time crunch.

3.2 Build Project

# Initial GDB command file for ICDmini3# set output-radix 16c17 model_path C:/EPSON/GNU17V3/mcu_model# c17 model 17c17 model 17W23@NOREADtarget icd icdmini3load# Please uncomment following commented out lines to enable STDOUT while debugging.#hbreak WRITE_FLASH#commands#printf "%s",WRITE_BUF#continue#end

Page 39: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.39

1. Please select project, and then select [Project] > [Build Project].

If [Build Project] cannot be selected. please click the project.

2. Start building, wait a moment please.

3.2 Build Project

Page 40: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.40

3. Build Finish comment is displayed on console window, please check *.elf exists under Binaries. it might be necessary to select [refresh] by right click after select project. If errors exist, it shows on Problems window.

3.2 Build Project

Click for extend

Page 41: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.41

4. Setup Emulator, Evaluation Board

Page 42: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.42

ICDmini Ver.2ʼs case:1. Push down DIPWS8 of Emulator/ICDmini Ver.2(S5U1C17001H2),

and connect Emulator and Evaluation board by accompanying cable.

2. Please supply the power of Evaluation board from Emulator or Stabilized power supply (Power cable does not include in Epson tools)

3. Please connect Emulator and PC by USB cable and push button on Emulator. It is normal if LED changes to blue, blue, off, green.

4. Setup Emulator, Evaluation Board (ICDmini Ver.2)

Connect to PC

Enlarged View

Page 43: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.43

ICDmini Ver.3ʼ case:1. Please connect Emulator/ICDmini3 (S5U1C17001H3) and

Evaluation Board by cable.(The optional cable “DBG I/F Cable2(S5U1C17001W7200)” is used in this startup guide.)

2. Please connect Emulator and PC by USB cable.

4. Setup Emulator, Evaluation Board (ICDmini Ver.3)

Connect to PC

Enlarged View

Page 44: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.44

⑨⑦⑤③①⑩⑧⑥④②

⑦ ③⑧ ④

⑨⑦⑤③①⑩⑧⑥④②

⑦ ③⑧ ④

3.3V

3.3V

4. Setup Emulator, Evaluation Board

突起

Connection of SVTmini Evaluation board and Emulator

ICDmini Ver.2

*Gray terminals are not used.

ICDmini Ver.3

*Gray terminals are not used.

Page 45: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.45

following explanation is based on windows7, for another OS, please specify ”utility¥drv_usb” in GNU installed folder as the driver.

3. Windows update search will be started, but please select following.

4. Please skip windows update search by select [Yes] button.

4. Setup Emulator, Evaluation Board

Page 46: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.46

5. Please click [Close].

6. Please select “Unknown device” or “S5U1C17001H” and then select [Update Driver Software] in [control panel] > [device manager].

4. Setup Emulator, Evaluation Board

Page 47: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.47

7. Please select [Browse my computer for driver software].

8. Please specify “GNU17v3 installed folder¥utility¥drv_usb”, and then click [Next] button.

4. Setup Emulator, Evaluation Board

Page 48: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.48

9. Driver install is started, wait a minutes.

10. Please select [Install] button.

4. Setup Emulator, Evaluation Board

Page 49: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.49

11. Following window is up. Please select [Close].

12. Please check “ICDmini3” driver is installed under “ICDmini3device” in [Control Panel] > [Device Manager] window.

4. Setup Emulator, Evaluation Board

Page 50: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.50

5. load to FLASH,Execute Program

Page 51: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.51

1. Please select project and then select [Run] > [Debug Configrations...].

(▼of [Debug] icon also can be used for same purpose.)

5. Load to FLASH, Execute Program

Page 52: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.52

2. Please select a project and select [Debugger] tab. If ICDmini Ver.2 is used, please set “gdbmini2.ini” If ICDmini Ver.3 is used, please set “gdbmini3.ini”in [GDB command file:] box, and select [Debug] button.

* If simulator mode is used, please set ”gdbsim.ini”.

5. Load to FLASH, Execute Program

Page 53: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.53

3. Wait a moment.

4. A message for opening Debug Perspective window. Please put ✓ into[], and then select [Yes].

5. Load to FLASH, Execute Program

Page 54: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.54

5. Please click [Resume] icon to execute a program.

5. Load to FLASH, Execute Program

Page 55: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.55

6. Program should be executed, s1c17m01_w22_w23_sample_gnu17v3 works to change LCD display as following after about 10 seconds.

5. Load to FLASH, Execute Program

Page 56: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.56

[Step Return]Execute program until exiting this function.

[Terminate]Terminate GDB debugger.

[Resume]Execute program. [Suspend]

Suspend program.MCU’s internal information can be refered andedited, and the settings for debug alsocan be set in debug mode.

[Step Over]Execute 1 instraction(include sub function).

[Step Into]Execute 1 instraction. [Reset Target]

Reset the target boardby reset signal.

[Reset]Move to top of the program, andinitialize registers of CPU by software.

5. Load to FLASH, Execute Program

Page 57: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.57

6. FAQ

Page 58: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.58

Question ExplanationGNU17v3 does NOT work well. Please do uninstall, then install again.Where is EPSON Microcontroller site?

http://global.epson.com/products_and_drivers/semicon/products/micro_controller/

No target model. Please download from EPSON Microcontroller site. Please check chapter 1-10.

How to purchase Development board.

Please ask our distributors.

Cannot execute program Please check the driver is installed.Please check Chapter 4.Also please check evaluation board connection.

Others Please ask them to [email protected]

6. FAQ

Page 59: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.59

Startup guide explanation is finished.

Please check the manuals to the details.Manual Structure is listed in next page.

Page 60: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.60

S1C17 Family Manual Structurehttp://global.epson.com/products_and_drivers/semicon/products/micro_controller/16bit/

■ S1C17 Family common manual

S1C17 Family core manualS1C17 Family startup manual(C language)S1C17 Family startup manual(assembler)

■ S1C17 Family each model manualS1C17xxx datasheetS1C17xxx technical manual

■ S1C17 Family development tool(C compiler package)S5U1C17001C manual(S1C17 Family C compiler package)

■ S1C17 Family development tool(Emulator tool)S5U1C17001H USer Manual

*Please also refer to errata, if it is published for the document.

S1C17 Series Small Memory Programming

GNU17 Ver.3.1 Tutorial

Page 61: EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 …...Seiko Epson Corporation EPSON 16-bit Microcontroller GNU17 Ver.3.1.1 Startup Guide Tool install Import Sample Project Build Project

Seiko Epson Corporation Page.61

rev Date Type DetailsRev 1.0 14/Jan/2016 New New released.Rev 1.1 25/Jul/2017 Updated Updated for new EPSON Web site

Supported for GNU17v3.1.1Supported for sample software(G3)

Rev1.2 26/Jul/2017 Updated Added some pictures.

Revision History