<?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>problem with 0x8C8 line</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60234/problem-with-0x8c8-line</link><description>Hello! I&amp;#39;ve have been designing a custom board. The circuit reads ADC channel 1 for long periods, 1 hour at most. When the reading is high enough it will send an alert using ble_nus_data_send. Sometimes the circuit stops at the address 0x8C8 
 
 The guy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2020 08:51:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60234/problem-with-0x8c8-line" /><item><title>RE: problem with 0x8C8 line</title><link>https://devzone.nordicsemi.com/thread/245455?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53df0961-64c0-4766-b71d-eea15dde925d</guid><dc:creator>bjorn-spockeli</dc:creator><description>[quote user="gercer"]Should I erase the flash memory often to avoid writing outside the mapped flash?[/quote]
&lt;p&gt;&amp;nbsp;No, its usually incorrect or corrupted values that cause&lt;span&gt;&amp;nbsp;the CPU is instructed to write to a protected flash region or branch to an address outside the mapped flash.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So I would recommend using the &lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/lib_hardfault.html?resultof=%22%48%61%72%64%46%61%75%6c%74%22%20%22%68%61%72%64%66%61%75%6c%74%22%20%22%68%61%6e%64%6c%69%6e%67%22%20%22%68%61%6e%64%6c%22%20%22%6c%69%62%72%61%72%79%22%20%22%6c%69%62%72%61%72%69%22%20"&gt;HardFault handling library&lt;/a&gt;&amp;nbsp;in SDK v15.2.0 to debug the issue.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with 0x8C8 line</title><link>https://devzone.nordicsemi.com/thread/245307?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 17:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3a7b467-bf74-4b6d-a6de-f4d00a689719</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Thank you for the answer&lt;br /&gt;Im using SDK 15.2.&lt;br /&gt;&lt;br /&gt;Should I erase the flash memory often to avoid writing outside the mapped flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem with 0x8C8 line</title><link>https://devzone.nordicsemi.com/thread/245163?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 08:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6ccc72a-88d6-4ebc-be24-da3422b86619</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Gerardo,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which SDK version are you using? There is a known issue in SDK v15.3.0 for ble_nus_data_send, see&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51621/hardfault-ble_nus_send_data"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/51621/hardfault-ble_nus_send_data&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As stated in the question you linked to, address 0x8C8 is the HardFault handler of the MBR. HardFaults typically occur when the CPU is instructed to write to a protected flash region or branch to an address outside the mapped flash . In the known issue with ble_nus_data_send the issue was that the&amp;nbsp;p_nus-&amp;gt;data_handler was a null pointer.&lt;/p&gt;
&lt;p&gt;The issue in the case you referred to was that some preprocessor definitions were missing, which caused the incorrect SD APIs being used and this caused a Hardfault. The map file for your application adn the blinky application can be found in the&amp;nbsp;Output\Release\Exe or Debug folder after compiling the SES project.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>