<?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>How to force nrf52840 (with cortex m4) to have precise bus error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76722/how-to-force-nrf52840-with-cortex-m4-to-have-precise-bus-error</link><description>Hey! 
 From this link it says one can force the cortex-m4 to disable write buffering. This is supposed to remove imprecise bus errors. 
 To do this i write 1 to bit 1 in the ACTLR using this code 
 
 However I still get imprecise bus errors and cant find</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jun 2021 14:02:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76722/how-to-force-nrf52840-with-cortex-m4-to-have-precise-bus-error" /><item><title>RE: How to force nrf52840 (with cortex m4) to have precise bus error</title><link>https://devzone.nordicsemi.com/thread/317038?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 14:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a782cdea-4660-4bc0-81a5-9ada68fd006f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This may not be very helpful, but I was able to go from a imprecise busfault to a precise busfault after I added your code to my main().&lt;/p&gt;
&lt;p&gt;Crash log before setting the DISDEFWBUF bit:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624543195401v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And after:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624543230462v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Code triggering the bus fault in both cases:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1624543272188v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Maybe it could be worth checking if the DISDEFWBUF bit is still set after the fault exception is raised?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>