DAVE v4 Quick Start 1

Similar documents
XMC1000 / XMC4000 Motor Control Application Kit

Quick Start Tutorial. Presentation Tutorial for a Quick Start Handson Session: Creating a simple Project using PWM and Count Apps.

Using DAVE with MDK Version 5

DAVE Software Development Kit overview. Preparing the workbench. Creating a simple APP. Step 1: Create a new APP project

Embedded Component Based Programming with DAVE 3

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

Assignment 09. Problem statement : Write a Embedded C program to switch-on/switch-off LED.

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

Hitchhiker's Guide to CodeWarrior EE371, EE475 Fall 2005

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

XConsole GUI setup communication manual September 2010.

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

UM0834 User manual. Developing and debugging your STM8S-DISCOVERY application code. Introduction. Reference documents

Installing LearningBay Enterprise Part 2

3. Programming the STM32F4-Discovery

Example Connection between USB Host and Android

An Introduction to MPLAB Integrated Development Environment

Option nv, Gaston Geenslaan 14, B-3001 Leuven Tel Fax Page 1 of 14

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Introduction to the use of the environment of Microsoft Visual Studio 2008

Step by Step. Use the Cloud Login Website

Using Microsoft Visual Studio API Reference

Installing and using XAMPP with NetBeans PHP

For Introduction to Java Programming, 5E By Y. Daniel Liang

Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers. User s Guide

Programming with the Dev C++ IDE

PP8X Printer Driver Installation Instruction

ERIKA Enterprise pre-built Virtual Machine

DRV8312-C2-KIT How to Run Guide

SIM900 Eclipse environment install Application Note_V1.00

DEPLOYING A VISUAL BASIC.NET APPLICATION

AUDITVIEW USER INSTRUCTIONS

CodeWarrior Development Studio for Freescale S12(X) Microcontrollers Quick Start

2. Installation Instructions - Windows (Download)

UM0985 User manual. Developing your STM32VLDISCOVERY application using the IAR Embedded Workbench software. Introduction

NAS 225 Introduction to FTP Explorer

Introduction to Eclipse

How to Install Eclipse. Windows

Creating a Project with PSoC Designer

DAVE Usage with SVN. Presentation and Tutorial v 2.0. May, 2014

Frog VLE Update. Latest Features and Enhancements. September 2014

UML - Getting Started EA v4.0

Page 1 S5.5 Monitoring Software Manual Rev 1.2 for Software Ver 1.0

Getting started with software and firmware environments for the STM32F0DISCOVERY kit

UM1790 User manual. Getting started with STM32L053 discovery kit software development tools. Introduction

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

ClickView 24-7 Cloud User Manual

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

DS-5 ARM. Using the Debugger. Version 5.7. Copyright 2010, 2011 ARM. All rights reserved. ARM DUI 0446G (ID092311)

Virtual Office Remote Installation Guide

UM1680 User manual. Getting started with STM32F429 Discovery software development tools. Introduction

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Introduction to Windows

How to download your NI Press ebook for Nook Users

UM1969 User manual. Getting started with STM32F746G discovery software development tools. Introduction

Microsoft Visual Studio 2010 Instructions For C Programs

DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB

Managing Contacts in Outlook

WebSphere Business Monitor

Instructions for Importing (migrating) Data

XMC 750 Watt Motor Control Application Kit. Getting Started PMSM Motor Sensorless dual shunt Field Oriented Control (FOC) (PMSMFOCSL02)

KI6501 Data Manager. Software User Manual

Office of State Aid Bridge Inventory System 8.1

Tutorial for MPLAB Starter Kit for PIC18F

Macs are not directly compatible with Noetix.

TouchKit Software User manual for Windows 7 Version:

Windows 7 for beginners

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

Using HiTOP with the HOT16x Hands-On Training Materials

Procedure for updating Firmware of EZ4 W or ICC50 W

Before you can use the Duke Ambient environment to start working on your projects or

1.0. User s Guide & Manual USB 2.0 FLASH DRIVE

Android Development Setup [Revision Date: 02/16/11]

MSP-EXP430G2 LaunchPad Workshop

Building a Simulink model for real-time analysis V Copyright g.tec medical engineering GmbH

Using Keil software with Linux via VirtualBox

Guide for Remote Control PDA

EasyC. Programming Tips

Cosmic Board for phycore AM335x System on Module and Carrier Board. Application Development User Manual

Getting Started with Kinetis SDK (KSDK)

PMS. Energy management and monitoring software. Installation and operation instructions

Getting Started with the LabVIEW Embedded Module for ARM Microcontrollers 1.0 For the Keil MCB2300

OUTLOOK WEB APP (OWA): MAIL

Download Google Drive to windows 7

Firmware & Software update procedures Amicroe TouchTAB IV.

Introduction to Android Development

Testing Robots Using the VEXnet Upgrade

Analog Devices Welcomes Hittite Microwave Corporation NO CONTENT ON THE ATTACHED DOCUMENT HAS CHANGED

Lab 3: Introduction to Data Acquisition Cards

Disabling Microsoft SharePoint in order to install the OneDrive for Business Client

ezsystem elab16m Project 1F: Alarm System (Full Project description)

LSR4300 Control Center Software

How to develop your own app

Section 1 Introduction to the AT91SAMD20 and the Development Environment

CooCox CoIDE UserGuide Version: page 1. Free ARM Cortex M3 and Cortex M0 IDE: CooCox CoIDE UserGuide

A Tutorial on installing and using Eclipse

COMPUTER BASICS. Gordon Kelley Academic Success Center Vines Building, Room

Transcription:

DAVE v4 Quick Start 1 Simple LED Blinky via a generated PWM Signal February, 2015

Learning Outcome Learn the basic principles of DAVE TM version 4: Installation Required XMC kit Create DAVE TM Project GUI based DAVE TM APPs configuration Graphical pin mapping One touch code generation Download and debug code DAVE TM updates Expert support Page 2

DAVE installation and update Easy installation 1. Go to www.infineon.com/dave and download DAVE version 4 2. The downloaded zip file contains all required installation instructions, please follow the instructions described in section 1 3. Then follow the update instructions described in section 2 4. After installation, DAVE v4 can be started from the desktop Page 3

Required XMC kit In this tutorial we use the XMC 2Go kit equipped with an XMC1100-Q024F0064 and a Segger J- Link on-board debugger (OBD) Also any other XMC1000 or XMC4000 kit can be used. In this case the manual pin assignment described on page 17 and 18 needs to adjusted and the pin that is connected to an LED of the respective board has to be assigned Page 4

Starting DAVE TM for the first time Start DAVE Enter path to workspace folder Please chose a new workspace folder, not an existing workspace folder form an earlier DAVE version Page 5

DAVE TM CE Workspace Menu and shortcuts Perspectives Project explorer App configuration and source code editor App Dependency Tree App Dependency and Connectivity Page 6

Tool Panel Report (Resource Overview) Build Active Project Rebuild Active Project Manual Pin Allocator Global Interrupt Generate Code BMI Get Set Add New App Pin Mapping Perspective Start Debugger 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 7

Create a new DAVE TM CE Project (1/2) Create DAVE TM Code Engine (CE) Project 1. Go to File New DAVE Project 2. Select DAVE CE Project 3. Click Next Note, a DAVE CE project is required to use DAVE APPs. Page 8

Create a new DAVE TM CE Project (2/2) Select the appropriate microcontroller For XMC 2Go kit used in this tutorial XMC1100-Q024F0064 For a different XMC kit please select the XMC microcontroller that is populated on your board More optimization options available under Project Properties Page 9

Project View Page 10

Add DAVE TM APP from the local library store Add DAVE TM APP to project 1. Click in Tool Panel, or 2. DAVE APP New APP 3. Type PWM in the search filter field, and double-click PWM APP Page 11

More project views All APPs included in the Project are displayed in different views: The number behind _ identifies the instance of an APP Page 12

DAVE TM APPs configuration view Either 1. Right-click APP name in the App Dependency Tree view 2. Select Configure App Instance Or Double-click APP name in the App Dependency view Page 13

PWM APP configuration Configure PWM APP via graphical user interface editor 1. Set PWM Frequency to 1 Hz 2. LED blinks every 0.5 second 3. Check Start Timer After Initialization Page 14

Rename the Instance Label of the PWM APP Right click on the PWM APP Select Rename Instance Label Type in: MyLED Now MyLED can be used as handler in the APIs of the PWM APP to reference this instance Page 15

Hint: Additional Information about APPs Reference to DAVE TM APP information 1. Double-click DAVE TM APP (e.g. PWM_0) in App Dependency View 2. Click Help icon Page 16

Pin Mapping for PWM App (1/2) Assign signal to pin with graphical pin mapping view 1. Click to open Pin Mapping Perspective 2. Under Virtual Pin List, select PWM Output Pin Green pin: All possible pins for selected signal Blue pin: User assigned pin Page 17

Pin Mapping for PWM App (2/2) To assign pin: Right-click on a green pin Assign To unassign pin: Right-click on a blue pin Unassign Assign PWM Output Pin to User LED1 at P1.0/#14 Right-click on pin 14 Assign In case you use a different board / device please select a pin that is connected to a LED Page 18

Hint: Check correct Resource Mapping Check resource mapping Click to open Reports in DAVE CE perspective 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 19

Generate Code and add a few lines of code to change the Duty Cycle of the PWM and compile code One touch code generation 1. Click in the tool panel 2. Generated code can be found under C/C++ Projects window, DAVE Generated Open main.c and Add the following lines PWM_SetDutyCycle(&MyLED, 1000); // set duty cycle to 10% PWM_SetDutyCycle(&MyLED, 9000); // set duty cycle to 90% Note: you may use the eclipse code completion features (SRTG SPACE) to support correct coding. Start Compiler tools to build the project Click in the tool panel 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 20

Check compiler results Ensure that Compiler finished building in Console window 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 21

The Project Folder Folder which is used exclusively by DAVE TM Generated code goes in here App Code Templates, Manifest Compiler output files CMSIS, Low Level Drivers Linker Script file 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 22

Flash and Debug (1/3) Ensure the Debugger of the XMC 2Go Kit is connected to your PC via USB XMC1100 Microcontroller Micro USB Debugger 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 23

Flash and Debug (2/3) Start Debug Session Click in the tool panel Create a new Debug Configuration Double-click GDB SEGGER J-Link Debugging Segger J-link Driver software 4.96h or above needs to be installed 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 24

Flash and Debug (3/3) Click Debug The flashing process is started and DAVE automatically switches to Debug Perspective Hint: To switch to Project Workspace Perspective, click DAVE CE at upper right corner of window 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 25

The Debug Perspective (1/6) Debug Workspace Debugger actions Inspection controls Breakpoint automatically set in main() Device memory Page 26

The Debug Perspective (2/6) Debug Window Debug Session information 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 27

The Debug Perspective (3/6) Start Program Click on the Resume button to start code execution User LED1 (P1.0) on XMC2Go board should be blinking User LED1 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 28

The Debug Perspective (4/6) Breakpoints To place a breakpoint, double-click on the blue bar at the line of code 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 29

The Debug Perspective (5/6) Single Step After placing breakpoint, click on Step Into or Step Over button to do single stepping Step into (F5) Step over (F6) 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 30

The Debug Perspective (6/6) End Debug Session Always end a debug session by clicking the Terminate Button 2014-05-05 Copyright Infineon Technologies AG 2014. All rights reserved. Page 31

One-click DAVE TM update DAVE TM APPs and device support can be updated locally Re-installation not required Update DAVE TM system Help Check for Updates Update DAVE TM APPs and device support Help Check for DAVE App Updates Page 32

Expert support Easy access to DAVE TM technical support, downloads and information updates DAVE TM Forum Page 33

Page 34