SlideShare a Scribd company logo
Infineon Flash
Programmer Memtool
for XMC1000 family
XMC™ microcontrollers
July 2016
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
2
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
3
Copyright © Infineon Technologies AG 2016. All rights reserved.
Memtool: Overview and features
› Overview
– Memtool is a free of charge software designed for on-chip flash programming
– Memtool V4 is supporting the XC800, XC166, XE166, XC2000, TriCore™, XMC4000
family and the XMC1000 family
– Memtool V4 supports programming via UART (ASC) Boot loader for XMC4000 and
XMC1000
› Features
– Erasing the entire memory module
– Erasing selected sectors of the memory module
– Loading Intel Hex files
– Programming all or selected portions of the file into the memory module
– Comparing all or selected portions of the file to the current contents of the memory
module
– Setting and resetting the Chip/Sector Protection (On-Chip only)
– BMI configuration
4
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
5
Copyright © Infineon Technologies AG 2016. All rights reserved.
About this tutorial
› Purposes
– Concentrates on usage of Memtool to program on-chip flash in XMC1000
family microcontrollers
– Declares the options and functions provided in Memtool user-interface in
details
– Declares the different target configurations and hardware setup
– Provides step-by-step how to use Memtool with example
› Contents
– Part 1: Memtool user interface
– Part 2: Target configurations in detail
– Part 3: Examples
– Part 4: Change BMI value in Memtool
– Part 5: Problems and solutions
› Prerequisites to follow the tutorial
– Install Memtool v4.6.5 or higher
Download Memtool v4.6.5
6
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
7
Copyright © Infineon Technologies AG 2016. All rights reserved.
Memtool main window
After opening Memtool v4.6.5 following window is displayed:
File operation,
Target/Device configuration
Open Hex file
for flash
programming
Information about target configuration
Connect target
Note: Before clicking Connect, the target and device must be configured
8
Copyright © Infineon Technologies AG 2016. All rights reserved.
Target configuration options
Using Bootstrap Loader:
› ASC BSL bootstrap mode
(no debug)
– Hardware options
– COM/VCOM adapter (OBD J-link, FTDI
chip…)
– DAP miniWiggler
Using Debug Interface
› SWD, SPD bootstrap mode (debug)
– Hardware option
– DAP miniWiggler
Memtool provides two options to connect to the target:
UI in Memtool to select one of
the two options
9
Copyright © Infineon Technologies AG 2016. All rights reserved.
Concept for target configuration
› For all target MCUs there are
default target configurations
available to be chosen
› The desired target configuration
can be selected using two steps:
1. First, choose connection option
according to BMI boot mode
(ASC BSL or SWD) in MCU
device
2. Second, choose the target
configuration file based on
target device and used
interface adapter
› Save the target configuration file
Available default target
configurations
BMI?
ASC BSL
(no debug)
SWD/SPD
(debug)
Choose configuration file
based on device and
interface adapter
Save target
configurations
10
Copyright © Infineon Technologies AG 2016. All rights reserved.
Flow of target configuration selection
› Open Target menu and select
Change
› Select already existing target
configuration by clicking Default
› Go to XMC1000 and open the
menu
› Select target configuration option
based on BMI value in device:
1. For ASC BSL mode, select
Starter Kits (Bootstrap
Loader)
2. For SWD/SPD mode, select
Starter Kits (DAS)
› Select the target configuration
file according to device and
interface adapter
(VCOM/miniWiggler)
› Finish and Save the target
configuration file
11
Copyright © Infineon Technologies AG 2016. All rights reserved.
Set hardware connection interface (1/2)
Set hardware connection
interface: Target -> Setup
If Starter kits (Bootstrap Loader) is selected as target configuration, there are
two choices of hardware connection interfaces depending on hardware used:
1. COM/VCOM interface: JLink CDC UART Port
2. DAP miniWiggler: UART-over-SPD via UDAS
Starter kits (Bootstrap Loader):
12
Copyright © Infineon Technologies AG 2016. All rights reserved.
Set hardware connection interface (2/2)
Set hardware connection
interface: Target -> Setup
Starter kits (DAS):
If Starter kits (DAS) is selected as target configuration, DAP miniWiggler
needs to be used:
› Use Debug Port: Serial wire debug
13
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
14
Copyright © Infineon Technologies AG 2016. All rights reserved.
Target configuration
Target configuration is the key step to make sure that the connection with
board is successful. There are three configurations for each XMC1000
device depending on board kit used:
1. Boot Kit
2. Evaluation boards with TSSOP38 package
Configuration for
Infineon Boot Kit
Configuration for Infineon
evaluation board with
TSSOP38 package
Note: These configurations
are redundant, and will be
removed in new Memtool
release
15
Copyright © Infineon Technologies AG 2016. All rights reserved.
Target configuration for XMC1100
Minimon/ASC:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1100 must be configured as ASC
BSL bootstrap mode
3. Connection interface: VCOM in OBD
Segger debugger or miniWiggler
Minimon/UART-over-DAS:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1100 must be configured as ASC
BSL bootstrap mode
3. Connection interface: miniWiggler
DAS:
1. Connect with target board using DAS
server
2. XMC1100 must be configured as User
Mode (Debug) SWD0/SWD1
3. Connection interface: miniWiggler
16
Copyright © Infineon Technologies AG 2016. All rights reserved.
Target configuration for XMC1200
Minimon/ASC:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1200 must be configured as ASC
BSL bootstrap mode
3. Connection interface: VCOM in OBD
Segger debugger or miniWiggler
Minimon/UART-over-DAS:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1200 must be configured as ASC
BSL bootstrap mode
3. Connection interface: miniWiggler
DAS:
1. Connect with target board using DAS
server
2. XMC1200 must be configured as User
Mode (Debug) SWD0/SWD1
3. Connection interface: miniWiggler
17
Copyright © Infineon Technologies AG 2016. All rights reserved.
Target configuration for XMC1300
Minimon/ASC:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1300 must be configured as ASC
BSL bootstrap mode
3. Connection interface: VCOM in OBD
Segger debugger or miniWiggler
Minimon/UART-over-DAS:
1. Connect with target board using ASC
BSL bootstrap loader
2. XMC1300 must be configured as ASC
BSL bootstrap mode
3. Connection interface: miniWiggler
DAS:
1. Connect with target board using DAS
server
2. XMC1300 must be configured as User
Mode (Debug) SWD0/SWD1
3. Connection interface: miniWiggler
18
Copyright © Infineon Technologies AG 2016. All rights reserved.
Setup connection: Minimon/ASC with VCOM
If target is configured as Minimon/ASC, both JLink VCOM
and miniWiggler can be used to connect with target
board. If VCOM is used, Jlink CDC UART Port must be
selected. Click Refresh to see the VCOM port.
Note:
› If VCOM is selected, miniWiggler is not allowed to
connect with board
› Device must be configured as ASC BSL Mode
› Before clicking Connect, the board must be reset by
power-off and power-on
› Connection hardware setup: Minimon/ASC with VCOM interface on board
Target configuration: Minimon/ASC
Select VCOM
Select Baudrate
Note: Maximal baudrate is
28800. K-Line is not supported
for XMCTM.
19
Copyright © Infineon Technologies AG 2016. All rights reserved.
Setup connection: Minimon/ASC with
miniWiggler
If target is configured as Minimon/ASC, both JLink VCOM
and miniWiggler can be used to connect with target board.
If miniWiggler is used, UART-over-SPD via UDAS must
be selected. Note:
› Device must be configured as ASC BSL Mode
› Before clicking Connect, the board must be reset by
power-off and power-on
› An adapter needs to used to connect with minWiggler
› Connection hardware setup: Minimon/ASC with miniWiggler
Target configuration: Minimon/ASC
Select UART-over-SPD
via UART
Note: If the high baudrate
has a connection problem,
the lower baudrate should
be used.
Select Baudrate
20
Copyright © Infineon Technologies AG 2016. All rights reserved.
Setup connection: DAS with miniWiggler
› Connection hardware setup: DAS with miniWiggler
Target configuration: DAS
If target is configured as DAS, only miniWiggler can
be used to connect with target board.
Note:
› Device must be configured as User Mode (Debug)
SWD0/SWD1
› Before clicking Connect, the board must be reset
by power-off and power-on
› An adapter needs to used to connect with
minWiggler
Select
Serial wire debug
21
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
22
Copyright © Infineon Technologies AG 2016. All rights reserved.
Prerequisites to follow examples
A. Hardware setup:
USB cable
miniWiggler
Laptop
XMC1000
boot Kit
USB cable
B. Install Memtool v4.6.5:
23
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 1: ASC with VCOM (1/4)
› Target configuration
1
2
3
4
5
1 Click Target -> Change
2 Go to Browse
3 Click Default
4
Select Infineon XMC1300
Boot Kit … (Minimon/ASC)
5 Click Finish
6 Click Save
6
7
7 Click OK
24
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 1: ASC with VCOM (2/4)
› Setup connection interface
1
1 Click Target->Setup
2 Click Refresh
3 Select Jlink CDC UART Port
4
5 Select ASC bootstrap loader
6 Select Baudrate
7
2
3
4
5
6
7
Open Monitor
Click OK
25
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 1: ASC with VCOM (3/4)
› Connect with target board
1 Before clicking Connect, please do the following:
› Disconnect miniWiggler from target board
› Make sure that the device is configured as
ASC BSL Mode
› Reset board through power-off and power-on
board
After doing as described above, click Connect
1
After the target board is successfully connected, it
will be showed Ready for Memtool Command
(Disconnect)
26
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 1: ASC with VCOM (4/4)
› Open Hex file to program
1
2
3
5
4
6
Open File
1
Select Hex file
2
Click Open
3
Click Enable
4
Add Selected codes
5
Program flash
6
7
7 Exit
27
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 2: ASC with miniWiggler (1/4)
› Target configuration
1
1 Click Target->Change
2 Go to Browse
3 Click Default
4
Select Infineon XMC1300
Boot Kit … (Minimon/UART-
over-SPD via UDAS)
5 Click Finish
6 Click Save
7 Click OK
6
2
3
4
5
7
28
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 2: ASC with miniWiggler (2/4)
› Setup connection interface
1
1 Click Target->Setup
2 Select UART-over-SPD via UDAS
3
4 Select ASC bootstrap loader
5 Select Baudrate
6
Open Monitor Click OK
2
6
3
4
5
29
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 2: ASC with miniWiggler (3/4)
› Connect with target board
1 Before clicking Connect, please do the following:
› Connect miniWiggler with target board
› Make sure that the device is configured as
ASC BSL Mode
› Reset board through power-off and power-on board
After doing as described above, click Connect
1
After the target board is successfully connected, it
will be showed Ready for Memtool Command
(Disconnect)
30
Copyright © Infineon Technologies AG 2016. All rights reserved.
› Open Hex file to program
1
2
3
5
4
6
7
Example 2: ASC with miniWiggler (4/4)
Open File
1
Select Hex file
2
Click Open
3
Click Enable
4
Add Selected codes
5
6
7 Exit
Program flash
31
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 3: DAS with miniWiggler (1/4)
› Target configuration
1 2
3
4
5
7
6
1 Click Target->Change
2 Go to Browse
3 Click Default
4
Select Infineon XMC1300
Boot Kit… (DAS)
5 Click Finish
6 Click Save
7 Click OK
32
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 3: DAS with miniWiggler (2/4)
› Setup connection interface
1
1 Click Target->Setup
2 Open General
3 Select Serial wire debug
2
3
4
4 Click OK
33
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 3: DAS with miniWiggler (3/4)
› Connect with target board
1 Before clicking Connect, please do the following:
› Connect miniWiggler with target board
› Make sure that the device is configured as User
Mode (Debug) SWD0/SWD1
› Reset board through power-off and power-on board
After doing as described above, click Connect
1
After the target board is successfully connected, it
will be showed Ready for Memtool Command
(Disconnect)
34
Copyright © Infineon Technologies AG 2016. All rights reserved.
Example 3: DAS with miniWiggler (4/4)
› Open Hex file to program
1
2
3
5
4
6
7
Open File
1
Select Hex file
2
Click Open
3
Click Enable
4
Add Selected codes
5
6
7 Exit
Program flash
35
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
36
Copyright © Infineon Technologies AG 2016. All rights reserved.
Changing BMI value
› Memtool can be used as BMI set tool to change the BMI bootstrap mode in
XMC1000 devices. To change the BMI value connect firstly to target board,
then follow the following steps:
4
2
3
1
5
6
8
7
37
Copyright © Infineon Technologies AG 2016. All rights reserved.
Reconnect to target after BMI change
› After the BMI value is changed the connection to target will be lost because of
a reset operation in BMI changing process. To reconnect to target board a new
target configuration may be required depending on bootstrap mode being
changed
› If BMI is changed from “ASC Bootstrap Load Mode (ASC_BSL), no debug” to
“User Mode (Debug) SWD0”, before reconnection the target needs to be
configured as “DAS”, because just DAS configuration can connect to target
device under “User Mode”. For DAS configuration, please reference Example 3
in part of examples
› If BMI is changed from “User Mode (Debug) SWD0” to “ASC Bootstrap Load
Mode (ASC_BSL), no debug”, before reconnection the target needs to be
configured as “minmon/ASC” or “minimon/UART-over-DAS”, because just
these two configurations are able to connect with target device under “ASC
BSL Mode”. For “minmon/ASC” and “minimon/UART-over-DAS” configurations,
please reference Example 1 or Example 2 in part of examples, respectively
38
Copyright © Infineon Technologies AG 2016. All rights reserved.
Agenda
Memtool: Overview and features
About this tutorial
Memtool user interface
Target configurations in detail
Examples
Changing BMI value in Memtool
Problem and solution
1
2
3
4
5
6
7
39
Copyright © Infineon Technologies AG 2016. All rights reserved.
Problem
› The most commonly met problem by using Memtool is
“Can’t establish Connection to Target” like:
40
Copyright © Infineon Technologies AG 2016. All rights reserved.
Solutions (1/2)
› Solutions:
– Step 1: Click Change to check the connection setup
– Step 2: Check if Access Device is correctly chosen
– For miniWiggler, select UART-over-SPD via UDAS
– For VCOM, select Jlink CDC UART Pot
– Step 3: Click Ignore to leave connect setup
41
Copyright © Infineon Technologies AG 2016. All rights reserved.
Solutions (2/2)
– Step 4: Check if bootstrap mode is correctly configured using a BMI tool –
e.g. BMI tool in DAVE™ 3. This is the key step for solving the connection
problem. Note: miniWiggler must be disconnected from board if DAVE™ BMI
tool is used
– Step 5: Click Get BMI to get the current BMI value in device and check if
the BMI value is correct:
– If target configuration is “DAS”, BMI must be User Mode (debug) SWD0
– If target configuration is “Minimon/ASC” or “Minimon/UART-over-DAS”, BMI
must be ASC BSL Mode (no Debug)
5 6
– Step 6: If BMI change is required, click Set BMI to set correct BMI value
– Step 7: Reset device after changing the BMI value
– Step 8: Click Connect in Memtool main window to reconnect the device
42
Copyright © Infineon Technologies AG 2016. All rights reserved.
› Product Briefs
› Selection Guides
› Application Brochures
› Presentations
› Press Releases, Ads
› Application Notes
› Technical Articles
› Simulation Models
› Datasheets, MCDS Files
› PCB Design Data
› Technical Videos
› Product Information
Videos
› Forums
› Product Support
Support material
Collaterals and
Brochures
Technical Material
Videos
Contact
› www.infineon.com/XMC
› www.infineon.com/XMC
› Kits and Boards
› DAVETM
› Software and Tool Ecosystem
› Infineon Media Center
› XMC Mediathek
› Infineon Forums
› Technical Assistance Center (TAC)
43
Copyright © Infineon Technologies AG 2016. All rights reserved.
Glossary abbreviations
› ASC Asynchronous Serial Interface
› BSL Bootstrap Loader
› BMI Boot Mode Index
› DAS Debug Access Server
› JTAG Joint Test Action Group
› SWD Serial Wire Debug
› VCOM Visual Communications
44
Copyright © Infineon Technologies AG 2016. All rights reserved.
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.
Infineon Technologies hereby disclaims any and all warranties and
liabilities of any kind (including without limitation warranties of non-
infringement of intellectual property rights of any third party) with
respect to any and all information given in this training material.
Disclaimer
Infineon-TOOL_Tutorial_Memtool_XMC1-TR-v01_00-EN.pdf

More Related Content

Similar to Infineon-TOOL_Tutorial_Memtool_XMC1-TR-v01_00-EN.pdf

Armboot process zeelogic
Armboot process zeelogicArmboot process zeelogic
Armboot process zeelogic
Aleem Shariff
 
Acknowledgment.pptx
Acknowledgment.pptxAcknowledgment.pptx
Acknowledgment.pptx
HabtamuTadesseWorku
 
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & ProgrammingKkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Robomart.com
 
Xctu manual
Xctu manualXctu manual
Xctu manual
Hasta' CLat
 
Hardwear.io 2018 BLE Security Essentials workshop
Hardwear.io 2018 BLE Security Essentials workshopHardwear.io 2018 BLE Security Essentials workshop
Hardwear.io 2018 BLE Security Essentials workshop
Slawomir Jasek
 
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Neil Armstrong
 
Rodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementationRodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementation
Felipe Prado
 
Gesamtdoku eib a2e
Gesamtdoku eib a2eGesamtdoku eib a2e
Gesamtdoku eib a2e
Marcio Miranda
 
Doc7745
Doc7745Doc7745
Gesamtdoku eib a4e
Gesamtdoku eib a4eGesamtdoku eib a4e
Gesamtdoku eib a4e
Marcio Miranda
 
CNC 3-Axis Stepper Motor Shield
CNC 3-Axis Stepper Motor ShieldCNC 3-Axis Stepper Motor Shield
CNC 3-Axis Stepper Motor Shield
handson28
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
Dr. Pankaj Zope
 
STM3210B Primer
STM3210B Primer STM3210B Primer
STM3210B Primer
Easonchenng
 
Craneboard
CraneboardCraneboard
Craneboard
Mistral Solutions
 
Id. 01 router (computing)
Id. 01 router (computing)Id. 01 router (computing)
Id. 01 router (computing)
Rawa KirKuKi
 
MTE104-L2: Overview of Microcontrollers
MTE104-L2: Overview of MicrocontrollersMTE104-L2: Overview of Microcontrollers
MTE104-L2: Overview of Microcontrollers
Abdalla Ahmed
 

Similar to Infineon-TOOL_Tutorial_Memtool_XMC1-TR-v01_00-EN.pdf (20)

Armboot process zeelogic
Armboot process zeelogicArmboot process zeelogic
Armboot process zeelogic
 
Acknowledgment.pptx
Acknowledgment.pptxAcknowledgment.pptx
Acknowledgment.pptx
 
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & ProgrammingKkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
 
WT.PPTX
WT.PPTXWT.PPTX
WT.PPTX
 
Xctu manual
Xctu manualXctu manual
Xctu manual
 
Hardwear.io 2018 BLE Security Essentials workshop
Hardwear.io 2018 BLE Security Essentials workshopHardwear.io 2018 BLE Security Essentials workshop
Hardwear.io 2018 BLE Security Essentials workshop
 
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
Elc Europe 2020 : u-boot- porting and maintaining a bootloader for a multimed...
 
Rodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementationRodrigo Almeida - Microkernel development from project to implementation
Rodrigo Almeida - Microkernel development from project to implementation
 
Gesamtdoku eib a2e
Gesamtdoku eib a2eGesamtdoku eib a2e
Gesamtdoku eib a2e
 
Introduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSPIntroduction to Blackfin BF532 DSP
Introduction to Blackfin BF532 DSP
 
Xctumanual a
Xctumanual aXctumanual a
Xctumanual a
 
Doc7745
Doc7745Doc7745
Doc7745
 
Gesamtdoku eib a4e
Gesamtdoku eib a4eGesamtdoku eib a4e
Gesamtdoku eib a4e
 
CNC 3-Axis Stepper Motor Shield
CNC 3-Axis Stepper Motor ShieldCNC 3-Axis Stepper Motor Shield
CNC 3-Axis Stepper Motor Shield
 
M7vcm10
M7vcm10M7vcm10
M7vcm10
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
STM3210B Primer
STM3210B Primer STM3210B Primer
STM3210B Primer
 
Craneboard
CraneboardCraneboard
Craneboard
 
Id. 01 router (computing)
Id. 01 router (computing)Id. 01 router (computing)
Id. 01 router (computing)
 
MTE104-L2: Overview of Microcontrollers
MTE104-L2: Overview of MicrocontrollersMTE104-L2: Overview of Microcontrollers
MTE104-L2: Overview of Microcontrollers
 

Recently uploaded

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
Kamal Acharya
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Md. Shahidul Islam Prodhan
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
Kamal Acharya
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
RCC Institute of Information Technology
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 

Recently uploaded (20)

Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptxCloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
Cloud-Computing_CSE311_Computer-Networking CSE GUB BD - Shahidul.pptx
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Toll tax management system project report..pdf
Toll tax management system project report..pdfToll tax management system project report..pdf
Toll tax management system project report..pdf
 
Scaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltageScaling in conventional MOSFET for constant electric field and constant voltage
Scaling in conventional MOSFET for constant electric field and constant voltage
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 

Infineon-TOOL_Tutorial_Memtool_XMC1-TR-v01_00-EN.pdf

  • 1. Infineon Flash Programmer Memtool for XMC1000 family XMC™ microcontrollers July 2016
  • 2. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 2 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 3. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 3 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 4. Memtool: Overview and features › Overview – Memtool is a free of charge software designed for on-chip flash programming – Memtool V4 is supporting the XC800, XC166, XE166, XC2000, TriCore™, XMC4000 family and the XMC1000 family – Memtool V4 supports programming via UART (ASC) Boot loader for XMC4000 and XMC1000 › Features – Erasing the entire memory module – Erasing selected sectors of the memory module – Loading Intel Hex files – Programming all or selected portions of the file into the memory module – Comparing all or selected portions of the file to the current contents of the memory module – Setting and resetting the Chip/Sector Protection (On-Chip only) – BMI configuration 4 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 5. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 5 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 6. About this tutorial › Purposes – Concentrates on usage of Memtool to program on-chip flash in XMC1000 family microcontrollers – Declares the options and functions provided in Memtool user-interface in details – Declares the different target configurations and hardware setup – Provides step-by-step how to use Memtool with example › Contents – Part 1: Memtool user interface – Part 2: Target configurations in detail – Part 3: Examples – Part 4: Change BMI value in Memtool – Part 5: Problems and solutions › Prerequisites to follow the tutorial – Install Memtool v4.6.5 or higher Download Memtool v4.6.5 6 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 7. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 7 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 8. Memtool main window After opening Memtool v4.6.5 following window is displayed: File operation, Target/Device configuration Open Hex file for flash programming Information about target configuration Connect target Note: Before clicking Connect, the target and device must be configured 8 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 9. Target configuration options Using Bootstrap Loader: › ASC BSL bootstrap mode (no debug) – Hardware options – COM/VCOM adapter (OBD J-link, FTDI chip…) – DAP miniWiggler Using Debug Interface › SWD, SPD bootstrap mode (debug) – Hardware option – DAP miniWiggler Memtool provides two options to connect to the target: UI in Memtool to select one of the two options 9 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 10. Concept for target configuration › For all target MCUs there are default target configurations available to be chosen › The desired target configuration can be selected using two steps: 1. First, choose connection option according to BMI boot mode (ASC BSL or SWD) in MCU device 2. Second, choose the target configuration file based on target device and used interface adapter › Save the target configuration file Available default target configurations BMI? ASC BSL (no debug) SWD/SPD (debug) Choose configuration file based on device and interface adapter Save target configurations 10 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 11. Flow of target configuration selection › Open Target menu and select Change › Select already existing target configuration by clicking Default › Go to XMC1000 and open the menu › Select target configuration option based on BMI value in device: 1. For ASC BSL mode, select Starter Kits (Bootstrap Loader) 2. For SWD/SPD mode, select Starter Kits (DAS) › Select the target configuration file according to device and interface adapter (VCOM/miniWiggler) › Finish and Save the target configuration file 11 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 12. Set hardware connection interface (1/2) Set hardware connection interface: Target -> Setup If Starter kits (Bootstrap Loader) is selected as target configuration, there are two choices of hardware connection interfaces depending on hardware used: 1. COM/VCOM interface: JLink CDC UART Port 2. DAP miniWiggler: UART-over-SPD via UDAS Starter kits (Bootstrap Loader): 12 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 13. Set hardware connection interface (2/2) Set hardware connection interface: Target -> Setup Starter kits (DAS): If Starter kits (DAS) is selected as target configuration, DAP miniWiggler needs to be used: › Use Debug Port: Serial wire debug 13 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 14. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 14 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 15. Target configuration Target configuration is the key step to make sure that the connection with board is successful. There are three configurations for each XMC1000 device depending on board kit used: 1. Boot Kit 2. Evaluation boards with TSSOP38 package Configuration for Infineon Boot Kit Configuration for Infineon evaluation board with TSSOP38 package Note: These configurations are redundant, and will be removed in new Memtool release 15 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 16. Target configuration for XMC1100 Minimon/ASC: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1100 must be configured as ASC BSL bootstrap mode 3. Connection interface: VCOM in OBD Segger debugger or miniWiggler Minimon/UART-over-DAS: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1100 must be configured as ASC BSL bootstrap mode 3. Connection interface: miniWiggler DAS: 1. Connect with target board using DAS server 2. XMC1100 must be configured as User Mode (Debug) SWD0/SWD1 3. Connection interface: miniWiggler 16 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 17. Target configuration for XMC1200 Minimon/ASC: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1200 must be configured as ASC BSL bootstrap mode 3. Connection interface: VCOM in OBD Segger debugger or miniWiggler Minimon/UART-over-DAS: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1200 must be configured as ASC BSL bootstrap mode 3. Connection interface: miniWiggler DAS: 1. Connect with target board using DAS server 2. XMC1200 must be configured as User Mode (Debug) SWD0/SWD1 3. Connection interface: miniWiggler 17 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 18. Target configuration for XMC1300 Minimon/ASC: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1300 must be configured as ASC BSL bootstrap mode 3. Connection interface: VCOM in OBD Segger debugger or miniWiggler Minimon/UART-over-DAS: 1. Connect with target board using ASC BSL bootstrap loader 2. XMC1300 must be configured as ASC BSL bootstrap mode 3. Connection interface: miniWiggler DAS: 1. Connect with target board using DAS server 2. XMC1300 must be configured as User Mode (Debug) SWD0/SWD1 3. Connection interface: miniWiggler 18 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 19. Setup connection: Minimon/ASC with VCOM If target is configured as Minimon/ASC, both JLink VCOM and miniWiggler can be used to connect with target board. If VCOM is used, Jlink CDC UART Port must be selected. Click Refresh to see the VCOM port. Note: › If VCOM is selected, miniWiggler is not allowed to connect with board › Device must be configured as ASC BSL Mode › Before clicking Connect, the board must be reset by power-off and power-on › Connection hardware setup: Minimon/ASC with VCOM interface on board Target configuration: Minimon/ASC Select VCOM Select Baudrate Note: Maximal baudrate is 28800. K-Line is not supported for XMCTM. 19 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 20. Setup connection: Minimon/ASC with miniWiggler If target is configured as Minimon/ASC, both JLink VCOM and miniWiggler can be used to connect with target board. If miniWiggler is used, UART-over-SPD via UDAS must be selected. Note: › Device must be configured as ASC BSL Mode › Before clicking Connect, the board must be reset by power-off and power-on › An adapter needs to used to connect with minWiggler › Connection hardware setup: Minimon/ASC with miniWiggler Target configuration: Minimon/ASC Select UART-over-SPD via UART Note: If the high baudrate has a connection problem, the lower baudrate should be used. Select Baudrate 20 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 21. Setup connection: DAS with miniWiggler › Connection hardware setup: DAS with miniWiggler Target configuration: DAS If target is configured as DAS, only miniWiggler can be used to connect with target board. Note: › Device must be configured as User Mode (Debug) SWD0/SWD1 › Before clicking Connect, the board must be reset by power-off and power-on › An adapter needs to used to connect with minWiggler Select Serial wire debug 21 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 22. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 22 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 23. Prerequisites to follow examples A. Hardware setup: USB cable miniWiggler Laptop XMC1000 boot Kit USB cable B. Install Memtool v4.6.5: 23 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 24. Example 1: ASC with VCOM (1/4) › Target configuration 1 2 3 4 5 1 Click Target -> Change 2 Go to Browse 3 Click Default 4 Select Infineon XMC1300 Boot Kit … (Minimon/ASC) 5 Click Finish 6 Click Save 6 7 7 Click OK 24 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 25. Example 1: ASC with VCOM (2/4) › Setup connection interface 1 1 Click Target->Setup 2 Click Refresh 3 Select Jlink CDC UART Port 4 5 Select ASC bootstrap loader 6 Select Baudrate 7 2 3 4 5 6 7 Open Monitor Click OK 25 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 26. Example 1: ASC with VCOM (3/4) › Connect with target board 1 Before clicking Connect, please do the following: › Disconnect miniWiggler from target board › Make sure that the device is configured as ASC BSL Mode › Reset board through power-off and power-on board After doing as described above, click Connect 1 After the target board is successfully connected, it will be showed Ready for Memtool Command (Disconnect) 26 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 27. Example 1: ASC with VCOM (4/4) › Open Hex file to program 1 2 3 5 4 6 Open File 1 Select Hex file 2 Click Open 3 Click Enable 4 Add Selected codes 5 Program flash 6 7 7 Exit 27 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 28. Example 2: ASC with miniWiggler (1/4) › Target configuration 1 1 Click Target->Change 2 Go to Browse 3 Click Default 4 Select Infineon XMC1300 Boot Kit … (Minimon/UART- over-SPD via UDAS) 5 Click Finish 6 Click Save 7 Click OK 6 2 3 4 5 7 28 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 29. Example 2: ASC with miniWiggler (2/4) › Setup connection interface 1 1 Click Target->Setup 2 Select UART-over-SPD via UDAS 3 4 Select ASC bootstrap loader 5 Select Baudrate 6 Open Monitor Click OK 2 6 3 4 5 29 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 30. Example 2: ASC with miniWiggler (3/4) › Connect with target board 1 Before clicking Connect, please do the following: › Connect miniWiggler with target board › Make sure that the device is configured as ASC BSL Mode › Reset board through power-off and power-on board After doing as described above, click Connect 1 After the target board is successfully connected, it will be showed Ready for Memtool Command (Disconnect) 30 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 31. › Open Hex file to program 1 2 3 5 4 6 7 Example 2: ASC with miniWiggler (4/4) Open File 1 Select Hex file 2 Click Open 3 Click Enable 4 Add Selected codes 5 6 7 Exit Program flash 31 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 32. Example 3: DAS with miniWiggler (1/4) › Target configuration 1 2 3 4 5 7 6 1 Click Target->Change 2 Go to Browse 3 Click Default 4 Select Infineon XMC1300 Boot Kit… (DAS) 5 Click Finish 6 Click Save 7 Click OK 32 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 33. Example 3: DAS with miniWiggler (2/4) › Setup connection interface 1 1 Click Target->Setup 2 Open General 3 Select Serial wire debug 2 3 4 4 Click OK 33 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 34. Example 3: DAS with miniWiggler (3/4) › Connect with target board 1 Before clicking Connect, please do the following: › Connect miniWiggler with target board › Make sure that the device is configured as User Mode (Debug) SWD0/SWD1 › Reset board through power-off and power-on board After doing as described above, click Connect 1 After the target board is successfully connected, it will be showed Ready for Memtool Command (Disconnect) 34 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 35. Example 3: DAS with miniWiggler (4/4) › Open Hex file to program 1 2 3 5 4 6 7 Open File 1 Select Hex file 2 Click Open 3 Click Enable 4 Add Selected codes 5 6 7 Exit Program flash 35 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 36. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 36 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 37. Changing BMI value › Memtool can be used as BMI set tool to change the BMI bootstrap mode in XMC1000 devices. To change the BMI value connect firstly to target board, then follow the following steps: 4 2 3 1 5 6 8 7 37 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 38. Reconnect to target after BMI change › After the BMI value is changed the connection to target will be lost because of a reset operation in BMI changing process. To reconnect to target board a new target configuration may be required depending on bootstrap mode being changed › If BMI is changed from “ASC Bootstrap Load Mode (ASC_BSL), no debug” to “User Mode (Debug) SWD0”, before reconnection the target needs to be configured as “DAS”, because just DAS configuration can connect to target device under “User Mode”. For DAS configuration, please reference Example 3 in part of examples › If BMI is changed from “User Mode (Debug) SWD0” to “ASC Bootstrap Load Mode (ASC_BSL), no debug”, before reconnection the target needs to be configured as “minmon/ASC” or “minimon/UART-over-DAS”, because just these two configurations are able to connect with target device under “ASC BSL Mode”. For “minmon/ASC” and “minimon/UART-over-DAS” configurations, please reference Example 1 or Example 2 in part of examples, respectively 38 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 39. Agenda Memtool: Overview and features About this tutorial Memtool user interface Target configurations in detail Examples Changing BMI value in Memtool Problem and solution 1 2 3 4 5 6 7 39 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 40. Problem › The most commonly met problem by using Memtool is “Can’t establish Connection to Target” like: 40 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 41. Solutions (1/2) › Solutions: – Step 1: Click Change to check the connection setup – Step 2: Check if Access Device is correctly chosen – For miniWiggler, select UART-over-SPD via UDAS – For VCOM, select Jlink CDC UART Pot – Step 3: Click Ignore to leave connect setup 41 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 42. Solutions (2/2) – Step 4: Check if bootstrap mode is correctly configured using a BMI tool – e.g. BMI tool in DAVE™ 3. This is the key step for solving the connection problem. Note: miniWiggler must be disconnected from board if DAVE™ BMI tool is used – Step 5: Click Get BMI to get the current BMI value in device and check if the BMI value is correct: – If target configuration is “DAS”, BMI must be User Mode (debug) SWD0 – If target configuration is “Minimon/ASC” or “Minimon/UART-over-DAS”, BMI must be ASC BSL Mode (no Debug) 5 6 – Step 6: If BMI change is required, click Set BMI to set correct BMI value – Step 7: Reset device after changing the BMI value – Step 8: Click Connect in Memtool main window to reconnect the device 42 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 43. › Product Briefs › Selection Guides › Application Brochures › Presentations › Press Releases, Ads › Application Notes › Technical Articles › Simulation Models › Datasheets, MCDS Files › PCB Design Data › Technical Videos › Product Information Videos › Forums › Product Support Support material Collaterals and Brochures Technical Material Videos Contact › www.infineon.com/XMC › www.infineon.com/XMC › Kits and Boards › DAVETM › Software and Tool Ecosystem › Infineon Media Center › XMC Mediathek › Infineon Forums › Technical Assistance Center (TAC) 43 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 44. Glossary abbreviations › ASC Asynchronous Serial Interface › BSL Bootstrap Loader › BMI Boot Mode Index › DAS Debug Access Server › JTAG Joint Test Action Group › SWD Serial Wire Debug › VCOM Visual Communications 44 Copyright © Infineon Technologies AG 2016. All rights reserved.
  • 45. 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. Infineon Technologies hereby disclaims any and all warranties and liabilities of any kind (including without limitation warranties of non- infringement of intellectual property rights of any third party) with respect to any and all information given in this training material. Disclaimer