Infineon Technologies Ag · XETR:IFX
Infineon Technologies — Technical Presentation (June 2014)
39 slides from Infineon Technologies's technical presentation, June 2014
Slide 1: Quick Start Tutorial
Quick Start Tutorial Presentation Tutorial for a Quick Start Hands- on Session: Creating a simple Project using PWM and Count Apps. Version 2.1, June, 2014
Slide 2: Scope of the Project for this Hands-on Tutorial
Scope of the Project for this Hands-on Tutorial Changing the brightness of an LED with the PWM App PWMSP001 The interrupt on timer period match changes the brightness of the LED by changing the duty cycle of the PWM Counting of the PWM pulses with the count App CNT001 The interrupt on the co
Slide 3: Used HW Setup for this Hands-on Tutorial
Used HW Setup for this Hands-on Tutorial J-Link on board XMC4500 CPU debugger (OBD). board. USB connection form the PC, the board is also powered via USB. The LED of the CPU board is used to demo the functionality of the PWM and Count App. It is also possible to use a different XMC kit (e.g. Relax k
Slide 4: DAVE Development Platform
DAVE™ Development Platform Before starting this tutorial please download and install DAVE. The download package contains detailed installation instructions. Video tutorials about installations can be found here. Please be sure that you always use the latest version of DAVE This tutorial was create
Slide 5: Steps to Accomplish this Tutorial
Steps to Accomplish this Tutorial Test of your DAVE installation with an EasyStart project Download DAVE Apps from the web Create a DAVE CE project Select required DAVE Apps Configuration of DAVE Apps Signal Connection Manual Pin Assignment Resource Solving Code Generation Coding
Slide 6: Create an EasyStart Project to check the HW Setup
Create an EasyStart Project to check the HW Setup Create an EasyStart Project and check that the HW and the Debugger setup is OK The EasyStart project is a blinky project that can be used to get easily a first program running. 1 Press: >File >New >DAVE Project 3 2 Enter project name: 4 MyEasyStart 7
Slide 7: The EasyStart Project is now added in the Workspace
The EasyStart Project is now added in the Workspace The project contains the : • Startup files 1 • NewLib stubs • EasyMain.c and The EasyMain.c can be GPIO.h regarded as template • Linker script file for the first simple programming trials with The new created the XMC4500 without project is the acti
Slide 8: Starting / Launching the Debugger
Starting / Launching the Debugger After successfully building of the project the debugger can be started (ensure that the board is connected and correctly and the J-Link debugger device is ready to use). 1 1 Click on the Debug button to start the debugger 2 3 The first time when the debugger is laun
Slide 9: How to operate the TASKING debugger
How to operate the TASKING debugger After the debugger has loaded the image into the Flash the Eclipse perspective is changed to the TASKING Debugger perspective. 1 When pressing Resume, the program starts and the LED on the Hexagon CPU board should blink. Variable View Debug view for Breakpoint vie
Slide 10: Download of DAVE Apps from the Web
Download of DAVE™ Apps from the Web When using the DAVE installer then a complete set of DAVE Apps libraries has been already installed. In spite we recommend to do the following steps to ensure that the most current versions of DAVE Apps libraries are installed. 1 1 2 Press: >Help >Install Apps/Exa
Slide 11: Alternative Network Connections Settings / Manual Download of DAVE Apps
Alternative Network Connections Settings / Manual Download of DAVE™ Apps Depending on security / firewall settings of the LAN, connection to the web may fail. In this case changing of the Eclipse Network settings may help. 1 1 2 Press: >Window >Preferences. 3 Press: >General >Network Connections. 2
Slide 12: Updates of the DAVE App Library
Updates of the DAVE App Library Infineon is continuously releasing new DAVE Apps or updating existing DAVE Apps (new device support or bug fixing). The policy for updates of DAVE Apps is to keep full upward compatibility to earlier versions. To update to the latest DAVE App library press “Chec
Slide 13: Downloading of DAVE Example Projects that use DAVE Apps
Downloading of DAVE™ Example Projects that use DAVE Apps Press: ->Help ->Install App Library. 1 Select: DAVE Project Library Manager. 1 Click here in case there is not such 2 an entry and activate the links. 2 Select the Project 3 PWMSP001_CNT001_Example1. 4 Press Next. Follow the further instructio
Slide 14: Creating a new Project; DAVE CE Project Type
Creating a new Project; To work with DAVE™ Apps a DAVE CE Project Type is required 1 Create a new DAVE project as described on page 5 2 But select the DAVE CE Project type. 2 You may choose a different project name than here if you have downloaded the reference project with the same name as describe
Slide 15: Selecting the Required DAVE Apps
Selecting the Required DAVE Apps For the project functionality described on page two, we essentially need a PWM App a Count App and Interrupt (NVIC) Apps. 1 Double click:PWMSP001. 2 Double click: CNT001. 1 3 Select for the requested CCU4GLOBAL: Existing Apps. 4 Press: OK. 2 5 Double click: NVIC002 a
Slide 16: Old Versions of DAVE Apps
Old Versions of DAVE Apps When the option “Show Latest Version Only” is checked only the latest installed version of DAVE Apps are shown. If not checked all installed DAVE Apps versions are shown. Older versions of DAVE Apps might be used if the existing project uses already an older version. It is
Slide 17: S/W App Connectivity View and App Dependency TreeView
S/W App Connectivity View and App Dependency TreeView All the DAVE™ Apps we have added to the project (double click) are visible in the S/W App Connectivity View and App Dependency TreeView, in addition all DAVE™ Apps are shown that are required by the DAVE Apps we have added. We will see later the
Slide 18: Deleting / Removing of DAVE Apps
Deleting / Removing of DAVE™ Apps If a DAVE™ App is not required any more or it has been added to the project erroneously or if it should be replaced, it is possible to remove a DAVE™ App from the project. Note, it is not required to exercise the DAVE™ App remove function for successfully accomplish
Slide 19: Help Information about DAVE Apps
Help Information about DAVE™ Apps Select: >Help >Help Contents 1 To open the help content that contains among other topics also a chapter for DAVE™ Apps. 2 For Each DAVE™ App there is a dedicated documentation, that includes all information to uses the DAVE App properly. 3 The DAVE™ App specific doc
Slide 20: Configuration of the PWMSP001 App
Configuration of the PWMSP001 App The User Interface to configure the PWMSP001 App can be opened by double click on the App or via right mouse option of the App: UIEditor 4 We will make the following changes to the default settings: 1 Change µsec. PWM resolution to about 10 1 2 Change PWM frequency
Slide 21: Configuration of the Count App and Clock App
Configuration of the Count App and Clock App Double click on CNT001 App. 2 1 Count match event is set to 400. Interrupt event signal for count 2 match is enabled . 1 The UI of the CLK001 App allows various clock initializations, we keep the default value: External oscillator is 12 MHz (CPU board)
Slide 22: Adding User Labels to the DAVE Apps
Adding User Labels to the DAVE™ Apps One of the DAVE™ App right mouse click options is to add a user label to the DAVE App. This feature helps to identify the right DAVE™ App and right instance in case of configuration, signal connection and manual pin assignment. We will add user labels to the NVIC
Slide 23: Configuration of the NVIC Apps
Configuration of the NVIC Apps Double click on NVIC002, PWM_Period App 1 2 3 1 Set the priority of the PWM period match to a higher priority (62). (lower number = higher priority) Double click on NVIC002, CountMatch App 3 5 The function name for the interrupt handler has to be added. This name has t
Slide 24: Signal Connection: Period Match to Interrupt
Signal Connection: Period Match to Interrupt One of the advanced features of DAVE™ 3 is the option for the user to connect HW*) signals between different DAVE™ Apps Animportant use case for this feature is the connection of an event signal with the interrupt signal of an NVIC (interrupt) App W
Slide 25: Signal Connection: Count Event Match to Interrupt
Signal Connection: Count Event Match to Interrupt The Event Count Match signal of the CNT001 App has to be connected to another instance of the NVIC002 App (the instance with the user label “CountMatch”). The procedure is similar as outlined on the previous page before: 1 Right mouse click on the DA
Slide 26: Signal Connection: PWM Status Signal as input for the Count App
Signal Connection: PWM Status Signal as input for the Count App The PWM status signal of the PWMSP001 App has to be connected to the input signal of the CNT001 App. The procedure is similar as outlined on the previous page before: 1 2 1 Right mouse click on the DAVE™ App that provides the source sig
Slide 27: H/W Connectivity View
H/W Connectivity View In addition to the S/W App Connectivity View and App Dependency TreeView shown in page 17 there is another graphical view for DAVE Apps called H/W Connectivity View. The H/W connectivity view shows the connection of signals / events between DAVE Apps. Activation of the H/W Conn
Slide 28: Manual Pin Assignment
Manual Pin Assignment 1 The resource solver integrated into DAVE™ assigns resources that are required by the DAVE™ Apps to the available chip resources The resources solver ensures that the resources assignments are conflict free and all connectivity requirements are fulfilled In particular fo
Slide 29: Manual Pin Assignment
Manual Pin Assignment 2 For each DAVE App that requires a pad / pin resource the manual pin assignment functionality is provided (e.g. right mouse click of the App) In our cases the PWMSP001 App requires the pad /pin resource to output the PWM signal Alternatively, if certain flexibility is re
Slide 30: Resource Solving and Code Generation
Resource Solving and Code Generation The resource solver is a very innovative feature of DAVE™ The resources solved ensures that the resources groups required by the DAVE™ Apps, including the signal connections and the pin constraints are assigned to the available peripherals and system resource
Slide 31: The Generated Library Code
The Generated Library Code The generated library code is added to the project in the project folder: “Dave\Generated” The include files are located under Dave\Generated\inc The c source files are located under Dave\Generated\src Each DAVE App has its own sub folder in the “inc” and the “src” folders
Slide 32: Using the API from the DAVE Apps to implement the required SW functionality
Using the API from the DAVE™ Apps to implement the required SW functionality The Main.c that has been created by selecting the DAVE CE project type upon new project creation contains already includes and init functions to uses the API of the used DAVE™ Apps. 1 Double click to open Main.c in the edit
Slide 33: Adding User Code in Main.c: Global variables
Adding User Code in Main.c: Global variables This first part of Main .c shows all global variable definitions used in this project. Type unit32-t is declared in stdint.h. PWMSP001_TimerRegsType is declared in PWMSP001.h. With the right mouse option “Open Declaration” the respective header file can b
Slide 34: Adding User Code in Main.c: Function main
Adding User Code in Main.c: Function main 3 The function main in Main.c 1 2 1 We have to start the PWM and count App because we didn’t check the option “start after initialization” in the UI to configure the DAVE App. The first parameter of the function is in most of the cases the pointer to the dat
Slide 35: Adding User Code in Main.c: Interrupt Handlers for PWM Timer Period Match
Adding User Code in Main.c: Interrupt Handlers for PWM Timer Period Match Logic to change the brightness. Here we have to define a function with the same name as defined in the configuration UI of the NVIC002/0 App. 2014-03-18 Copyright © Infineon Technologies AG 2014. All rights reserved. Page 35
Slide 36: Adding User Code in Main.c: Interrupt Handlers for Count Event Match
Adding User Code in Main.c: Interrupt Handlers for Count Event Match Logic to change direction of the brightness change. Here we have to define a function with the same name as defined in the configuration UI of the NVIC002/1 App. 2014-03-18 Copyright © Infineon Technologies AG 2014. All rights rese
Slide 37: Code Completion Feature in the Eclipse Editor
Code Completion Feature in the Eclipse Editor to support using the APIs of the DAVE™ Apps correctly 1 Type in the first letters of the DAVE™ App 1 from which an API should be used (all API start with the name of the respective DAVE™ App). 3 Press Ctrl plus Space, then a window with all 2 options to
Slide 38: Building,…
Building,… The complete DAVE project can also be Downloaded as zip file . Uses the keyword “Tutorial” to select this projects from the list of all available example projects. Instructions to import the downloaded zip file to your workspace: -> File ->Import ->Infineon ->DAVE Project ->Next Then chec
Slide 39: Infineon
Cinfineon Innovative semiconductor solutions for energy efficiency, mobility and security.
Infineon Technologies — Technical Presentation (June 2014) on 6ix