Infineon TLE9855QX Microcontroller Getting Started
Oglas
Oglas
Evaluation Board and Kit
Getting Started
TLE985x EvalBoard
TLE9855 EvalKit
April 2019
1
2
3
4
Agenda
Evaluation Board and Kit Overview
Product Information and Available Documentation
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
2
TLE985x Overview
Smart Relay IC
DC Motor
Infineon Embedded Power ICs Product Portfolio based on Arm ® Cortex ® -M processor
Smart Half Bridge Smart H-Bridge Driver Smart BLDC Driver IC
TLE9842/3/4
› Window Lift
› Sunroof
› Wiper
2019-04-11
TLE9845/TLE9851
› HVAC Fan
› Engine Cooling Fan
› Fuel Pump
› Water Pump
TLE985x/TLE986x
› Window Lift
› Sunroof
› Wiper
› Power Folding Roof
›
Power Sliding Door
›
Power trunk/ tailgate
TLE987x
› Fuel Pump
› HVAC Fan
› Engine Cooling Fan
› Water Pump
›
Oil Pump
›
Sunroof
›
Wiper
Copyright © Infineon Technologies AG 2019. All rights reserved.
3
Evaluation Board and Kit Overview
TLE985x – Evaluation Board
›
2-Phase N-MOS Bridge
› Single Shunt in GND path
› Integrated LIN transceiver
›
4 push buttons
›
Debug LEDs
›
Onboard Segger J-Link Debugger
› EvalBoard-PC connector: USB
› uIO stick connector
TLE9855 – Evaluation Kit
› 2-Phase N-MOS Bridge
› Single Shunt in GND path
› Integrated LIN transceiver
›
Debug LEDs
›
Onboard Segger J-Link Debugger
› EvalKit-PC connector: USB
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
4
TLE985x EvalBoard Overview
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
5
TLE9855 EvalKit Overview
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
6
1
2
3
4
Agenda
Evaluation Board and Kit Overview
Product Information and Available Documentation
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
7
TLE985x: Documentation
Collaterals and
Brochures
–
Product Brief
–
Selection Guides
–
Motor Drive eBook
Technical Material
–
Datasheet
–
Application Notes
–
Getting Started
–
PCB Design Data
–
User Manual
–
Link to family page
–
Link to Documents
Evaluation Boards
Software & Tools
2019-04-11
–
Evaluation Board
–
Evaluation Kit
–
Link to Boards
–
Config Wizard
–
Keil
μVision5
–
Software Examples
–
Infineon Toolbox
Copyright © Infineon Technologies AG 2019. All rights reserved.
–
Link to Software & Tools
8
Support
Online tools and services
› infineon.com/embeddedpower
1
3
2
2019-04-11
4
5
Copyright © Infineon Technologies AG 2019. All rights reserved.
1
Subscribe to
Newsletter
2
Where to Buy
3
Tools, Finders and Selectors
4
Support
5
Forum
9
1
2
3
4
Agenda
Evaluation Board and Kit Overview
Product Information and Available Documentation
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
10
Toolchain installation: General Overview
› Infineon Embedded Power ICs are supported by a complete development tool chain provided by Infineon and third party vendors. The tool chain includes compilers, debuggers, evaluation boards, LIN low level drivers and configuration tools as well as a variety of example software code.
STEP1 STEP2 STEP3 STEP4
Download and install
Keil µVision5
Download
Infineon Toolbox
Download and install
Segger
J-Link Driver
Download the SDK via
µVision5
Pack Installer
(See step 1)
Arm
® Keil µVision is an integrated development environment which consists of code editor, compiler and debugger.
2019-04-11
Infineon provides the
Infineon Toolbox which is designed to install and use
Infineon plugins and tools.
SEGGER J-Link is a widely used driver for on-board or stand-alone debuggers.
The Embedded Power Software
Development Kit (SDK) is a low level driver library which can be downloaded within “Keil µVision” via the “Pack Installer”.
Copyright © Infineon Technologies AG 2019. All rights reserved.
11
Toolchain installation: 1/4
Keil µVision5
›
Code Editor & Online Debugger
–
Evaluation version can handle up to
32K
›
Download from: https://www.keil.com/demo/ eval/arm.htm
Main Window Pack Installer
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
12
Toolchain installation: 2/4
Infineon Config Wizard
Configuration of chip modules
Device description for TLE985x included
Installation from Infineon Toolbox
TLE985x supported by Keil µVision 5
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
13
Toolchain installation: 2/4
Infineon Toolbox: Config Wizard for Embedded Power ICs:
–
Install the “
Infineon Toolbox
” and start the tool
–
Within the Infineon Toolbox:
1.
Select the tab “Manage tools”, search for “Config Wizard for Embedded Power
ICs” and click “Install”
(*) For more details about the Infineon Toolbox installation, please read the Installation Manual .
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
14
Toolchain installation: 2/4
Infineon Toolbox: Config Wizard for Embedded Power ICs:
2.
Start “Config Wizard for Embedded Power ICs” once to trigger the integration into Keil
3.
Close the Config Wizard and the toolbox
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
15
Toolchain installation: 3/4
Segger J-LINK-Lite driver:
–
Driver for 'on-board' or
'stand-alone' debugger
–
Install driver from: https://www.segger.com/jlinksoftware.html
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
16
Toolchain installation: 4/4
PACK-file TLE985x for µVision5:
–
Device database for all
TLE985x variants
–
Device support for flashing/erasing
TLE985x
–
Device description for TLE985x for
Config Wizard
–
Includes SDK (Software
Development Kit)
–
If the TLE985x SDK is not available in the pack installer, you can load it from a local file using the “File-
>Import” menu.
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
17
1
2
3
4
Agenda
Evaluation Board and Kit Overview
Product Information and Available Documentation
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
18
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
1) Create a new Project
›
Open Keil mdk
›
Go to Project
new µVision Project
› Name project: “TLE9855QX_test”
›
Select Device:
–
Infineon
–
TLE98xx Series
–
TLE985x Series
–
TLE9855QX
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
19
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
2) Configuration of Run-Time Environment
› Expand: “Device”
–
Check: Startup
–
Check: ConfigWizard
› “Sel.” window background is orange
› Press: “Resolve”
› “Sel.” window background is now green
› Expand “SDK”
–
Check “TIMER2x”
› Continue with “OK”
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
20
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
3) Using 'Main' template
› Expand: “Target 1”
› Right click on:
“Source Group 1”
› Choose: Add New Item to
Group “Source Group 1”
› Choose “User Code
Template”
› Expand “Device”
› Choose:
“Startup”
› Continue with “Add”
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
21
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
4) Using Config Wizard V2
›
Open Config Wizard by choosing Tools > Config
Wizard V2
›
Config Wizard will open in a separate window
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
22
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
5) Using Config Wizard V2: Timer2 Configuration
› Open “Timer 2x” section
› Enable “Configure Timer” checkbox
›
Go to:
“Reload / Capture Register”
–
Enter “1000” µs
› Go to: “Interrupt”
–
Enable Overflow Interrupt
–
Type “task_1ms” in
“Call Back” line
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
23
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
6) Using Config Wizard V2: Port Configuration
› Select “PORT” section
› Go to the “P0.2” section
›
Configure pin to
“Output” mode
›
Save with
“File” -> “Save”
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
24
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
7 ) Finish Code in “main.c”
›
Go to Keil MDK
›
Start Timer2 before the
“for(;;)” loop
›
Write function definition of interrupt callback
›
Use API function
“PORT_ChangePin()”
› “Save” and “Build” project
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
25
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
8) Power up Evaluation board
›
Connect micro USB cable
›
Supply board via banana jacks (VBAT, GND)
›
Debug LED lights up
9) Connect Debugger
›
Go to
›
Choose:
–
Debug->use: J-Link
–
Go to “Settings”
› SWD connection established when “IDCODE” is visible
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
26
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
10) Download and run code
› Press: “Load”- button or Press:
“F8”
› “Flash Load finished” is shown in
“Build Output” window
› Press: “Reset” button on
Evaluation Kit
›
LED on Port “P0.2” will light up
›
Port toggle every 1ms
1ms
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
27
Getting Started: Infineon Embedded Power SDK
Keil µVision5 Template
11) Use Runtime Debug
› Enter “Debug Session”
›
Left click at the dark grey area left of the code, to place a
“breakpoint”
› Hit “Run” or press “F5” to start execution
›
Code execution stops at breakpoint
›
In this example:
–
Every time “Run” is pressed:
“P0.2” toggles
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
28
Getting Started: Infineon Embedded Power SDK
Example Code
Infineon Example Code available in “Pack Installer”
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
29
Z8F64770112
2019-04-11 Copyright © Infineon Technologies AG 2019. All rights reserved.
30
Preuzimanje
Oglas