<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>A bus fault has occurred on an instruction prefetch (CFSR.IBUSERR, BFAR).</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67814/a-bus-fault-has-occurred-on-an-instruction-prefetch-cfsr-ibuserr-bfar</link><description>Hi. 
 I am developing using nRF52820 example source using SDK 17.0.2. 
 USB and LESC were added using S112. 
 However, during operation, the following HardFault error occurs in the IAR compiler. 
 
 Even if I change the optimizations from High(size) to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Oct 2020 09:34:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67814/a-bus-fault-has-occurred-on-an-instruction-prefetch-cfsr-ibuserr-bfar" /><item><title>RE: A bus fault has occurred on an instruction prefetch (CFSR.IBUSERR, BFAR).</title><link>https://devzone.nordicsemi.com/thread/277762?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 09:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cad9f18-b702-4d53-8272-dcfcb28d8518</guid><dc:creator>moon.kim</dc:creator><description>&lt;p&gt;There was an error in my source code.&amp;nbsp;It was a silly question.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A bus fault has occurred on an instruction prefetch (CFSR.IBUSERR, BFAR).</title><link>https://devzone.nordicsemi.com/thread/277748?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 08:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:212d9da8-d509-40d8-be7a-f2c5383d4fbc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you able check what the input paramaters to memset() were when it crashed? Maybe the size input is too big and causing memset() to overflow the input buffer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A bus fault has occurred on an instruction prefetch (CFSR.IBUSERR, BFAR).</title><link>https://devzone.nordicsemi.com/thread/277735?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 08:16:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:321209ad-d9c6-4925-9a5d-cc86280691e6</guid><dc:creator>moon.kim</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Screenshots are attached.&lt;/p&gt;
&lt;p&gt;Whenever the source code is changed, LR changes.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604045736815v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But the call stack is always the same.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604045624927v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1604045638356v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: A bus fault has occurred on an instruction prefetch (CFSR.IBUSERR, BFAR).</title><link>https://devzone.nordicsemi.com/thread/277728?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 07:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d282a6ee-69fd-420a-a33a-488008bc375e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The bus fault is caused by the fact that the program is trying to execute code outside the valid memory range on the nRF52820 (0x2002f9ce), but we have to try trace back to what made the program jump to this address in the first place to determine a root cause. Could you post a screenshot of the call stack when the bus fault has occurred? It may show the last function call the program was executing prior to the exception.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>