developer.bosch.com · %rvfk &rqqhfwhg 'hylfhv dqg 6roxwlrqv _ %&'6 _ %rvfk...

22
XDK WORKBENCH OVERVIEW

Upload: buitram

Post on 01-Jul-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

XDKWORKBENCH OVERVIEW

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.2

Agenda1 Welcome

XDK PerspectiveImporting ProjectsTips and Hotkeys

234

WELCOME

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.4

1. WelcomeHands-On & DocumentionUpon opening the XDK Workbench you will be brought to the Welcome Screen. This

screen is split up into four (4) sections. The first “Hands-On & Documentation” contains quick-links to the help documentation and XDK Perspective, which is the programming interface.

Opens the XDK Perspective to view/edit open projects and flash the XDK

Opens the “Learning” tab of the XDK Website

Opens the XDK API Documentation section of the Help documents

Opens the Eclipse Platform Overview section of the Help documents

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.5

1. WelcomeFeedbackThe feedback sections contains the quick links to the community, where users can ask for

questions, post ideas, share code and find the latest news from the XDK team

Ask questions in the community support section of the community

Share code in the project exchange section of the community

Suggest an improvement to the XDK platform in the Improvement Wishlist secion of the community

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.6

1. WelcomeXDK ExamplesThe XDK Examples sections give a large list of example projects to help the user get

started with the XDK. To open on of these projects simply click on the project in this section. The project will automatically open the XDK Perspective and load the project into the Project Explorer window.

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.7

1. WelcomeCommunity FeedThe Community Feed sections give a quick glimpse into the most recent topics and

questions posted to the XDK Community.

XDK Perspective

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.9

1. XDK PerspectiveOverviewThe XDK Perspective is the default perspective of the XDK Workbench. This contains

four (4) sections. This is the only perspective this document will focus on in this documentation.

XDK Devices Window

Project Explorer Window

Source Editor Window

Information Window

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.10

1. XDK PerspectiveXDK DevicesThe XDK Device window, will display all the XDK devices currently found by the

workbench. This gives the user a one click access to flash a program on the device, boot/re-boot the device, debug the code and connect/disconnect the serial links. By right clicking on the device you also can rename the device or place the device in bootloader mode.

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.11

1. XDK PerspectiveProject ExplorerThe Project Explorer window displays all the projects currently open or closed in the XDK

Workbench. Expanding the project you can navigate though the files contained in the project. The source folder typically holds all the user source and header files, while the SDK is the source code and libraries provide with the workbench where the API functions are located.

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.12

1. XDK PerspectiveProject ExplorerThe Information window by default has three tabs: Console, Progress and Problems. Console Tab – Automatically switches between the XDK Device Console and C/C++ Build Console

XDK Device Console – Displays information from the XDK Device via printf() or assert functions with the source code. This also displays information from the workbench describing the state/status of the XDK

C/C++ Build Console – Displays the information from the compiler during a build/clean operation

Progress Tab – Displays the progress of any operation currently underway (flash, build, etc.) Problems Tab – Displays all errors and warnings currently present in the open projects

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.13

1. XDK PerspectiveProject ExplorerThe source editor window displays the source files of your project and gives you a

platform to write, edit and debug your code.

New Projects andImporting Projects

There are a few methods for creating a new project. Only one method will be highlighted here. It is recommended to follow the steps here in order to insure that the SDK and properties of the project and makefile are properly set up.1. Click on the Open C-Project Wizard Menu Item

2. Enter a project name3. Choose a location4. (Optional) Check Create from Example5. (Optional) Select Example to Start From6. Click Finish7. The project is entered into the project explorer window

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.15

1. Importing ProjectsNew Projects

2345

6

1. Open the Welcome Screen

2. Click on the desired XDK Example project to open

3. Project automatically imports into the Project Explorer window

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.16

1. Importing ProjectsXDK ExamplesOR

It is assumed that the user has already received a project and has stored the project on their computer (unzipped).1. Open the import wizard

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.17

1. Importing ProjectsExternal Project

OR Right Click

2. Expand the General Folder and select “Existing Projects into Workspace” then click Next

3. Browse for your project, check it in the Project window and click Finish

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.18

1. Importing ProjectsExternal Project4. The Project Should now import and show

up in the Project Explorer window

Tips and Hotkeys

Compiling can be a slow process. To speed it up you can enable parallel builds1. Open the projects properties

1. Right Click on the project in the project explorer window2. Select Properties

2. Select the C/C++ Build menu item3. Select the Behavior Tab4. Check Enable parallel build5. Select the number of jobs to run at once6. Click OK

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.20

1. Tips and Hot KeysCompiling Tip

These Hotkeys are helpful for navigating though and understanding the code. F3 – Open Declaration

Used to open the declaration or definition of items in the code Variables Functions Macros Typedefs

F4 – Open Type Hierarchy Give better understanding of specific type definitions

Ctrl+Alt+H – Open Call Hierarchy Used to show where each instance of a function is called

Bosch Connected Devices and Solutions | BCDS | 07/07/2016© Bosch Connected Devices and Solutions GmbH 2016. All rights reserved, also regarding any disposal, exploitation, reproduction, editing, distribution, as well as in the event of application for industrial property rights.21

1. Tips and HotkeysHotkeys

THANK YOU FOR YOUR ATTENTION