<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de-AT">
	<id>https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=ARM_DS-5_Quick_Start_%28i.MX53%29</id>
	<title>ARM DS-5 Quick Start (i.MX53) - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://becomwiki.live.md-websolutions.com/index.php?action=history&amp;feed=atom&amp;title=ARM_DS-5_Quick_Start_%28i.MX53%29"/>
	<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=ARM_DS-5_Quick_Start_(i.MX53)&amp;action=history"/>
	<updated>2026-05-13T12:43:22Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in BECOM Systems Support</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=ARM_DS-5_Quick_Start_(i.MX53)&amp;diff=396&amp;oldid=prev</id>
		<title>Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=ARM_DS-5_Quick_Start_(i.MX53)&amp;diff=396&amp;oldid=prev"/>
		<updated>2023-10-31T08:03:10Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de-AT&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 31. Oktober 2023, 10:03 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;de-AT&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(kein Unterschied)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Peter</name></author>
	</entry>
	<entry>
		<id>https://becomwiki.live.md-websolutions.com/index.php?title=ARM_DS-5_Quick_Start_(i.MX53)&amp;diff=395&amp;oldid=prev</id>
		<title>en&gt;Peter: 1 Version importiert</title>
		<link rel="alternate" type="text/html" href="https://becomwiki.live.md-websolutions.com/index.php?title=ARM_DS-5_Quick_Start_(i.MX53)&amp;diff=395&amp;oldid=prev"/>
		<updated>2023-08-22T19:35:53Z</updated>

		<summary type="html">&lt;p&gt;1 Version importiert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Image:Arm-logo.jpg|right|200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;The reference software development tool suite for ARM processors&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Developed by ARM Architecture experts, the ARM DS-5™ toolchain enables engineers to develop robust and highly optimized embedded software for ARM application processors, such as the Cortex™-A series, Cortex-R real-time processors and other ARM embedded processors. The DS-5 toolchain comprises tools such as the best-in-class ARM C/C++ Compiler, a powerful Linux/Android™/RTOS-aware debugger, the ARM Streamline™ system-wide performance analyzer and real-time system model simulators, all conveniently packaged in a user friendly integrated development environment (IDE) based on the Eclipse.&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
This is a quick start for ARM DS-5 software, DSTREAM debugging hardware, and Bluetechnix i.MX53 products (CM-i.MX53, Qseven-i.MX537).&lt;br /&gt;
&lt;br /&gt;
This document is not exhaustive, please refer to the [[#Further reading|Further reading]] chapter how to retrieve documentation about DS-5.&lt;br /&gt;
&lt;br /&gt;
==What you will need==&lt;br /&gt;
*ARM DS-5 software for Linux or Windows&lt;br /&gt;
*ARM DSTREAM Debug and Trace unit (optional)&lt;br /&gt;
*Ethernet connection between host and target (optional)&lt;br /&gt;
&lt;br /&gt;
==What is supported==&lt;br /&gt;
*DS-5 Community Edition&lt;br /&gt;
**Linux application debugging (gdbserver)&lt;br /&gt;
**Streamline™ system-wide performance analyzer&lt;br /&gt;
*DS-5 Professional Edition &amp;amp; DSTREAM&lt;br /&gt;
**Bare Metal Debug (via JTAG)&lt;br /&gt;
**Linux Kernel/Device Driver Debug (via JTAG)&lt;br /&gt;
**Tracing using the Cortex-A8 ETB (Embedded Trace Buffer) (via JTAG)&lt;br /&gt;
&lt;br /&gt;
==Install ARM DS-5==&lt;br /&gt;
You may start with the free DS-5 Community Edition, which is available at https://ds.arm.com/ds-5-community-edition/.&lt;br /&gt;
&lt;br /&gt;
Evaluation licenses for the Professional Edition are available - see https://www.arm.com/products/tools/software-tools/ds-5/ds-5-downloads.php.&lt;br /&gt;
&lt;br /&gt;
==Adding target support==&lt;br /&gt;
If your version of DS-5 does not have support for CM-i.MX53/Qseven-i.MX537 yet, you can add a User Configuration Database.&lt;br /&gt;
&lt;br /&gt;
===How to check===&lt;br /&gt;
*Start DS-5.&lt;br /&gt;
*Click &amp;#039;&amp;#039;Run&amp;#039;&amp;#039; from the menu and choose &amp;#039;&amp;#039;Debug Configurations...&amp;#039;&amp;#039;.&lt;br /&gt;
*Right-click on &amp;#039;&amp;#039;DS-5 Debugger&amp;#039;&amp;#039; and click &amp;#039;&amp;#039;New&amp;#039;&amp;#039;.&lt;br /&gt;
*On the &amp;#039;&amp;#039;Connection&amp;#039;&amp;#039; tab, in the &amp;#039;&amp;#039;Select target&amp;#039;&amp;#039; area, search for &amp;#039;&amp;#039;&amp;#039;Bluetechnix&amp;#039;&amp;#039;&amp;#039; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;CM-i.MX53&amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;Qseven-i.MX537&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*If the target is not available, proceed.&lt;br /&gt;
&lt;br /&gt;
===Add support===&lt;br /&gt;
*Download &amp;#039;&amp;#039;configdb.zip&amp;#039;&amp;#039; containing the Configuration Database Entry from https://support.becom-group.com/releases/imx/mx53/ds-5/.&lt;br /&gt;
*Unpack the ZIP file.&lt;br /&gt;
*Open DS-5.&lt;br /&gt;
*Click &amp;#039;&amp;#039;Window&amp;#039;&amp;#039; from the menu and choose &amp;#039;&amp;#039;Preferences&amp;#039;&amp;#039;.&lt;br /&gt;
*On the left, expand the &amp;#039;&amp;#039;DS-5&amp;#039;&amp;#039; configuration item and select &amp;#039;&amp;#039;Configuration Database&amp;#039;&amp;#039;.&lt;br /&gt;
*In the &amp;#039;&amp;#039;User Configuration Databases&amp;#039;&amp;#039; area, click on &amp;#039;&amp;#039;Add&amp;#039;&amp;#039;, and select the &amp;#039;&amp;#039;&amp;#039;configdb&amp;#039;&amp;#039;&amp;#039; folder from the unpacked ZIP file.&lt;br /&gt;
*Click on the &amp;#039;&amp;#039;Rebuild database...&amp;#039;&amp;#039; button. You are finished!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 confdatabase.png|654px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==U-Boot debugging with DSTREAM==&lt;br /&gt;
DS-5 and DSTREAM are used to initialize the i.MX53 target (including SDRAM), load the U-Boot ELF file to the target&amp;#039;s memory, and debug/trace it.&lt;br /&gt;
&lt;br /&gt;
You can download the SDRAM initialization script &amp;#039;&amp;#039;&amp;#039;cmimx53.ds&amp;#039;&amp;#039;&amp;#039; for DS-5 from https://support.becom-group.com/releases/imx/mx53/ds-5/.&lt;br /&gt;
&lt;br /&gt;
How to create a proper debug configuration.&lt;br /&gt;
*Click &amp;#039;&amp;#039;Run&amp;#039;&amp;#039; from the menu and choose &amp;#039;&amp;#039;Debug Configurations...&amp;#039;&amp;#039;.&lt;br /&gt;
*Right-click on &amp;#039;&amp;#039;DS-5 Debugger&amp;#039;&amp;#039; and click &amp;#039;&amp;#039;New&amp;#039;&amp;#039;.&lt;br /&gt;
*On the &amp;#039;&amp;#039;Connection&amp;#039;&amp;#039; tab, in the &amp;#039;&amp;#039;Select target&amp;#039;&amp;#039; area, select &amp;#039;&amp;#039;&amp;#039;Bluetechnix&amp;#039;&amp;#039;&amp;#039; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;CM-i.MX53&amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;Qseven-i.MX537&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*Choose debug target &amp;#039;&amp;#039;Bare Metal Debug&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 debugconfiguration 3.png|872px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Open the &amp;#039;&amp;#039;Files&amp;#039;&amp;#039; tab.&lt;br /&gt;
*Select the U-Boot ELF file &amp;#039;&amp;#039;&amp;#039;u-boot&amp;#039;&amp;#039;&amp;#039; (from U-Boot&amp;#039;s top build directory) as application to download, and check the &amp;#039;&amp;#039;Load symbols&amp;#039;&amp;#039; box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 debugconfiguration 4.png|958px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Now open the &amp;#039;&amp;#039;Debugger&amp;#039;&amp;#039; tab.&lt;br /&gt;
*Select &amp;#039;&amp;#039;Debug from entry point&amp;#039;&amp;#039;.&lt;br /&gt;
*Select the target initialization script &amp;#039;&amp;#039;&amp;#039;cmimx53.ds&amp;#039;&amp;#039;&amp;#039; (download link above).&lt;br /&gt;
*If you like U-Boot to start as soon as you start the DS-5 debugging session, put &amp;#039;&amp;#039;&amp;#039;continue&amp;#039;&amp;#039;&amp;#039; in the &amp;#039;&amp;#039;debugger commands&amp;#039;&amp;#039; field.&lt;br /&gt;
*Finally, add U-Boot&amp;#039;s source folder as a source search directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 debugconfiguration 5.png|958px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following screenshot shows DS-5 while U-Boot debugging, in processor-stopped state, with ETB tracing enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 uboot debugging.png|1344px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Linux kernel debugging with DSTREAM==&lt;br /&gt;
===Compile the kernel with debug info===&lt;br /&gt;
&lt;br /&gt;
This is required if you want to debug your kernel via JTAG using DSTREAM.&lt;br /&gt;
&lt;br /&gt;
*Go to kernel directory&lt;br /&gt;
 cd btmxc-linux/&lt;br /&gt;
*Configure the kernel&lt;br /&gt;
 source set-cross-envs&lt;br /&gt;
 make menuconfig&lt;br /&gt;
*Enable the following options in the &amp;#039;&amp;#039;Kernel hacking&amp;#039;&amp;#039; menu:&lt;br /&gt;
 [*] Kernel debugging&lt;br /&gt;
 [*] Compile the kernel with debug info&lt;br /&gt;
*Rebuild and deploy the kernel&lt;br /&gt;
&lt;br /&gt;
===Configure U-Boot===&lt;br /&gt;
&lt;br /&gt;
In order to allow JTAG access while the Linux kernel is running on the target, you have to tell the kernel with the following argument&lt;br /&gt;
 jtag=on&lt;br /&gt;
&lt;br /&gt;
To accomplish this,&lt;br /&gt;
*Reset or boot the CM-i.MX53/Qseven-i.MX537 with the serial terminal connected and ready.&lt;br /&gt;
*Stop booting with any key.&lt;br /&gt;
*At the U-Boot prompt, enter&lt;br /&gt;
 set bootargs_base $(bootargs_base) jtag=on&lt;br /&gt;
 save&lt;br /&gt;
*Reset&lt;br /&gt;
 reset&lt;br /&gt;
&lt;br /&gt;
=== Create a DS-5 debug configuration ===&lt;br /&gt;
*Click &amp;#039;&amp;#039;Run&amp;#039;&amp;#039; from the menu and choose &amp;#039;&amp;#039;Debug Configurations...&amp;#039;&amp;#039;.&lt;br /&gt;
*Right-click on &amp;#039;&amp;#039;DS-5 Debugger&amp;#039;&amp;#039; and click &amp;#039;&amp;#039;New&amp;#039;&amp;#039;.&lt;br /&gt;
*On the &amp;#039;&amp;#039;Connection&amp;#039;&amp;#039; tab, in the &amp;#039;&amp;#039;Select target&amp;#039;&amp;#039; area, select &amp;#039;&amp;#039;&amp;#039;Bluetechnix&amp;#039;&amp;#039;&amp;#039; &amp;amp;rarr; &amp;#039;&amp;#039;&amp;#039;CM-i.MX53&amp;#039;&amp;#039;&amp;#039;/&amp;#039;&amp;#039;&amp;#039;Qseven-i.MX537&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*Choose between available debug targets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 debugconfiguration.png|1311px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*For a kernel debugging session, you have to add a debugger command and add a source search directory in order to enable source-level debugging.&lt;br /&gt;
*Go to the &amp;#039;&amp;#039;Debugger&amp;#039;&amp;#039; tab within the debug configuration.&lt;br /&gt;
*Select &amp;#039;&amp;#039;Execute debugger commands&amp;#039;&amp;#039;, and add&lt;br /&gt;
 add-symbol-file &amp;quot;&amp;lt;your-path&amp;gt;/vmlinux&amp;quot; S:0x0&lt;br /&gt;
*Add the directory where your Linux kernel sources are as a &amp;#039;&amp;#039;Source search directory&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 debugconfiguration 2.png|1311px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Enable Tracing ==&lt;br /&gt;
DS-5 may use the on-chip ETB of the i.MX53 to capture a small amount of real time trace data.&lt;br /&gt;
&lt;br /&gt;
*In the debug configuration dialog, go to the &amp;#039;&amp;#039;Connection&amp;#039;&amp;#039; tab.&lt;br /&gt;
*Click the &amp;#039;&amp;#039;Edit...&amp;#039;&amp;#039; button for DTSL options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 sbc debugconfiguration 5.png|976px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*In the DTSL (Debug and Trace Services Layer) Configuration Editor, set the Trace capture method to &amp;#039;&amp;#039;On Chip Trace Buffer (ETB)&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 sbc debugconfiguration 3.png|642px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*On the Core Trace tab, enable Cortex-A8 trace, and select other options according to your wishes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 sbc debugconfiguration 4.png|642px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Click &amp;#039;&amp;#039;OK&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Debug&amp;#039;&amp;#039; in the parent dialog to start debugging.&lt;br /&gt;
*If the processor is now halted, e.g. by a breakpoint, the &amp;#039;&amp;#039;Trace&amp;#039;&amp;#039; view update with instruction trace and source-level function analysis.&lt;br /&gt;
*If the &amp;#039;&amp;#039;Trace&amp;#039;&amp;#039; view is not yet opened, select &amp;#039;&amp;#039;Window&amp;#039;&amp;#039; from the menu, &amp;#039;&amp;#039;Show View&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;Trace&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 traceview.png|1344px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Using DS-5 Streamline ==&lt;br /&gt;
&lt;br /&gt;
*Streamline works over an Ethernet connection.&lt;br /&gt;
*No JTAG connection nor debugger hardware is required.&lt;br /&gt;
*Supported by the DS-5 Community Edition.&lt;br /&gt;
&lt;br /&gt;
===Prepare the Linux kernel===&lt;br /&gt;
In order to use Streamline, some configuration options must be enabled in the kernel configuration.&lt;br /&gt;
&lt;br /&gt;
 General setup --&amp;gt;&lt;br /&gt;
   Kernel Performance Events And Counters --&amp;gt;&lt;br /&gt;
     [*] Kernel performance events and counters&lt;br /&gt;
&lt;br /&gt;
 General setup --&amp;gt;&lt;br /&gt;
   [*] Profiling Support&lt;br /&gt;
&lt;br /&gt;
 Kernel features --&amp;gt;&lt;br /&gt;
   [*] Tracers&lt;br /&gt;
     [*] Trace process context switches and events&lt;br /&gt;
&lt;br /&gt;
 Kernel hacking --&amp;gt;&lt;br /&gt;
   [*] Kernel debugging&lt;br /&gt;
   [*] Compile the kernel with debug info&lt;br /&gt;
&lt;br /&gt;
Afterwards, recompile the kernel and boot the target with the new kernel.&lt;br /&gt;
&lt;br /&gt;
=== Prepare the target ===&lt;br /&gt;
Streamline needs a kernel module (&amp;#039;&amp;#039;&amp;#039;gator.ko&amp;#039;&amp;#039;&amp;#039;) and a userspace daemon (&amp;#039;&amp;#039;&amp;#039;gatord&amp;#039;&amp;#039;&amp;#039;) to run on the target.&lt;br /&gt;
We offer these two pre-compiled, ready to be installed on the target.&lt;br /&gt;
&lt;br /&gt;
*Download from https://support.becom-group.com/releases/imx/mx53/ds-5/.&lt;br /&gt;
*Copy/deploy to your i.MX53 target.&lt;br /&gt;
*Make sure the network on the target is set up (e.g., with &amp;#039;&amp;#039;ifconfig&amp;#039;&amp;#039;). Remember the target&amp;#039;s IP address for later!&lt;br /&gt;
*Load the kernel module&lt;br /&gt;
 insmod gator.ko&lt;br /&gt;
*Start the gator daemon&lt;br /&gt;
 ./gatord &amp;amp;&lt;br /&gt;
&lt;br /&gt;
=== Start streaming ===&lt;br /&gt;
&lt;br /&gt;
*If the Streamline view is not visible, open &amp;#039;&amp;#039;Window&amp;#039;&amp;#039; from the menu, and select &amp;#039;&amp;#039;Show View&amp;#039;&amp;#039;, &amp;#039;&amp;#039;Other...&amp;#039;&amp;#039;.&lt;br /&gt;
*In the opened window, from folder &amp;#039;&amp;#039;ARM Streamline&amp;#039;&amp;#039;, select the &amp;#039;&amp;#039;Streamline Data&amp;#039;&amp;#039; view.&lt;br /&gt;
*Enter the IP address of your i.MX53 target in the top field of the Streamline view, and click the &amp;#039;&amp;#039;Start Capture&amp;#039;&amp;#039; button right of it. Choose a folder for storing the capture data afterwards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 streamline.png|1344px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Now, you can see a live view of the running system, including CPU Activity, Memory usage, Disk I/O etc.&lt;br /&gt;
*After you have stopped streaming, you may analyse the data in the &amp;#039;&amp;#039;Capture_Cxx_Axx&amp;#039;&amp;#039; view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: [[Image:Ds5 mx53 streamline 2.png|1344px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Further reading ==&lt;br /&gt;
*ARM Infocenter for DS-5: https://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.subset.swdev.ds5/index.html&lt;br /&gt;
**ARM Infocenter for DS-5 Streamline: https://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0482m/index.html&lt;br /&gt;
*ARM Infocenter for DSTREAM: https://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.subset.swdev.dstream/index.html&lt;br /&gt;
*DS-5 Community Edition: https://ds.arm.com/ds-5-community-edition/&lt;br /&gt;
*DS-5 Product Page: https://www.arm.com/products/tools/software-tools/ds-5/index.php&lt;br /&gt;
*DS-5 Downloads: https://www.arm.com/products/tools/software-tools/ds-5/ds-5-downloads.php&lt;br /&gt;
&lt;br /&gt;
[[Category:I.MX53]]&lt;/div&gt;</summary>
		<author><name>en&gt;Peter</name></author>
	</entry>
</feed>