<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.chriesibaum.dev/index.php?action=history&amp;feed=atom&amp;title=HOW-TO_debug_Faulting_Instruction_Addresses</id>
	<title>HOW-TO debug Faulting Instruction Addresses - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.chriesibaum.dev/index.php?action=history&amp;feed=atom&amp;title=HOW-TO_debug_Faulting_Instruction_Addresses"/>
	<link rel="alternate" type="text/html" href="https://wiki.chriesibaum.dev/index.php?title=HOW-TO_debug_Faulting_Instruction_Addresses&amp;action=history"/>
	<updated>2026-10-03T05:05:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.chriesibaum.dev/index.php?title=HOW-TO_debug_Faulting_Instruction_Addresses&amp;diff=213&amp;oldid=prev</id>
		<title>PTH at 19:43, 16 January 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.chriesibaum.dev/index.php?title=HOW-TO_debug_Faulting_Instruction_Addresses&amp;diff=213&amp;oldid=prev"/>
		<updated>2024-01-16T19:43:23Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:43, 16 January 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Install or get the tool &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;arm-none-eabi-addr2line&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Install or get the tool &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;arm-none-eabi-addr2line&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&quot;bash&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sudo aptitude install binutils-arm-none-eabi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Run the tool as follows. This will give you a filename and line number where the code caused the error.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Run the tool as follows. This will give you a filename and line number where the code caused the error.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PTH</name></author>
	</entry>
	<entry>
		<id>https://wiki.chriesibaum.dev/index.php?title=HOW-TO_debug_Faulting_Instruction_Addresses&amp;diff=208&amp;oldid=prev</id>
		<title>PTH: Created page with &quot; If you happen to stumble across something like this, no worries!  &lt;syntaxhighlight lang=&quot;bash&quot;&gt; [00:00:00.075,000] &lt;err&gt; os: ***** BUS FAULT ***** [00:00:00.075,000] &lt;err&gt; os:   Precise data bus error [00:00:00.075,000] &lt;err&gt; os:   BFAR Address: 0x0 [00:00:00.075,000] &lt;err&gt; os: r0/a1:  0x00000000  r1/a2:  0x00000018  r2/a3:  0x00000000 [00:00:00.075,000] &lt;err&gt; os: r3/a4:  0x00000000 r12/ip:  0x0000004b r14/lr:  0x08001cb9 [00:00:00.075,000] &lt;err&gt; os:  xpsr:  0x69000000...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.chriesibaum.dev/index.php?title=HOW-TO_debug_Faulting_Instruction_Addresses&amp;diff=208&amp;oldid=prev"/>
		<updated>2023-11-14T08:34:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; If you happen to stumble across something like this, no worries!  &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt; [00:00:00.075,000] &amp;lt;err&amp;gt; os: ***** BUS FAULT ***** [00:00:00.075,000] &amp;lt;err&amp;gt; os:   Precise data bus error [00:00:00.075,000] &amp;lt;err&amp;gt; os:   BFAR Address: 0x0 [00:00:00.075,000] &amp;lt;err&amp;gt; os: r0/a1:  0x00000000  r1/a2:  0x00000018  r2/a3:  0x00000000 [00:00:00.075,000] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x0000004b r14/lr:  0x08001cb9 [00:00:00.075,000] &amp;lt;err&amp;gt; os:  xpsr:  0x69000000...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
If you happen to stumble across something like this, no worries!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: ***** BUS FAULT *****&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os:   Precise data bus error&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os:   BFAR Address: 0x0&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: r0/a1:  0x00000000  r1/a2:  0x00000018  r2/a3:  0x00000000&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x0000004b r14/lr:  0x08001cb9&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os:  xpsr:  0x69000000&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x08002336&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 25: Unknown error on CPU 0&lt;br /&gt;
[00:00:00.075,000] &amp;lt;err&amp;gt; os: Current thread: 0x20005cd0 (main)&lt;br /&gt;
[00:00:01.614,000] &amp;lt;err&amp;gt; os: Halting system&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install or get the tool &amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; inline&amp;gt;arm-none-eabi-addr2line&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run the tool as follows. This will give you a filename and line number where the code caused the error.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
arm-none-eabi-addr2line -e ./build/zephyr/zephyr.elf &amp;lt;Faulting instruction address (r15/pc): 0x########&amp;gt;&lt;br /&gt;
&lt;br /&gt;
arm-none-eabi-addr2line -e ./build/zephyr/zephyr.elf 0x########&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also check addr2line on the address in your link register (r14/lr):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
arm-none-eabi-addr2line -e ./build/zephyr/zephyr.elf &amp;lt;r14/lr: 0x########&amp;gt;&lt;br /&gt;
&lt;br /&gt;
arm-none-eabi-addr2line -e ./build/zephyr/zephyr.elf 0x########&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>PTH</name></author>
	</entry>
</feed>