Download Print this page
Infineon XMC1400 Getting Started

Infineon XMC1400 Getting Started

Boot kit
Hide thumbs Also See for XMC1400:

Advertisement

Quick Links

Getting Started -
XMC1400 Boot Kit
XMC Microcontrollers
Dec 2015

Advertisement

loading

Summary of Contents for Infineon XMC1400

  • Page 1 Getting Started - XMC1400 Boot Kit XMC Microcontrollers Dec 2015...
  • Page 2 Agenda Kit Overview Hardware Overview Tooling Overview Getting Started Resource Listing References Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 3: Kit Overview

    Supported Application Cards examples: Colour LED Card, White LED Card (Application Card is orderable separately or as part of another Application Kit) Colour LED Card XMC1400 CPU Card White LED Card Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 4 Kit Overview (2/2) XMC1400 CPU Card › Micro USB 4 User LEDs On-board COM Connectors and Segger according to pin-out J-Link debugger XMC1400 Edge connector for Application cards Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 5: Hardware Overview

    Hardware Overview (1/2) Connect XMC1400 CPU Card to PC via USB cable › CPU Card is powered up (as indicated by LED on the card) › CPU Card powered via USB cable Note: Supported Application Card may be additionally connected to ›...
  • Page 6 Kit Name Kit Description Order Number KIT_XMC14_BOOT_001 Boot Kit XMC1400 KIT_XMC14_BOOT_001 Infineon parts utilized on Kit Nr. 1: › Infineon Parts Order Number XMC1400 Microcontroller XMC1404-Q064X0200 XMC4200 Microcontroller XMC4200-Q48F256 3V3 regulator IFX25001MEV33 Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 7: Tooling Overview - Boot Modes

    DAVE v4.1.4 download – MemTool – Download MemTool MemTool v4.65.exe download For more information on how to configure the BMI value, please refer to the › XMC1000 Tooling Guide. Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 8 Tooling Overview – DAVE (1/5) DAVE download package is available at: › http://infineon-community.com/LP=400 Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 9 Run DAVE-4.1.4-Setup.exe to install › DAVE IDE and SEGGER J-Link drivers Open DAVE › Update DAVE and DAVE libraries › – Help  Check for Updates – Help  Check for DAVE APP Updates Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 10 (3/5) Install DAVE APPs libraries and Device Description › – Help  Install DAVE APP/Example/Device Library Note: You may skip the above step if you are not using DAVE › APPs Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 11 Tooling Overview – DAVE (4/5) Select DAVE Apps Library Manager in the drop-down menu › Select DEVICE_PACK, Library_DAVEDeviceDescriptions › (XMC1400 Device) and DAVE APPs Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 12 Tooling Overview – DAVE (5/5) Accept terms of the license agreements and click Finish › DAVE APPs libraries and Device Description are installed › Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 13 Create a new “Simple Main” project: – File  New  DAVE Project – Enter project name e.g. “XMC1400_BlinkyMCAN” – Select “Simple Main Project” as Select the device accordingly Project Type Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 14 Set up the System or Main Clock (MCLK) Configure Port pin Configure SysTick and define its exception service routine Configure 2 CAN message objects Configure P4.9 for CAN Tx and P4.8 for CAN Rx Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 15 – MCLK configured via IDIV and FDIV bit fields in XMC_SCU_CLOCK_CONFIG data structure – Initializes clock generators ad clock tree in Main.c to set MCLK = 48MHz and PCLK = 96MHz Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 16 XMC_GPIOC_CONFIG structure. P4.0 will toggle at regular interval. P4.1 will toggle when CAN message transmit and P4.3 toggle when CAN message received. – Configure P4.9 as CAN Tx pin and P4.8 as CAN Rx pin. Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 17 SysTick exception handler is defined in startup_XMC1300.s by using the macro. – Initialize the SysTick in Main.c – Define the SysTick exception handler routine. Every 0.5s, toggle P4.0 and transmit the CAN message, followed by toggle P4.1. Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 18 Getting Started – Example – Blinky based on XMC Lib (6/8) Configure CAN node 1 baudrate and CAN message object – Configure Tx message object and its data bytes – Configure Rx message object Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 19 Blinky based on XMC Lib (7/8) Set CAN Rx interrupt service request number and allocate the message objects to CAN node 1. – Define the interrupt event handler for CAN node Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 20 Build project › Click Wait for Build to finish Download code › Click Switch to Debug perspective Click to run code LED LEDs P40, P41 blinks every 0.5s › Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 21 Create a new “DAVE CE” project: – File  New  DAVE Project – Enter project name e.g. “XMC1400_BlinkyMCAN_withApps” – Select “DAVE CE Project” as Project Type Select the device accordingly Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 22 Set up the System or Main Clock (MCLK) Configure Port pin Configure System Timer and define its exception service routine Configure CAN Node Configure CAN Message Objects, CAN Tx/Rx pin and ISR Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 23 Double-click CLOCK_XMC1 APP and close window – Open APP configuration editor – In APP Dependency view, double-click CLOCK_XMC1 – Configure APP instance – In APP configuration window, set Main clock (MCLK) to 48MHz Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 24 Input/Output and set to open Manual Pin Allocator Initial output level to High –Set Pin Number (Port) to #59 (P4.0) –Save and closed – P4.0 will toggle output at 0.5s interval Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 25 APPs (5/13) Configure Port pin P4.1 and P4.3 using steps described in 2. – P4.1 will toggle output when CAN message transmitted – P4.3 will toggle output when CAN message received Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 26 Open APP configuration editor – In APP Dependency view, double-click SYSTIMER – Configure APP instance – In APP configuration window, under General Settings tab, set System timer tick interval to 100000us (0.1s) Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 27 Getting Started – Example – Blinky based on DAVE APPs (7/13) – Create software timer using SYSTIMER Apps. – Define exception handler routine in Main.c – Define the toggle interval (in usec) Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 28 Open APP configuration editor – In APP Dependency view, double-click GLOBAL_CAN – Configure APP instance – In APP configuration window, under General Settings tab, set Desired CAN frequency (MHz) to 11 Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 29 Under Event Settings, enable Enable node alert – Under MO Settings_Page1, setup a TX message object with 8 data bytes,Identifier value = 0x3FF – Under MO Settings_Page1, setup a RX message object with Identifier value = 0x2FF. Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 30 Double-click INTERRUPT APP and close window – Open APP configuration editor – In APP Dependency view, double-click INTERRUPT – Configure APP instance – In APP configuration window, configure ISR for CAN_NODE_0 as “EventHandler_CanNode_0” Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 31 Assign CAN TX pin to P4.9 and CAN RX pin to P4.8 – Click to open Manual Pin Allocator – Set the desired pins as shown on the right – Save and closed Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 32 Getting Started – Example – Blinky based on DAVE APPs (12/13) – Add the Interrupt Service Routine for CAN_Node_0 to main.c Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 33 Click Build project › Click Wait for Build to finish Download code › Click Switch to Debug perspective Click to run code LEDs P40, P41 blinks every 0.5s › Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 34 References – Where to find XMC Lib documentation? Go to DAVE Version 4 website http://www.infineon.com/dave/v4 Download XMC Lib and unzip file Click on Modules or Files Open XMC1_Peripheral_Library Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 35: Resource Listing

    Resource Listing Kit documentation: › – Boot Kit XMC1400 Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 36 References – Where to find App Documentation? In DAVE , go to Help  Help Contents Expand DAVE Apps  Click on CLOCK_XMC1  Overview Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 37 References – Where to download Example Projects? Example Project library within DAVE DAVE website Example from XMC Lib package Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 38 Select Examples in the Libraries Example Project library within › window  Click Next DAVE Help  Install DAVE APP/Example/Device Library Accept terms of the license agreements  Click Finish Select DAVE Project Library Manager Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 39 Select Archive File  Browse to › downloaded project zip file Go to DAVE Version 4 website http://www.infineon.com/dave/v4 Download DAVE EXAMPLES In DAVE , go to File  Import Click Finish Select DAVE Project  Next Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 40 Example from XMC Lib found within XMC Lib package › package Go to DAVE Version 4 website http://www.infineon.com/dave/v4 Download XMC Lib and unzip Create new “Simple Main Project” file in DAVE Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 41 Click to download and run project on target board Delete main.c in the newly created DAVE project Copy main.c from XMC Lib example into DAVE project Home Home Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 42: Support Material

    PCB Design Data › Videos Technical Videos Infineon Media Center › › Product Information XMC Mediathek › › Videos Contact Forums Infineon Forums › › Product Support Technical Assistance Center (TAC) › › Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 43: Glossary Abbreviations

    Glossary abbreviations Analog Digital Converter › DAVE™ Free development IDE for XMC › Message Object › Pulse Width Modulation › Copyright © Infineon Technologies AG 2015. All rights reserved.
  • Page 44 Disclaimer The information given in this training materials is given as a hint for the implementation of the Infineon Technologies component only and shall not be regarded as any description or warranty of a certain functionality, condition or quality of the Infineon Technologies component.