• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Dave 3 presentation
 

Dave 3 presentation

on

  • 1,293 views

Auto Code Generation SW Tool support the XMC4000 family.

Auto Code Generation SW Tool support the XMC4000 family.

Statistics

Views

Total Views
1,293
Views on SlideShare
1,293
Embed Views
0

Actions

Likes
1
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Dave 3 presentation Dave 3 presentation Presentation Transcript

    • Reduce SW Development Time with DAVE™ 3March, 2012
    • Why DAVE™ 3 ? Pressure to XMC 4500 Offering Engineer • Powerful, SW- configurable peripherals • Short time to market • Flexible interconnections • Tough to get familiar and pin mapping options with all the HW details Solution DAVE™323.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 2
    • The DAVE™ 3 Solution What is DAVE™ 3 ?  DAVE™ 3 is a free toolset for automatic code generation  … with Plug in / Interface options for commercial solutions What is DAVE™ 3 good for ?  DAVE™ 3 significantly shortens time and effort for SW development for XMC 4500 Series23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 3
    • With DAVE™ 3 we are Merging the Functionalitiesof earlier DAVE™ Tools into one Tool Free tool chain Low level code generation High level Application code generation23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 4
    • DAVE™ 3 is a Free Toolset for Automatic CodeGeneration SW Components: DAVE Apps DAVE ™ 3 Automatic code generation based on IDE predefined and tested SW components LLD (DAVE Apps) Middle ware Code Engine • Configuration via graphical user RTOS interface …. DAVE™Apps • Generated code can be used via well Any free or Manager documented APIs (like a library) commercial solutions from 3rd party third parties GNU Compiler 3rd party 3rd party Option for third parties to plug in other commercial or free tools Debugger23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 5
    • Concept of DAVE™ Apps  Component based programming  Is a well know methodology to develop SW by re-using existing and tested SW components with a defined programming interface (API)  Application Notes  Reference Code to handle specific uses cases  Apps  Applications for a specific use case for a smart phone or a tablet computer  Can be easily downloaded from the web  DAVE™ Apps are flexible use case oriented SW components to generate code  That can be downloaded from the web  That could be a complete embedded solution/ application  That could be used to compose (model) an embedded solution/ application23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 6
    • Component Based Programming withDAVE™ AppsUser selects and Configuration via API to use the HW Signals (virtual)adds a DAVE App a graphical UI generated code to connect to otherto his project DAVE Apps e.g. PWM AppSelection can be done Configuration User code call functions. Example for Signals:via categories: options …. • Timer overflow• Application use cases •Init parameters { • Compare match• Supported peripherals •Functionality PWM_start(…); • PWM output•…… •…. Set_duty(…);and keyword filter Set_frequency(…); To be connect to other …… Apps to } • Trigger an ADC • Crete a output signal A DAVE™ App is well defined and tested SW component that can be used to build an embedded application on an high, easy to understand abstraction level23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 7
    • Composition of DAVE™ Apps: VirtualSignal connection  The user or a another App may request the connection of two signals Timer overflow PWM App Compare match ADC start ADC App Interrupt Request Apps can be freely Interrupt composed by the user App23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 8
    • PWM Example -1- Graphical UI to define the initial PWM functionality Selecting the DAVE App Selected DAVE App Additional required DAVE Apps will be automatically included23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 9
    • PWM Example -2- Resource Solving and Code Generation Signal Connection Pin Constraints DAVE ™ 3 includes a resource solver that automatically assigns the chip resources considering the available chip resources and connectivity constraints23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 10
    • PWM Example -3- API to control Generated Code the PWM signal23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 11
    • Instances of DAVE Apps  Normally a individual DAVE™ App can be instantiated several times (limitation is essentially the available HW)  User want to use a similar functionality on different HW resources : e.g. CAN App  Some DAVE™ Apps can only be instantiated once (singletons)  Those App are normally limited to a resource that is only available once ¬ E.g. Clock-App23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 12
    • Object Orientation of DAVE™ Apps  The generated code for a DAVE™ App is independent of the instance of the App  Each Instance of a DAVE™ App has a dedicated data structure  Independent of number instance there are two c modules created for each App <appname>.c contains the API <appname>Conf.c contains the data structure for each instance When using the API in the user code the address to the data structure (handle) has to be but in the parameter list Example: status_t = CNT001_GetEvtCountValue(&CNT001_Handle0, &variable_for_countvalue);23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 13
    • How to get DAVE Apps / Selection of DAVE™ Apps  DAVE Apps will be made available App Lib1 App Lib3 as library of DAVE™ Apps from the web or any other mediahttp://dave.infineon.com/Libraries/DAVEApps/XMC4500/v3.0  The user can search for DAVE™ Apps (library of DAVE Apps) from the DAVE™ 3 platform and can Local App store download them to his local drive  The user can select the DAVE™ C:UsersyournameInfineonLibraryStore Apps from his local DAVE™ App store and add them to his project  Searching and selection is support by categories and key word filters  Version management is supported 23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 14
    • Overview of Planned DAVE™ Apps Service Apps Peripherals Specific Apps Middle Ware DMA Basic Applications USB stack, class drivers NVIC Timer TCP/IP stack plus HTTP, I/O CAN FTP, SNMP EBU USIC (I2S, I2C, UART, SPI) SD/MMC, file system,… Flash Simple ADC GUI lib plus driver for intel. LCD CRC Complex ADC FOC motor control Debug Log Delta Sigma demodulator Touch / HMI CMSIS RTOS DAC  Modbus Resolver …. PWM Capture Complete Solutions Counter Web server POSIF Motor control ETH HMI Demos Touch …..23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 15
    • Architecture of the Code Generation Functionality(DAVE™ Apps, Device Description, Code Engine) Code Engine (Mother System) DAVE™ Apps Is the device independent interface to the user to manage Use case oriented SW components all activities A DAVE Expert App consist of Developed as plug in for an Eclipse platform:  Manifest  Required resources (URI) Tasks  Provided resources (to other apps or GUI)  Web Interface to find, download and select Apps  GUI definition based on predefined widgets  Generate UI to configure, connect and compose Apps  Code templates  Project mgmt to add Apps based views to the SW project  Documentation  Resource management to solve resource requests from Apps with the target MCU modeled in the DAVE Expert To develop DAVE embedded Apps a dedicated SDK (SW Device description development kit will be provided)  Data consistency management  Code generation For GUI or other Apps Provided Resources As URI or alias URI DAVE™ Device Description App Use Case Resource and connection model of the target MCU Required Resources As alias URI Content to HW or to other  SFRs and SFRs bit fields in resource groups Apps  Interconnections (signals) and respective constraints  Uniform Resource Identifier (URI) of mapable resource groups23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 16
    • Device Description and DAVE™ Apps  How to get the device description of specific device ?  Devices are loaded like DAVE™ Apps-Lib (entire devices) from the web ¬ http://dave.infineon.com/Libraries/DAVEApps/XMC4500/v3.0/  Relation of device description and DAVE App  A device description represents a defined SW ID ¬ Different devices can have the same SW ID as long as they are SW compatible  A DAVE App can be assigned to several SW IDs  In DAVE3  In the current implementation there is an implicit filter that only the Apps can be selected that are valid for the SW ID of the chosen device23.03.2012 Copyright © Infineon Technologies 2012. All rights reserved. Page 17