• Tidak ada hasil yang ditemukan

Co IDE penataan bunga Guide

N/A
N/A
Protected

Academic year: 2018

Membagikan "Co IDE penataan bunga Guide"

Copied!
142
0
0

Teks penuh

(1)

1

CoIDE User Guide

2013-01-21 V1.0 Completed

(2)

2

Catalog

1 CoIDE Quick Start... 5

2 General Introduction ... 15

2.1 New Concepts ... 15

2.1.1 Terminology Note ... 15

2.1.2 CoIDE Features ... 15

2.2 Support list... 17

2.2.1 Support Devices ... 17

2.2.2 Supported Adapters ... 19

2.3 Requirement for CoIDE ... 20

3 Preparation ... 21

3.1 Set GCC Compiler ... 21

3.1.1 ARM GCC Introduction ... 21

3.1.2 Set GCC in CoIDE ... 22

4 User Interface ... 24

4.1 Menus and Actions ... 24

4.1.1 File Menu Actions ... 24

4.1.2 Edit Menu Actions ... 24

4.1.3 View Menu Actions ... 24

4.1.4 Project Menu Actions ... 25

4.1.5 Flash Menu Actions ... 25

4.1.6 Debug Menu Actions ... 25

4.1.7 Search Menu Actions ... 26

4.1.8 Help Menu Actions ... 26

4.2 Toolbar ... 27

4.2.1 Editor Toolbar Actions ... 27

4.2.2 Debug Toolbar Actions ... 28

4.3 Editor View ... 29

4.3.1 Welcome ... 29

4.3.2 Breakpoint ... 30

4.3.3 Components ... 31

(3)

3

4.3.5 Configuration ... 33

4.3.6 Editor ... 37

4.3.7 Help ... 37

4.3.8 Help Contents ... 38

4.3.9 Outline ... 39

4.3.10 Peripheral ... 40

4.3.11 Project Explorer ... 41

4.3.12 Repository ... 42

4.4.6 Peripherals view (CoAssistant) ... 52

4.4.7 Registers ... 54

4.4.8 Semihosting view ... 55

4.4.9 Variables ... 56

5 Project Management ... 59

5.1 Create Project ... 59

5.1.1 Create Project by Chip Model ... 59

5.1.2 Create Project by Board Model ... 64

5.2 Manage Target/Groups/Files and Switch Chip ... 69

5.2.1 Target List Management in the Multi-configuration ... 69

5.3 Project configuration ... 73

5.3.1 Change device ... 73

5.3.2 Compile configuration ... 75

5.3.3 Link configuration ... 76

5.3.4 Output configuration ... 78

5.3.5 User configuration ... 79

(4)

4

5.3.7 Download configuration ... 81

5.4 Build project ... 82

5.5 Open project ... 83

6 Debug ... 85

6.1 Introduction ... 85

6.1.1 Enter debug mode ... 85

6.1.2 Debug control ... 85

6.1.3 Set breakpoints ... 85

6.1.4 Step mode ... 85

6.1.5 Debug Example ... 86

6.2 How to use debug views ... 89

6.2.1 Disassembly view ... 89

6.2.2 Memory view ... 90

6.2.3 Variables view ... 91

7 Components, Examples and Boards ... 93

7.1 Components ... 93

7.1.1 Add Components ... 93

7.1.2 Refresh and Update Components ... 97

7.1.3 Upload Components ... 100

7.1.4 Modify or Delete Components ... 116

7.2 Examples ... 119

7.2.1 View examples ... 119

7.2.2 Adding code snippet ... 123

7.2.3 Upload Examples ... 125

7.2.4 Modify an Example ... 131

7.3 Board ... 133

7.3.1 Refresh Board List ... 135

7.3.2 Update a Board ... 135

7.3.3 Upload a Board ... 136

(5)

5

1

CoIDE Quick Start

1. Launch CoIDE, select Browse in Repository

(6)

6 3. Select your target chip, e.g. MKL05Z32VFM4. The Help view on the right side of CoIDE

will show corresponding information of the chip.

(7)

7 5. After clicking "Yes", CoIDE will pop up a wizard window. Input project name. You can

also modify the Project Path.

(8)

8 7. In the Repository view, click xGPIO component and the detailed description of xGPIO

component will be displayed in the Help view.

(9)

9 9. Cli k " ie " to ie the e a ple e.g. Bli k a d add to add it to our proje t.

(10)

10 11. CoIDE will add the Blinky.c file to the project, and the Blinky function to the main

function.

(11)

11 13. Cli k the Co figuratio utto to ope the o figuratio view.

(12)

12 15. Cli k the Do load utto to do load ode to flash.

(13)

13 17. If debugging is launched successfully, CoIDE will enter the debug mode.

(14)

14 19. Set breakpoints in the C code window or the Disassembly window.

(15)

15

2

General Introduction

CoIDE is a new, free and highly integrated software development environment for ARM Cortex MCU based microcontrollers, which includes all the tools necessary to develop high-quality software solutions in a timely and cost effective manner.

2.1

New Concepts

CoIDE consists of a component-based network platform and an Eclipse-based development environment. The component-based network platform can quickly obtain resources to build applications, share your resources and exchange ideas. The Eclipse-based development environment provides many features for code editing, code browsing, compiling, linking, debugging, project management, etc.

Features:

 Free to use

 Full functional IDE

 Component-oriented development platform

 Internet-based, efficient integration of network resources

 Integrates CoOS (Real-Time Operating System)

 Peripheral registers 2.1.1 Terminology Note

2.1.1.1 Component

In CoIDE, any reusable code can be called as a component, including OS, drivers, examples, middle layer software etc. Each component has its corresponding code snippets, usage, documentation and comments.

2.1.1.2 Dependence

When a component is selected, CoIDE automatically selects the required dependent components required for compiling or executing the program.

2.1.1.3 Code Snippet

Code Snippet (or example code) is an extension of a component. If the component is object-oriented, the code snippet will be application-oriented. For example, a PIO driver can be known as a component, a function using PIO driver to achieve LED flashing can be known as a code snippet. The code snippet is generally very short, but the features are not restricted. It can be automatically inserted into the code.

2.1.2 CoIDE Features

CoIDE can be used for code editing, code browsing, compiling, linking, debugging and project management; it also can be used to obtain components, share components and to exchange ideas.

2.1.2.1 Component Network

(16)

16 embedded database, protocol stack and other components, which are all free. Everyone can use these components and upload their own components.

2.1.2.2 Component Oriented Programming

In embedded application development, if there is no suitable libraries, development work will become very complicated. Once you have the suitable libraries, anything will be manipulated in your hands. CooCox CoIDE Component Network contains a large amount of free components, users can choose suitable components according to your own needs, and use the component code snippets to build application will become more quickly. With a large number of components and detailed component documentation, programming will be as simple as building block.

2.1.2.3 Component Documentation

Detailed documentation (displayed in the Help View) is available for each component making it extremely easy for users with their development. This includes component description, component dependency relationship, component source files, usage of the component, comments etc. CoIDE automatically generates documentation for source files. Tip: having the code comments according to Doxygen standard will help generate detailed documentation.

2.1.2.4 Interaction

CooCox CoIDE, provides powerful interaction between the various elements such as the chip, component, peripheral, register, code snippet and more. Users can even ask questions directly from within the environment, making it easy to address any problems encountered in the development process.

2.1.2.5 Development Environment

CoIDE is based on the Eclipse development platform, and has the following features:  Integrated CDT editor: A full-featured editor to edit and browse the code

 Integrated GCC ARM Embedded: Using gcc tool chain, which is efficient and stable.  A clear interface: Menus and toolbar are simple, clear and easy to use.

(17)

17

2.2

Support list

2.2.1 Support Devices

The CooCox CoIDE mainly supports ARM Cortex-M based devices. Until now, CooCox has supported Cortex-M4, Cortex-M3, Cortex-M0 and Cortex-M0+ chips from Atmel, Energy Micro, Freescale, Holtek, NXP, Nuvoton, ST and TI. For the latest support list, please visit: http://www.coocox.org/CooCox_CoIDE.htm

 Atmel:

 AT91SAM3U4E AT91SAM3U4C  AT91SAM3U2E AT91SAM3U2C  AT91SAM3U1E AT91SAM3U1C

 Energy Micro:

 EFM32G200F16 EFM32G200F32 EFM32G200F64  EFM32G210F128

 EFM32G230F128 EFM32G230F32 EFM32G230F64  EFM32G280F128 EFM32G280F32 EFM32G280F64  EFM32G290F128 EFM32G290F32 EFM32G290F64  EFM32G840F128 EFM32G840F64 EFM32G840F32  EFM32G880F128 EFM32G880F64 EFM32G880F32  EFM32G890F128 EFM32G890F64 EFM32G890F32

 Freescale :

 MKL04Z16VFK4, MKL04Z16VFM4, MKL04Z16VLC4, MKL04Z16VLF4, MKL04Z32VFK4, MKL04Z32VFM4, MKL04Z32VLC4, MKL04Z32VLF4, MKL04Z8VFK4, MKL04Z8VFM4, MKL04Z8VLC4

 MKL05Z16VFK4, MKL05Z16VFM4, MKL05Z16VLC4, MKL05Z16VLF4, MKL05Z32VFK4, MKL05Z32VFM4, MKL05Z32VLC4, MKL05Z32VLF4, MKL05Z8VFK4, MKL05Z8VFM4, MKL05Z8VLC4

 MKL14Z32VFM4, MKL14Z32VFT4, MKL14Z32VLH4, MKL14Z32VLK4, MKL14Z64VFM4, MKL14Z64VFT4, MKL14Z64VLH4, MKL14Z64VLK4  MKL15Z128VFM4, MKL15Z128VFT4, MKL15Z128VLH4, MKL15Z128VLK4,

MKL15Z32VFM4, MKL15Z32VFT4, MKL15Z32VLH4, MKL15Z32VLK4, MKL15Z64VFM4, MKL15Z64VFT4, MKL15Z64VLH4, MKL15Z64VLK4  MKL24Z32VFM4, MKL24Z32VFT4, MKL24Z32VLH4, MKL24Z32VLK4,

MKL24Z64VFM4, MKL24Z64VFT4, MKL24Z64VLH4, MKL24Z64VLK4  MKL25Z128VFM4, MKL25Z128VFT4, MKL25Z128VLH4, MKL25Z128VLK4,

MKL25Z32VFM4, MKL25Z32VFT4, MKL25Z32VLH4, MKL25Z32VLK4, MKL25Z64VFM4, MKL25Z64VFT4, MKL25Z64VLH4, MKL25Z64VLK4

 Holtek:

 HT32F1251, HT32F1251B, HT32F1252, HT32F1253  HT32F1755, HT32F1765, HT32F2755

 NXP:

(18)

18  LPC1224x101 LPC1224x121 LPC1225x301 LPC1225x321 LPC1226x301 LPC122

7x301

 LPC1311 LPC1313 LPC1342 LPC1343

 LPC1751 LPC1752 LPC1754 LPC1756 LPC1758 LPC1759

 LPC1763 LPC1764 LPC1765 LPC1766 LPC1767 LPC1768 LPC1769

 Nuvoton:

 NUC100LC1BN, NUC100LD1BN, NUC100LD2BN, NUC100RC1BN, NUC100RD1BN, NUC100RD2BN

 NUC100LD3AN, NUC100LE3AN, NUC100RD3AN, NUC100RE3AN, NUC100VD2AN, NUC100VD3AN, NUC100VE3AN

 NUC120LC1BN, NUC120LD1BN, NUC120LD2BN, NUC120RC1BN, NUC120RD1BN, NUC120RD2BN

 NUC120LD3AN, NUC120LE3AN, NUC120RD3AN, NUC120RE3AN, NUC120VD2AN, NUC120VD3AN, NUC120VE3AN

 NUC122LC1AN, NUC122LD2AN, NUC122SC1AN, NUC122SD2AN, NUC122ZC1AN, NUC122ZD2AN

 NUC130LC1CN, NUC130LD2CN, NUC130LE3CN, NUC130RC1CN, NUC130RD2CN, NUC130RE3CN, NUC130VE3CN

 NUC140LC1CN, NUC140LD2CN, NUC140LE3CN, NUC140RC1CN, NUC140RD2CN, NUC140RE3CN, NUC140VE3CN

 M0516LBN, M0516ZBN, M052LBN, M052ZBN, M054LBN, M054ZBN, M058LBN, M058ZBN

 Mini51LAN, Mini51ZAN, Mini52LAN, Mini52ZAN, Mini54LAN, Mini54ZAN  NANO100KC2BN, NANO100KD2BN, NANO100KD3BN, NANO100KE3BN,

NANO100LC2BN, NANO100LD2BN, NANO100LD3BN, NANO100LE3BN, NANO100SC2BN, NANO100SD2BN, ANO100SD3BN, NANO100SE3BN  NANO110KC2BN, NANO110KD2BN, NANO110KD3BN, NANO110KE3BN,

NANO110SC2BN, NANO110SD2BN, NANO110SD3BN, NANO110SE3BN  NANO120KC2BN, NANO120KD2BN, NANO120KD3BN, NANO120KE3BN,

NANO120LC2BN, NANO120LD2BN, NANO120LD3BN, NANO120LE3BN, NANO120SC2BN, NANO120SD2BN, NANO120SD3BN, NANO120SE3BN  NANO130KC2BN, NANO130KD2BN, NANO130KD3BN, NANO130KE3BN,

NANO130SC2BN, NANO130SD2BN, NANO130SD3BN, NANO130SE3BN  ST

 STM32F050C4, STM32F050C6, STM32F051C4, STM32F051C6, STM32F051C8, STM32F051K4, STM32F051K6, STM32F051K8, STM32F051R4, STM32F051R6 STM32F051R8,

 STM32F100C4, STM32F100C6, STM32F100C8, STM32F100CB,

 STM32F100R4, STM32F100R6, STM32F100R8, STM32F100RB, STM32F100RC, STM32F100RD, STM32F100RE,

 STM32F100V8, STM32F100VB, STM32F100VC, STM32F100VD, STM32F100VE,  STM32F100ZC, STM32F100ZD, STM32F100ZE,

 STM32F101C4, STM32F101C6, STM32F101C8, STM32F101CB,

(19)

19  STM32F101T4, STM32F101T6, STM32F101T8, STM32F101TB,

 STM32F101V8, STM32F101VB, STM32F101VC, STM32F101VD, STM32F101VE, STM32F101VF, STM32F101VG,

 STM32F101ZC, STM32F101ZD, STM32F101ZE,

 STM32F102C4, STM32F102C6, STM32F102C8, STM32F102CB,  STM32F102R4, STM32F102R6, STM32F102R8, STM32F102RB,  STM32F103C4, STM32F103C6, STM32F103C8, STM32F103CB,

 STM32F103R4, STM32F103R6, STM32F103R8, STM32F103RB, STM32F103RC, STM32F103RD, STM32F103RE, STM32F103RF, STM32F103RG,

 STM32F103T4, STM32F103T6, STM32F103T8, STM32F103TB,

 STM32F103V8, STM32F103VB, STM32F103VC, STM32F103VD, STM32F103VE, STM32F103VF, STM32F103VG,

 STM32F103ZC, STM32F103ZD, STM32F103ZE, STM32F103ZF, STM32F103ZG,  STM32F105R8, STM32F105RB, STM32F105RC, STM32F105V8, STM32F105VB,

STM32F105VC,

 STM32F107RB, STM32F107RC, STM32F107VB, STM32F107VC

 STM32F405RG, STM32F407IG, STM32F407VG, STM32F407ZG, STM32F415RG, STM32F417VE

List of debug adapters, supported by CoIDE

Debugging Adapter Available Devices PC USB Driver

Colink Atmel, TI, NXP, ST Colink Driver

CoLinkEx Atmel, Energy Micro, Freescale , TI, NXP,

Nuvoton, ST, Holtek CoLinkEx Driver

Nu-Link, Nu-Link-Me or

Nu-Link-pro Nuvoton Nu-Link Driver

FTDI devices Atmel, TI, NXP, ST FTDI Driver

J-Link(How to use) Atmel, Energy Micro, TI, NXP, ST J-Link Driver

ST-Link or ST-Link/V2 ST ST-Link/V2

Driver

e-link32 Holtek e-link32 Driver

(20)

20

2.3

Requirement for CoIDE

System requirements:

 Windows XP SP3/Windows Vista/Windows 7

Hardware requirements:

 Debug adapter such as CoLinkEx, Open-SDA, etc.

Software requirements:

 GCC ARM Embedded (see: Set GCC Compiler)

(21)

21

3

Preparation

3.1

Set GCC Compiler

Before you use CoIDE to start your project, you need to configure the GCC compiler and debugger.

It is recommended to use the ARM GCC compiler. For more details about ARM GCC, please click here. In addition, you can also choose other GCC compilers such as CodeSourcery GCC.

3.1.1 ARM GCC Introduction

Features:

 All GCC 4.7 features, plus latest mainline features

 Cortex-M0/M0+/M1/M3/M4 support

 Cortex-M4 with hard float multilib support

 Fixed point fraction support

 Nano C Library support

Download link: https://launchpad.net/gcc-arm-embedded/+download

Note:

As CoIDE supports different GCC compilers, you need to pay attention to the following points when you switch between the compilers:

 The different compilers have different C libraries, for example: ARM GCC has a base C Library, Nano C library Semihosting Library and a Retarget Library. However,

CodeSourcery GCC only has the base C Library. See: Project Configuration

 ARM GCC and CodeSourcery GCC use different link.ld when they compile the same project. CoIDE will generate different link.ld when you create the project, so it is strongly recommended of you to set the GCC compiler before you start.

 If you want to use ARM GCC to compiler the project you created under CodeSourcery GCC, you need to delete the Build.xml, link.ld, memory.ld. Then check a component and reconfigure the project after setting the GCC.

(22)

22 3.1.2 Set GCC in CoIDE

1. After launching the CooCox CoIDE, click "Select Toolchain Path" under the Project menu.

(23)
(24)

24

4

User Interface

4.1

Menus and Actions

4.1.1 File Menu Actions

Name Description Shortcut

New File Create a new file. Ctrl + Shift + N

Open File… Open a file from the file system in the Editor view.

Save Save the content of the current editor. Disabled if the editor

does not contain unsaved changes. Ctrl + S

Save As... Save the content of the current editor under a new name. Save All Save the content of all editors with unsaved changes.

Disabled if no editor contains unsaved changes. Ctrl + Shift + S Exit Exit CoIDE.

4.1.2 Edit Menu Actions

Name Description Shortcut

Undo Undo your operations. Ctrl + Z

Cut Cut a code snippet or a file. Ctrl + X

Copy Copy a code snippet or a file. Ctrl + C

Paste Paste the code snippet or a file to a place. Ctrl + V 4.1.3 View Menu Actions

Name Description Shortcut

Repository Open Repository View.

Configuration Open the current project configuration page (Open builder.xml of the current project in Editor). Project Open Project View

Components Open component platform

Help Open Help View.

(25)

25 Default layout Resume to the default layout.

4.1.4 Project Menu Actions

Name Description Shortcut

New Project Create a new Project and close the current project. Open Project... Show a dialog that can be used to select an existing project.

Close Project Close the current project.

Select

Toolchain path Select the GCC Toolchain you want to use.

Build

Build the currently selected project. This is an incremental build, meaning that the builder analyzes the changes since the last time of build and minimizes the number of changed files.

F7

Rebuild Rebuild all files of the current project. Ctrl + R Clean Clean the intermediate files that generated by building. Upload

Component

Open the Login dialog box, you can upload Component after

login with CooCox account.

Upload Board You can upload development board after login with CooCox account.

Upload Example

You can upload component examples after login with CooCox account.

4.1.5 Flash Menu Actions

Name Description Shortcut

Program Download Download program to Flash.

Flash Erase Erase Flash.

4.1.6 Debug Menu Actions

Name Description Shortcut

Debug To debug the current project. Ctrl+F5

Toggle Breakpoint To set a breakpoint at the current line. Ctrl +Shift+ B Toggle Line Breakpoint To set a breakpoint at one line in the function.

Toggle Method Breakpoint To set a breakpoint at the entry of current function. Toggle Watch Breakpoint To set a Watch Breakpoint.

(26)

26 Remove All Breakpoints Delete all the Breakpoints.

Breakpoint Type Breakpoint Type 4.1.7 Search Menu Actions

Name Description Shortcut

Search... Execute a C/C++ or file search. Ctrl + H

File... Execute a file search. C/C++ … Execute a C/C++ search. 4.1.8 Help Menu Actions

Name Description Shortcut

Welcome Open the Welcome view.

Help Contents CoIDE Users' Guide.

(27)

27

4.2

Toolbar

4.2.1 Editor Toolbar Actions

Icons Name Description Shortcut

New Project Create a new Project and close the current project.

Create New File Create a new file.

Save Save the content of the current editor. Disabled

if the there is no changed. Ctrl + S

Build

Build the currently selected project. This is an incremental build, meaning that the builder analyzes the changes since the last time of build and minimizes the number of changed files.

F7

Rebuild Rebuild all files of the current project. Ctrl + R

Start Debug. Debug the current project. Ctrl + F5

Download Code

to Flash Download program to flash. Flash Erase Erase the full chip.

Configuration Configure the project.

Target Manage Manage the Targets in the project Repository Open Repository View.

Welcome Open Welcome View

Open Element Open the Search dialog box. Ctrl +Shift +T

Search Open the Search dialog box. Ctrl + H

Toggle Mark Occurrences

Turns mark occurrences on and off in the C/C++

editor. Alt+Shift+0

Next Annotation Go to the next annotation. Ctrl +. Previous

Annotation Go to the previous annotation. Ctrl + , Last Edit

Location

Go to the location where you have modified last

time. Ctrl + Q

Back to... Go back to the previous position. Alt + Left

(28)

28 4.2.2 Debug Toolbar Actions

Icons Name Description Shortcut

Instruction Stepping Mode

Select the instruction stepping mode command to step the instruction.

Reset CPU Select the Reset command to reset the debugging.

Run Select the Run command to resume execution

of the currently suspended debug target. F5

Suspend

Select the Suspend command to halt execution of the currently selected thread in a debug target.

F9

Terminate Ends the selected debug session and/or

process. Ctrl + F5

Step Into

Select to execute the current line, including any routines, and proceed to the next statement.

F11

Step Over Select to execute the current line, following

execution inside a routine. F10

Step Out

Select to continue execution to the end of the current routine, then follow execution to the routine's caller.

Ctrl + F11

Run To Line Select to continue execution to current line. Ctrl + R Open Element Open the Search dialog box. Ctrl +Shift +T

Search Open the Search dialog box. Ctrl + H

Toggle Mark Occurrences

Turns mark occurrences on and off in the

C/C++ editor. Alt+Shift+0

Next Annotation Go to the next annotation. Ctrl +.

Previous Annotation Go to the previous annotation. Ctrl + , Last Edit Location Go to the location where you have modified

last time. Ctrl + Q

Back to... Go back to the previous position. Alt + Left

(29)

29

4.3

Editor View

(30)

30 When you launch CoIDE for the first time, you could see the welcome page.

The welcome page is a convenient entry for Browse in ‘epositor , Create a New Proje t ,

Ope a Proje t , refer to User Guide and go to Forum . 4.3.2 Breakpoint

(31)

31 4.3.3 Components

This view displays all the components of the current project selection. Clicking on a component in this view will have:  The Help view display the

properties of the clicked

component, such as the component source files, source files documents, dependent components, usage and comments.

 The Code Snippet View displays all code snippets of the component.  The Project View highlights the

component source files. 4.3.4 Console

This view shows the output of the execution of your program and enables you to enter input for the program.

Console View Toolbar:

Icon Command Description

Pin Console Force the Console view to remain on top of other views in the window area.

Display Selected Console If multiple consoles are open, you can select the one to display from a list.

Open Console Open new console view.

Clear Console Clear the console.

Scroll Lock Toggle the Scroll Lock. Show Console When

(32)

32 Show Console When

(33)

33 4.3.5 Configuration

Click the Configuration button to enter the configuration view.

The Configuration view is split into seven tabs that contain the configuration for the project. They are Device, Compile, Link, Output, User, Debugger and Download.

(34)

34 4.3.5.2 Compile configuration

(35)

35 4.3.5.4 Output configuration

(36)

36 4.3.5.6 Debug configuration

(37)

37 4.3.6 Editor

The C/C++ editor provides specialized features for editing C/C++ related files.

The most common way to invoke the C/C++ editor is to open a file from the Project Explorer by clicking the file (single or double-click depending on the user preferences).

The C/C++ editor only provides context menu (right click your mouse in the editor view, the context menu will appear) and key binding actions.

4.3.7 Help

(38)

38 2. API Reference, the reference of the APIs, which link to the Doxygen Documents

generated by CoIDE.

3. Source files: Source files of the component.

4. Dependency: Other components depended by the component. 4.3.8 Help Contents

The Help Menu provides contents for help with the features and functionality of the CoIDE.

Toolbar

Icon Name Description Availability

Go Back Go back to the previous position. Toolbar Go Forward to Forward to the next position. Toolbar Home Go to the home page of the Help content. Toolbar Show in table of

content

Show the page position in the table of

content view. Toolbar

Bookmark Document Add a bookmark. Toolbar

Print Page Print the current page. Toolbar

Print Topics Print the topics. Context menu

Search Topics Search the topics. Context menu

(39)

39

Show Result

Categories Show the categories of the search results.

Search Results View

Show Result

Description Show the description of the search results.

Search Results View

Delete Selected

Bookmark Delete the selected bookmark. Bookmark View Delete All Bookmark Delete the entire bookmark. Bookmark View 4.3.9 Outline

The Outline view will show the outline when you open a source file in the edit view. It can show all the includes, definitions, macros, functions in the source file you opened. You can click the icons or the characters behind to go to the related values in the edit view.

Outline view toolbar icons:

The table below lists the icons displayed in the Outline view toolbar.

Icon Description Icon Description

Sort items alphabetically Filters…

Hide Fields Link With Editor

Hide Static Members Group Includes

Hide Non-Public Members Group Macros

Hide Inactive Elements Group Methods

Outline view menu Group Namespaces

Outline view icons:

The table below lists the icons displayed in the Outline view.

Icon Description Icon Description

Class Include

(40)

40

Macro Definition Method protected

Enum Method public

Enumerator Struct

Variable Type definition

Field private Union

Field protected Function

Field public

4.3.10 Peripheral

This view shows the information of peripheral register.

(41)

41 4.3.11 Project Explorer

This view displays all files of the file system under your project directory, including C source files (*.c, *.h), assembly source files (*.s), project configuration files (build.xml), linker script files (*.ld), library files (*.a), etc. In this view you could do the following operations:

 Open files in the editor view

 Open project configuration interface  Close the current project

 Create new projects, files, or folders

(42)

42 4.3.12 Repository

This view displays all available components in the project. The √ efore the o po e t

sho s this o po e t has ee added to the proje t. B he ki g or u he ki g the √

before components to add or delete the components. 4.3.13 Search

The Search view only appears after you have searched something in the project.

The type of the selected C/C++ element defines which search context menus are available. Search view Toolbar:

Icon Command Description

Next Navigate to the next search result.

Previous Navigate to the previous search result. Remove the Selected

Matches

Removes user selected matches from the search console.

(43)

43 Run the Current Search

Again Run the current search again.

Terminate Terminate the current search.

Show Previous Searches Show the list of previously runs searching, which can be re-selected.

Pin the Search View Force the search view to remain on top of other views in the window area.

Menu List two selectable view layouts for search results: Flat and Hierarchical.

Minimize Console Minimize the Console view.

(44)

44

4.4

Debug View

4.4.1 Breakpoints

The Breakpoints View lists all the breakpoints you have set in your workspace. Up to six breakpoints can be toggled if you are debugging in flash with Cortex-M3 series' chips, for Cortex-M0, the number is four. Otherwise, warnings will be presented at runtime. You can double-click a breakpoint to find its location in the editor (if applicable). You can also enable or disable breakpoints, delete them, add new ones.

The commands available in the Breakpoints View are listed below.

Command Name Description Availability

Remove Selected Breakpoints

Only remove the selected breakpoint(s).

Context menu and view action Remove All

Breakpoints Remove all breakpoints.

Context

Display the breakpoints supported by

the selected target board. View action

Go to File Go to the corresponding location of the breakpoint in the java editor.

Context menu and view action Skip All Set all breakpoints to be skipped. View action Expand All Expand all the sub items in the view. View action Collapse All Collapse all the sub items in the view. View action

Link with View Change if the breakpoints should be

linked to the Debug View. View action Add Event

(45)

45 Add Watchpoints

(C/C++)...

Add watchpoints (Not supported by the current version. It will be supported in the future versions.)

View action

Show full paths Show the full paths of the breakpoints. View action

Group By...

Allow you to select an alternate

grouping for your breakpoints or create your own.

View action

Select default Working Sets...

Select the default working set so that the new breakpoints will be added into this working set.

View action

Deselect Default Working Set

Deselect the default working set so that the new breakpoints will not be added into any working set.

View action

Working Sets... Open the working sets dialog. View action Enable Change the selected breakpoint(s) to

be enabled.

Context menu Disable Change the selected breakpoint(s) to

be disabled.

Context menu Select All Select all the breakpoints in the view. Context

menu Copy Copy the selected breakpoints to the

system clipboard.

Context menu Paste Paste copied breakpoints into the view. Context

menu Import Breakpoints... Open the import breakpoints wizard. Context

menu Export Breakpoints... Open the export breakpoints wizard. Context

menu Breakpoint

Properties...

Open the breakpoints properties dialog.

Context menu 4.4.2 Debug

1. The Debug view shows the target debugging information in a tree hierarchy.

2. The number beside the thread label is a reference counter, not a thread identification number.

3. The CDT displays stack frames as child elements. It displays the reason for the

(46)

46

Debug view context menu commands

command Name Description

Remove All

Terminated Clear all terminated processes in Debug view.

Use Step Filters Toggle step filters on/off. When on, all step functions apply step filters.

Copy Stack Copy the selected stack of suspended threads as well as the state of the running threads to the clipboard.

Find... Open the debug view element-searching dialog.

Step Into Select to execute the current line, including any routines, and proceed to the next statement.

Step Over Select to execute the current line, following execution inside a routine.

Step Return Select to continue execution to the end of the current

routi e, the follo e e utio to the routi e s aller.

Instruction Stepping Mode

Activate to enable instruction stepping mode to examine a program as it steps into disassembled code.

Resume Select the Resume command to resume execution of the currently suspended debug target.

Suspend Select the Suspend command to halt execution of the currently selected thread in a debug target.

Terminate

End the selected debug session and/or process. The impact of this action depends on the type of the item selected in the Debug view.

Terminate and Relaunch

Select the Terminate and Relaunch command to terminate the selected debug target and then relaunch it.

Restart Select the Restart command to restart the remote debug target.

(47)

47

Relaunch This command relaunches the selected debug target.

Edit... Open the launch configuration dialog, allowing you to make changes.

Edit Source Lookup... Open the source lookup dialog, allowing you to make changes.

Lookup Source Select to force a source lookup to take place. Terminate and

Remove

Terminate the selected debug target and removes it from the view.

Terminate/Disconnect

All Terminate all active launches in the view.

Properties Open the Properties for window showing the process properties.

4.4.3 Disassembly

The Disassembly View shows the loaded program as assembler instructions mixed with source code for comparison. The currently executing line is marked by a yellow arrow and highlighted with green background in this view. You can do the following tasks in the Disassembly view.

(48)

48

Disassembly view context menu commands

Command Name Description Availability

Copy Copy the selected content into the clipboard. Context menu

Select All Select all the content. Context menu

Show Source Show the assembly and its corresponding source code

Context menu and View action

Show Symbols Show function label and symbols Context menu

Preferences Parameter selection. Context menu

Run To Line

Resume program execution until the specific line is reached. This is a convenient way to suspend execution at a line without setting a breakpoint.

Context menu

Move to Line Jump to the line selected in the Disassembly

view. Context menu

(49)

49 selected in the Disassembly view.

Refresh View Refresh Disassembly view. View action Go to Current

Program Counter(Home)

Jump to the current program execution. View action

Link with Active Debug Context

Display the current operating position of the

code View action

Open New

View Open a new Disassembly view. View action

Pin to Debug

Context View action

4.4.4 Expressions

An expression is a snippet of code that can be evaluated to produce a result. The context for an expression depends on the particular debug model. Some expressions may need to be evaluated at a specific location in the program so that the variables can be referenced. You can view information about expressions in the Expressions view.

You can inspect expressions from a scrapbook page, a stack frame of a suspended thread, or other places. The Expressions View opens automatically when an item is added to the view. When debugging a C/C++ program, data that contains variables can be expanded to show the variables and the fields of the variables.

There are many commands available in the Expressions View:

Command Name Description Availability

Show Type

(50)

50 structure

Collapse All Collapse all the Expressions. View action Add Watch

Expression Allow you to add a watch expression.

Context menu and view action Remove Remove the currently selected

expression(s) from the view.

Context menu and view action Remove All Remove all of the expressions from the

view.

Context menu and view action Open New

View Open a new Expressions view. View action

Pin to Debug

Context View action

Refresh Refresh. View action

Select All Select all the variables in the view. Context menu Copy

Expressions

Copy the selected expressions and

variables to the system clipboard. Context menu Find... Open the search dialog to find elements

in the variables view. Context menu

Disable Disable a currently enabled expression. Context menu Enable Enable a currently disabled expression. Context menu Edit Watch

Expression

Allow you to edit existing watch

expression. Context menu

Reevaluate Expression

Reevaluate the currently selected

expression. Context menu

Format

Select a format type. Choices include: Binary, Decimal, Natural, and

Hexadecimal.

(51)

51 4.4.5 Memory

The Memory view of the Debug perspective lets you monitor and modify your process memory. Memory can be displayed in different predefined data formats -- memory

renderings. The CoIDE supports five rendering types -- hexadecimal (default), ASCII, signed integer and unsigned integer.

The Memory view can display and modify the value of selected memory address. The Rendering pane can be configured to display more than two renderings at the same time.

Memory view toolbar icons:

The table below lists the icons displayed in the Memory view toolbar.

Command Name Description

New Tab Click to create a new memory view..

Go Shows the Memory value of the selected address. Import Import memory view from different kinds of files. Export Export memory to different kinds of files.

Open New View Open a new Memory view. Pin to Debug Context

Default Rendering Select default rendering.

Find/Replace Find or replace value from the Rendering pane. Find next Find next one after the command: Find/Replace. Clear Expressions Clear the contents of the address input box.

Memory view context menu:

The context menu inside the Memory view includes:

Name Description

(52)

52 the rendering view.

Endian Toggle between the Little (default) and Big Endian display of memory.

Text Choose the character encoding used to convert memory values into text for display. Choices include: ISO-8859-1 (default), US-ASCII, or UTF-8.

Cell Size Specify the cell size used to display values in the Binary column. Choices include 1, 2, 4 (default), and 8 bytes.

Radix Specify the radix used to display the values in the Binary column. Choices include Hex, Decimal Signed, Decimal Unsigned (default), Octal, and Binary. Columns Specify the number of columns in the Binary column.

Update Mode Select the update mode of the Rendering pane: Always, On Breakpoints, or

Manual.

Copy Copies the selected portion (address, content or binary number) of the Rendering pane to the clipboard.

Reset To Base

Address Reset the Rendering pane to the original base address. Refresh Refresh the Rendering pane.

4.4.6 Peripherals view (CoAssistant)

(53)

53 It displays the register list and views the value of these registers. Register that have been changed are highlighted in the Peripherals view.

(54)

54 4.4.7 Registers

The Registers view of the Debug perspective lists information about the registers in a selected stack frame.

You can view information about the registers in a selected stack frame. Values that have been changed are highlighted in the Registers view when your program stops.

Registers view toolbar icons:

The table below lists the icons displayed in the Registers view toolbar.

Command Name Description

Show Type Name

Configure columns to show type names(unavailable when columns are displayed).

Show logic

structure Show logic structure of the registers. Collapse All Collapse all the registers.

Open New View Open a new Registers view. Pin to Debug

Context

Refresh Refresh

Layout Provides multiple layout options for the Registers view.

Registers view context menu commands:

The Registers view context menu commands include:

Command Name Description

Select All Select all the editor content.

(55)

55 Enable Enable the selected register.

Disable Disable the selected register.

Format Select a format type. Choices include Binary, Decimal, Natural, and hexadecimal.

Find... Open the Find dialog, which allows you to find specific elements within the view.

Change Value... Open the Set Value dialog to change the selected registers value.

Add Register Group

Open the Register Group dialog, which allows you to define a register group that is shown in the Registers view.

Restore Default

Register Groups Restore the original register groups. Add Watchpoints

(C/C++)...

Add watchpoints (Not supported by the current version. It will be supported in the future versions.)

Watch Convert the selected register into a watch expression. 4.4.8 Semihosting view

Semihosting view is used to show the information of the host computer and the ARM input and output communication when debugging.

Semihosting view toolbar icons:

The Semihosting view toolbar commands include:

Command Name Description

(56)

56

Scroll Lock Toggle the Scroll Lock.

Show semihosting info Show semihosting information.

Semihosting view context menu commands:

The Semihosting view context menu commands include:

Command Name Description

Cut Cut the selected content.

Copy Copy the selected content to the system clipboard. Paste Paste the content in the clipboard.

Select All Select all the content.

Find/Replace Find or replace specific element from the Rendering pane. Open Link It always is in an invalid state.

Clear Clear all the content. Scroll Lock Toggles the Scroll Lock. 4.4.9 Variables

The Variables View displays information about the variables associated with the stack frame selected in the Debug View. When debugging a C/C++ program, data that contains variables can be expanded to show the variables and the fields the variables contain.

(57)

57

Variables view

There are many commands available in the Variables View:

Command Name Description Availability

Show Type Name Configure columns to show type names. View action Show logic structure Show logic structure of the Variables. View action Collapse All Collapse all the Variables. View action

Add Global Variables Add Global Variables. Context menu and view action Remove Global

Variables Remove Global Variables.

Context menu and view action Remove All Global

Variables Remove All Global Variables.

Context menu and view action Open New View Open a new Variables view. View action

Pin to Debug Context View action

Select All Select all the variables in the view. Context menu

Copy Variables Copy the selected variables to the system

clipboard. Context menu

Enable Enable a currently disabled variable. Context menu Disable Disable a currently enabled variable. Context menu

(58)

58 View Memory Allow you to create a memory monitor for

the selected variable. Context menu

Format

Select a format type. Choices include Binary, Decimal, Natural, and

hexadecimal.

Context menu

Find... Open the search dialog to find elements in

the variables view. Context menu

Change Value... Allow you to change the value for the

underlying selected variable. Context menu Add

Watchpoints(C/C++) Add Watchpoints(C/C++). Context menu

Watch Allows you to create a watch expression

(59)

59

5

Project Management

5.1

Create Project

CoIDE provides two models for creating projects:

 Create a new project based on your target chip.

 Create a new project based on your target board.

You can select a MCU or a board to create a project and start your embedded development. A board is a set of components including basic components, driver components and app examples. If CooCox supports your target board, it is recommended to create a new project based on your target board. When you select the board, CooCox will show you all the components and examples that suitable for your board. You don t need to do any modification on the examples and components.

5.1.1 Create Project by Chip Model

To create an embedded project using CoIDE by chip model, you only need to perform the following steps:

(60)

60 2. A wizard window will pop up, enter a name for the project (for example: GPIO_Test),

(61)

61 3. Choose a model. For example, select ''Chip Model', then click Next .

(62)

62 5. Click "Finish". CoIDE automatically generates GPIO_Test.coproj file and one

configuration: "GPIO_Test".

(63)

63 7. You can view the result in Component View.

(64)

64 5.1.2 Create Project by Board Model

To create an embedded project using CoIDE by board model, you only need to perform the following steps:

(65)
(66)

66 2. Choose a model. For example, select ''Board Model''. Then click Next .

(67)

67 4. Click "Finish". CoIDE automatically generates Cookie_Test.coproj file and one

configuration: "Cookie_Test".

(68)

68 6. Check a driver component; for example, select 'LCDShield'. CoIDE will automatically

check the components, which are depended by the checked component.

(69)

69 8. You can also click Drivers to view the Driver pages and add the other driver components

to your project.

5.2

Manage Target/Groups/Files and Switch Chip

5.2.1 Target List Management in the Multi-configuration

There is a default configuration target after creating project: Flash configuration target.

(70)

70 In the project view, select the parent directory in which you want to create the Group (If you do not select the parent directory, the default is the root directory of the project), select Add Group in context menu:

(71)

71 Click Add Files menu item to add a link file to the project view:

(72)
(73)

73

5.3

Project configuration

Click Configuration button to open project configuration view.

Configuration area is divided into seven different configuration items: Device, Compile, Link, Output, User, Debugger and Download. The first five configurations are building and linking configurations, the last two are debugging/programming configurations.

5.3.1 Change device

Device can be changed in the latest version of CoIDE.

However, the new chip might not be compatible with component files or other

configuration you checked in the old chip, so errors or warnings could occur. User needs to consider carefully and modify appropriately.

(74)

74 2. Select the target file you need to change, a d the li k Change Devi e .

(75)

75 4. Click OK, then CoIDE will show you the following view. Peripherals view and all the

other views will be associated to the new chip.

5.3.2 Compile configuration

(76)

76 a) FPU: Select MCU type, it includes Not use FPU, FPU soft and FPU hard (Note: If you

select the FPU hard, you need to enable FPU module in the code)

b) Optimization: Select the level of optimization, it includes (None(-O0), Optimize(-O1), Optimize More(-O2), Optimize Most(-O3), Optimize Size(-Os))

2) Include paths area:

Add / ‘e o e header files paths

The added paths will be associated to the current path of the project file to be processed.

3) Defined Symbols area:

Add / Remove pretreatment (macro definition) Symbol 4) Misc Controls area:

User can edit (add) user-defined compile commands. 5) Compile Control String area:

Show compile commands (do not edit) 5.3.3 Link configuration

1) Options area:

a) Use Memory Layout from Memory Window (Checked by default)

Check: Memory Areas will be available; Scatter File will be unavailable.

Mean to use memory Areas memory data, and use IDE default link file (such as link.ld).

(77)

77 The system will add default link.ld/arm-gcc-link.ld and the memory.ld file in the directory of the project file, at the same time, the link file path is filled into the Scatter File area, and user can select a custom link file in the Scatter File area.

b) Discard unused sections

Allow recovery of unused input section. Segments that contain the entrance symbol and all the segments of undefined symbols in the command line will be retained. Segments that contain a dynamic object reference symbol will also be retained. Check this option to reduce code size.

c) Don’t use standard system startup files

Do not use the standard system startup files when linking. The standard system libraries are used in default u less - ostdli or - odefaultli s is used.

d) Library select list

Select link library: Not use C Library, Use base C Library, Use nano C Library*, Semihosting, Retarget

Options: Printf float, Scanf float

Note: Use nano C Library only work if you are using gcc-arm-none-eabi-4_7-2012q4 or higher version. If you choose Use nano C Library , it will provide two more options Printf float and Scanf float . Just like the following picture.

2) Linked Libraries area:

Add/remove library file.

Library is collection of a series of procedures, external function and variables. It is integrated into an application program by the compiler and linker during compilation, and made into a target file and an executable file that can run independently. The CoIDE library is the GCC library.

3) Memory Areas area

The memory area is o l a aila le he Use Me or La out fro Me or Wi do is checked.

a) Select: Debug in Flash (default), Debug in RAM

(78)

78 IROM and IRAM start address and size is automatically changed according to your choice, or you can manually modify these values.

c) In Start line, IROM and IRAM start address can be customized; in Size line, IROM and IRAM size can be customized.

4) Scatter File area

“ atter File area a aila le he u he k Use Me or La out fro Me or Wi do , at

the same time system in project file directory provides a default link file) In the area user can specify a custom link file path.

5) Misc Controls area

Edit link command area, users can add custom link command. 6) Linker Control String area

Cannot be edited, display the link commands information. 5.3.4 Output configuration

The configuration area of output files after building project.

The files generated after building a project will be saved under a directory named with the formation of E e uta le+ / + Na e of E e uta le.

1) Name of Executable: Specify the folder of the output files, the default is the configuration name of the current project configuration;

(79)

79 3) Create Executable(.elf) :: Generate. elf executable files, by check / uncheck decide

whether to generate the HEX or BIN file 4) Create Library(.a): Generate. a library file 5.3.5 User configuration

Customize IDE implementation program Before Build, After Build and Before Debug.

In Before Build/Rebuild areaimplementation program before Build/Rebuild can be

customized; in After Build/Rebuild area implementation program after Build/Rebuild can be customized.

You can directly enter commands, or import. bat or. exe files. After configuration, you need build or rebuild the project.

(80)

80 5.3.6 Debugger configuration

1) Hardware area

a) Adapter: CoIDE supports Colink, CoLinkEx, Nu-Link, ST-Link, J-Link and Stellaris-ICDI debug adapter.

b) Port: CoIDE supports SWD and JTAG debug modes.

c) Max Clock (Hz): You can select the clock frequency from 2M, 1M, 500K, 300K and 100K. 2) Startup area

Need to check or uncheck Run to main. 3) Advance area

a) Reset Mode: There are three reset modes: HW RESET, VECTRESET and SYSRESETREQ. b) Semihosting Enable: Check to enable Semihosting function.

c) CacheRom Enable: Check to enable ROM cache. 4) TargetInfo area

(81)

81 5) J-link Info area

In Adapter configuration items of the Hardware area, some special link such as J-Link Adapter has the particular configuration items, as shown below. It displays J-link debugger configuration information.

(82)

82 1) Auto Download Before Debugging: automatically download programs before

debugging.

2) Verify After Download: verify programs after download. 3) Erase Full Chip: erase the full chip before download.

4) Erase Effected: erasing the affected sectors before download. 5) Do not Erase: do not erase the chip before download.

6) Programming Algorithm Will display Programming Algorithm file. 7) Add..., Remove and Default are used to configure Flash algorithm file.

5.4

Build project

To build a project using CoIDE, you only need to perform the following steps:

(83)

83 2. View compile information in the Console window.

5.5

Open project

(84)

84 2. Find the project files with extension name as ''.coproj'' or ''.cob''.

(85)

85

6

Debug

6.1

Introduction

6.1.1 Enter debug mode

You a li k the De ug utto to enter into debugging mode.

The debug mode has a quiet different interface comparing with edit mode. To learn more, you can go to Chapter 4.4 Debug View

6.1.2 Debug control

The debug execution controls are realized by breakpoints. For example, if you attempt to step over a function and the program hits a breakpoint, it pauses, regardless of whether the function is completed. You can control your debug execution in various ways, but they all rely on a core set of debug controls.

To control the debug session, you can use the buttons in the toolbar of debug mode. Reference: Chapter 4.2.2 Debug Toolbar Actions

6.1.3 Set breakpoints

A breakpoint can be set on an executable line of the program. If a breakpoint is enabled when you are debugging, the execution will be suspended before the code of that line is executed.

To add a breakpoint point, you could double-click the marker bar located in the left margin of the C/C++ Editor beside the line of code where you want to add a breakpoint. A dot will display in the marker bar and in the Breakpoints View, along with the name of the associated file.

6.1.4 Step mode

CoIDE support two kinds of step modes: C code step and instruction step. C code step is the default option.

C code step means executing the lines in c code area one by one, while the instruction step means executing a single assembler instruction at a time.

(86)

86 6.1.5 Debug Example

1. Click Debug button to start debugging.

(87)

87 3. Set a breakpoint by double clicking the marker bar.

(88)

88 5. Step in instruction step mode.

(89)

89

6.2

How to use debug views

The initial debug UI only shows a few debug views, you can open the other debug views through view menu.

6.2.1 Disassembly view

(90)

90 6.2.2 Memory view

To open the Memory view, select View > Memory menu. Input the memory address you want to view, for example 0x20000000, then press Enter or click the Go button.

(91)

91 6.2.3 Variables view

1. To open the Variables view select View > Variables menu. Click Add Global Variables to add a global variable.

(92)

92 3. Right click on the variable and select the Change Value item to change the value of the

variable.

(93)

93

7

Components, Examples and Boards

7.1

Components

In CooCox CoIDE, the reusable code is called component. A component can be a library, or a collection of source files, etc. It must provide useful functions, be easy to understand and use, and most importantly, it can work correctly. Each component has its corresponding code snippets, usage, documentation and comments.

7.1.1 Add Components

(94)

94 2. Check the Component you want to add to your project.

(95)

95 4. You can also click the Driver page to view and add driver components.

(96)

96 6. You can view the Doxygen documents for the component by clicking the related links in

help view.

(97)

97 7.1.2 Refresh and Update Components

Refresh operation will synchronize the component list with remote server. Update operation will update the content of one component to latest. They are different.

(98)

98 2. If you want to refresh driver component list, click Refresh Component List button in

the Driver page of Repository View .

(99)

99 4. The right side of repository view shows the components which can be updated (or

downloaded) with the state Update or Do load .

5. Cli k Update to update the component, and then it turns into A aila le .

(100)

100 7.1.3 Upload Components

If you have a good component, you can upload it through CoIDE. Then, the other engineers over the world could see it after refresh component and benefit from it. Sharing make the world better.

7.1.3.1 Upload Basic Components

What is a basic component? When we introduce COX interface, we used a picture. We will use it again to interpret basic component conception.

Beyond that, Basic components also include components of following categories:  Algorithm

(101)

101 1. There are two entries for uploading basic component, click the Upload Component

button in the Repository View or in the Project menu.

(102)

102 3. Input the necessary information: Component Name , Component Description , and

Keywords .

(103)

103 5. If you click Advance , you can define the Micro Definition for your component. If you

(104)

104 6. Step 2- Classification .

1) Choose the manufacturer, for which your component is suitable. Put your cursor into the textbox, a pop up window will show you all options. If your component is suitable for all manufacturers, you should choose All .

2) Choose the chips for which your component is suitable. Put your cursor into the textbox, after a while, a pop up window will show you all chips according to the manufacturer you selected.

(105)
(106)

106 7. Step 3- Component Dependency .

Component Dependency is a conception that defines the relation of dependency between your component and other components existing in CoIDE. For instance, when you

(107)

107 8. Step 4 - Source Files . Select your component source files from project or choose files

(108)

108 9. Step 5- Document Files and you can edit your component document in HTML Editor . a) The Create APIs Document button: (the second button on the toolbar) can help

(109)

109 b) If your document has already been prepared, you should hoose File System . After all

(110)

110 c) After finish your document, you can click Preview button to preview the effect of your

(111)

111 10. Step 6 - Publish.

Congratulations! You can set your component version and then click Publish to share your component.

7.1.3.2 Upload Driver Components

What is a driver component? When we introduce COX interface, we used a picture. We will use it again to interpret driver component conception.

(112)

112 1. There are three entries for uploading driver components. Click the Upload Component

button in the Repository View or in the Project menu. You can also click Upload Driver

in Project View s Context Menu.

(113)

113 3. Input the necessary information: Driver Name , Driver Description , Communication

(114)

114 4. Step 2 - Supported Device . First, you can click Add to search the devices that

(115)

115 5. The other options for uploading the driver component is the same as uploading the

(116)

116 7.1.4 Modify or Delete Components

(117)

117 2. After you login in, find your basic component in Repository view and right click on the

component, then choose Modify or Delete .

(118)
(119)

119

7.2

Examples

CoIDE integrates many infrastructure components. In order to allow users to use these components more easily, each component can be associated to multiple sample code fragments. You can view them and add them to your project. You also could upload your own examples to the Internet.

7.2.1 View examples

(120)

120 2. The example view will appear and display all the code snippets of the selected

component.

(121)

121 4. The code snippet will display in the code editor viewer.

(122)

122 6. Other examples will be sho i More Examples ie ased on the component

classifications.

(123)

123 7.2.2 Adding code snippet

1. Click add to add the example you are interested in.

(124)
(125)

125 7.2.3 Upload Examples

If you want to upload an example, make sure you have logined in first. You can upload an example for a basic component or a driver component or a board.

7.2.3.1 Entries for Uploading Examples

1. The first entry: Upload Example in the Project Menu.

2. The second entry: Click the component which you want to upload an example for in Components view, then the Examples view will show all examples existed which belong to the component. Click Have a better example snippet? Share with others? to upload an example.

3. The third one, Upload Example in Project View s Context Menu. 7.2.3.2 Upload an Example

(126)

126 2. Input the necessary information: Example Name , Example Description .

Referensi

Dokumen terkait

Kualitas penyesuaian diri dengan teman di sekolah siswa kelas XA SMAN 5 Sigi sebelum diberikan layanan informasi cara penyesuaian diri terdapat 35% siswa

Melalui Dosen ke Sekcilah pada FMIPA Universitas Negeri Yoryakarta. dengan susunanan Parritia dan biaya sebagaimana tersebut

Setelah mempelajari mata kuliah ini mahasiswa diharapkan dapat melakukan pembelajaran keliling dan luas segibanyak, lingkaran, dan tangram dengan sifat-sifatnya sesuai kurikulum

[r]

PEMERINTAH KOTA TANGERANG TAHUN ANGGARAN 2016. :

Kegiatan rutin adalah melakukan pencatatan data yang ada dalam lingkup peternakan tersebut dengan fokus pada bidang manajemen perkandangan yang dikumpulkan

al (2004) dalam penelitiannya mengenai tingkat persaingan dalam industri jasa pendidikan tinggi komputer, hasil penelitian menunjukkan bahwa kondisi persaingan

Komplek Perkantoran Payaloting, Panyabungan, Sumatera Utara, Kode Pos 22978