<?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>using functions in nrf_flash.c with nrf5_SDK_for_Mesh_v1.0.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30854/using-functions-in-nrf_flash-c-with-nrf5_sdk_for_mesh_v1-0-0</link><description>I am developing a Bluetooth Mesh program to run on the nRF52832 development board. I started by modifying the &amp;quot;nrf5_SDK_for_Mesh_v1.0.0_src\examples\light_switch\server&amp;quot; program which I have already tested to work the the board running the &amp;quot;nrf5_SDK_for_Mesh_v1</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2018 15:41:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30854/using-functions-in-nrf_flash-c-with-nrf5_sdk_for_mesh_v1-0-0" /><item><title>RE: using functions in nrf_flash.c with nrf5_SDK_for_Mesh_v1.0.0</title><link>https://devzone.nordicsemi.com/thread/122160?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 15:41:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:127e6081-9cce-4378-a399-a999719110a8</guid><dc:creator>leonwj</dc:creator><description>&lt;p&gt;Yes, there are 2 vector tables in play... On ARM Cortex-Mx there is a system vector table @0x00000000 and then your application will&amp;nbsp;store a vector table of all your implemented handlers at its base address... (Although it&amp;#39;s related to a different issue, RK explains it fairly well on this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/6762/writing-an-spi-bootloader-for-nrf51822---no-softdevice-in-bl/23740#23740"&gt;post&lt;/a&gt; from a few years back.)&lt;/p&gt;
&lt;p&gt;Looking at the included table below, you should find that the 0x08c8 address is reached via the 0x08c5 entry in the HardFault index (see offset 0x0C).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="http://infocenter.arm.com/help/topic/com.arm.doc.dui0497a/graphics/vector_table.svg" /&gt;&lt;/p&gt;
&lt;p&gt;As I mentioned above, I would recommend that you implement your own handler&amp;nbsp;to determine the exact hardfault reason and the exact line/location which caused it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using functions in nrf_flash.c with nrf5_SDK_for_Mesh_v1.0.0</title><link>https://devzone.nordicsemi.com/thread/122153?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 14:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93efc540-a66e-4cd0-b39e-de35b93b982f</guid><dc:creator>aleccontrol</dc:creator><description>&lt;p&gt;Looks like you may be right that it is likely a Hard Fault but happening somewhere in the softdevice because when I wrote other codes that may have crashed the processor the debugger stop at the same place 0x8c8. Now I have to find out how to determine the source of the hard faults....&lt;/p&gt;
&lt;p&gt;Questions:&amp;nbsp; Is there another, different HardFault_handler in the softdevice that is different from the HardFault_Handler in the example application code provided by the mesh stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using functions in nrf_flash.c with nrf5_SDK_for_Mesh_v1.0.0</title><link>https://devzone.nordicsemi.com/thread/122053?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 07:49:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fd1be27-0145-421f-91fb-23c6455602bb</guid><dc:creator>aleccontrol</dc:creator><description>&lt;p&gt;Thank you for the suggestion.&amp;nbsp; My program only starts from address 0x23000 and my map listing does not show the content of functions before the starting address 0x23000. Also the HardFault_Handler function found in the nrf_mesh_sdk is located at 0x235cc, as shown below.&lt;/p&gt;
&lt;p&gt;&lt;img height="84" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1519717567210v1.png" width="611" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I believe the flash memory before 0x23000 is likely to be occupied by the softdevice.&amp;nbsp; Does the linker map provide any clue about functions in the softdevice that is not part of my program?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using functions in nrf_flash.c with nrf5_SDK_for_Mesh_v1.0.0</title><link>https://devzone.nordicsemi.com/thread/122008?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 20:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae8d2b5f-9285-4633-be0b-5af632a8b831</guid><dc:creator>leonwj</dc:creator><description>&lt;p&gt;Based upon the screenshot you provided, it appears to be in the HardFault Handler (which you can confirm on your end by either looking at the vector table pointers and/or the .map file).&lt;/p&gt;
&lt;p&gt;Once you confirm the above, it&amp;#39;s then a simple matter of tracing back to determine&amp;nbsp;the exact hardfault reason and the exact line/location which caused it.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>