<?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>SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99943/sdk_error-observed</link><description>Hi Team, 
 
 I&amp;#39;m developing a custom app, based on the ble_app_uart. 
 
 I&amp;#39;m observing a error : SDK_ERROR (NRF_FAULT_ID_SDK_ERROR). 
 I&amp;#39;m unable to root cause it and also unable to get any information about this error. 
 I even though got the error details</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jun 2023 10:15:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99943/sdk_error-observed" /><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/430687?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 10:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba7bcde-3997-43a1-af3b-cadcc5efb650</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, the bootloader includes the DFU functionality. See &amp;#39;&lt;a title="DFU bootloader examples" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/examples_bootloader.html?cp=9_1_4_4"&gt;DFU bootloader examples&lt;/a&gt;&amp;#39; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/430561?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 16:11:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa3554f6-2965-4326-89d7-dc8294d1b304</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;ok, then i need to debug the bootloader issue.&lt;/p&gt;
&lt;p&gt;Also, is the bootloader pre-configured with DFU functionality in the nRF52810 chip (not the development kit) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/430548?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 14:54:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec7d3421-7592-4ee0-8f2d-880bef3d2c9f</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, this is the bootloader we include in this SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/430544?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2023 14:33:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:081a2eca-dde9-4eb6-92b8-c1689770655b</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Can you please confirm it ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/429270?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f25efd9-d41e-4963-add4-3675fbf9b67f</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Is the dfu/secure_bootloader is the one that i must use to support DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/429268?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2751aa64-5ff9-4c23-bd4d-3036e9c1c620</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you need a bootloader to support DFU.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/429267?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 11:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7620dc8c-7db5-41a0-8e54-898b7a05fccc</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank You for the information.&lt;/p&gt;
&lt;p&gt;I would like to know is the dfu/secure_bootloader is mandatory to perform the DFU over BLE ?&lt;/p&gt;
&lt;p&gt;From multiple forums I realized that its is required but i guess the DFU over BLE can work even without dfu/secure_bootloader.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428792?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 14:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e008c7b7-7165-411f-8f28-7cf89bb811b3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is as expected. The example is configured to enter System OFF (deep sleep) after 3 minutes of inactivity, which is not possible to do when the chip is in debug interface mode. If you disconnect the debugger the chip will power down after 3 minutes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428784?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 14:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77fe2453-0992-4482-a6f7-90eb06cdbd1b</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok, let me try.&lt;/p&gt;
&lt;p&gt;In the mean time I encountered another issue with ble_app_uart application.&lt;/p&gt;
&lt;p&gt;I didnt perform any change to the sdk or application, &amp;amp; flashed pca10040e project to nRF52832 ( I believe this is do-able ).&lt;/p&gt;
&lt;p&gt;The application crashes after ~3mins. Below is the crash details.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685627997765v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428755?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 13:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6dbe455-db05-4662-a608-65ef7c8394ec</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This project has the correct memory configuration to run on the nrf52810. Can you try to debug with the bootloader project and see if you can find out where it crashes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428751?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 13:16:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1cb3b56-0b6a-432d-89bd-eaa10303cfc0</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the project at location examples\dfu\secure_bootloader\pca10040e_s112_ble\ses.&lt;/p&gt;
&lt;p&gt;And even the flag&amp;nbsp;DEVELOP_IN_NRF52832 is defined in the project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428631?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 08:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bea2e8a-249c-434b-b65c-b12896289809</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Then the problem isn&amp;#39;t with the application, but with the bootloader. Please double check that the bootloader project you selected is configured to run on the nRF52810 and not some other nRF52 variant.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428592?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 05:14:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef80e5c-c649-4473-a8e4-827258a8030b</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/99943/sdk_error-observed/428425"]Are you able to run the application if you only program the Softdevice and application without the bootloader?[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/99943/sdk_error-observed/428425"]Because the stack pointer is well &lt;span&gt;beyond&lt;/span&gt; the valid address range for RAM (which ranges from 0x20000000 to &lt;span&gt;0x20006000).&lt;/span&gt;[/quote]
&lt;p&gt;ok&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/99943/sdk_error-observed/428425"]It&amp;#39;s not reaching main(), but is it reaching the application&amp;#39;s reset handler?[/quote]
&lt;p&gt;Its not even reaching the application&amp;#39;s reset handler, i tried by keeping a breakpoint in reset handler.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/99943/sdk_error-observed/428425"]The bootloader will not be able to boot the application unless you also program a valid bootloader settings page along with it[/quote]
&lt;p&gt;Thanks for the information but i was expecting the project&amp;nbsp;&lt;span&gt;dfu\secure_bootloader will have the valid bootloader settings and while flashing the nordic device via JLink, it also writes the bootloader settings as well. If this is not the case, then&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;can bootloader setting be written via JLink ?&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Is DFU Secure Bootloader MANDATORY to perform DFU via BLE ?
&lt;ol&gt;
&lt;li&gt;As, i was trying to add bootloader to enable the DFU via BLE&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I guess the issue is with the bootloader setting, as i erased the complete flash via JLink and only flashed the Application + Soft Device via JLink, and i have it working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428425?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 11:20:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36256015-357c-4b81-b516-a737d8782cf3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="sa.qw"]Can you help me with some pointer on how to debug it or how you will debug it.[/quote]
&lt;p&gt;Are you able to run the application if you only program the Softdevice and application without the bootloader?&lt;/p&gt;
[quote user="sa.qw"]Also how you got to know that its a&amp;nbsp;&lt;span&gt;corrupted/invalid stack pointer, as I least expect it because i have a simple application and the execution never comes the Application, it crashes even before it.&lt;/span&gt;[/quote]
&lt;p&gt;Because the stack pointer is well &lt;span&gt;beyond&lt;/span&gt; the valid address range for RAM (which ranges from 0x20000000 to &lt;span&gt;0x20006000).&lt;/span&gt;&lt;/p&gt;
[quote user="sa.qw"]I have reasons to say that its not occurring in or due Application as execution never reaches there.[/quote]
&lt;p&gt;It&amp;#39;s not reaching main(), but is it reaching the application&amp;#39;s reset handler?&lt;/p&gt;
[quote user="sa.qw"]I first use the project dfu\secure_bootloader to write the bootloader (+soft device), then use my project to write the application + soft device. I hope its not an issue.[/quote]
&lt;p&gt;The bootloader will not be able to boot the application unless you also program a valid bootloader settings page along with it. See&amp;nbsp;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5"&gt;Combine application, bootloader and softdevice image - Bootloader setting&lt;/a&gt;.&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428236?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:48:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3bae1fd-43f9-43a6-955f-b1c7f891d02a</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Sorry to say but I couldn&amp;#39;t upload the complete code base.&lt;/p&gt;
&lt;p&gt;Can you help me with some pointer on how to debug it or how you will debug it.&lt;/p&gt;
&lt;p&gt;Also how you got to know that its a&amp;nbsp;&lt;span&gt;corrupted/invalid stack pointer, as I least expect it because i have a simple application and the execution never comes the Application, it crashes even before it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I have reasons to say that its not occurring in or due Application as execution never reaches there.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, yes I have also added the bootloader.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And FYI, am uploading the binaries (bootloader / soft device / application) though JLINK !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I first use the project dfu\secure_bootloader to write the bootloader (+soft device), then use my project to write the application + soft device. I hope its not an issue.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428235?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec743564-be84-49ea-abe9-094aff043716</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Do you have a bootloader present when you&amp;#39;re debugging this? In other words, are you sure the crash is occuring in the application and not in the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428230?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02ddb25d-0be6-4dbe-a673-605c6713ea85</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I&amp;#39;m not seeing any errors in your project file or in flash_placement.xml. Are you able to upload the whole project so I can try to debug it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428224?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 14:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bc956cd-176c-4c3a-a9bd-eacafdc2e0e8</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Uploading by project file.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5153.ble_5F00_app_5F00_uart_5F00_pca10040e_5F00_s112.zip"&gt;devzone.nordicsemi.com/.../5153.ble_5F00_app_5F00_uart_5F00_pca10040e_5F00_s112.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;*Zipping it as it doesn&amp;#39;t allow me to upload .emProject file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/428120?ContentTypeID=1</link><pubDate>Tue, 30 May 2023 09:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26032eb0-603f-49ae-b67b-a579ec26322a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please upload your project file too (*.emProject). From the images you posted I see that you have a corrupted/invalid stack pointer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/427878?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 15:47:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f2b42cd-d911-40fa-b6b4-055803a4aaa5</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Below are the details with SES v5.42a :-&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685115638924v1.png" /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;If I continue execution, it go to the address 0x781b330a and on every continue be there.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685115729605v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Also, in the release notes, SES v4.50 is mentioned. Hence, I even tried with v4.50 and below are the details on crash:-&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685115893793v3.png" /&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;And continuing the execution, below are register values (same as that of SES v5.42a&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685115973736v4.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, using the project&amp;nbsp;saadc_pca10040e, works fine (on all SES versions).&lt;/p&gt;
&lt;p&gt;The above logs are for project&amp;nbsp;ble_app_uart_pca10040e_s112.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I even tried to place a breakpoint at the first instruction in&amp;nbsp;Reset_Handler() at instruction &amp;quot;&lt;em&gt;b nRFInitialize&lt;/em&gt;&amp;quot;, even then the execution didnt stop at this first instruction and instead directly shows the instruction at address 0xA60.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;From few posts it looks like it could be related to the Flash Placement (note - I didn&amp;#39;t change it), hence attaching the flash_placement.xml.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2844.flash_5F00_placement.xml"&gt;devzone.nordicsemi.com/.../2844.flash_5F00_placement.xml&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/427758?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 11:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87dd5685-f26c-4690-b78d-96d7623c750c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem. The disassembly view shows that the program hangs in the MBR&amp;#39;s hardfault handler. If you make the debugger continue execution, you should see that the program execution ends up in the hardfault handler declared in the application.&lt;/p&gt;
&lt;p&gt;Can you post a screenshot of the CPU registers when the CPU is halted at 0xa60? It may give us a clue as to why the exception was raised.&lt;/p&gt;
[quote user="sa.qw"]I&amp;#39;m using the Segger Embedded Studio v7.22, nRF5 SDK v17.0.2 and application&amp;nbsp;ble_app_uart[/quote]
&lt;p&gt;I recommend you use an older version to avoid issues with our example projects. The&amp;nbsp;SDK 17.x was tested with Embedded studio version v5.42a (mentioned in the release notes), and there were some breaking changes introduced after v6.20&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/427639?ContentTypeID=1</link><pubDate>Fri, 26 May 2023 04:37:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86362501-47f9-4345-bd05-06dc705d8565</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Thanks Vidar.&lt;/p&gt;
&lt;p&gt;That helps.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, recently i ran into a new problem.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;changed the Optimization Level from &amp;quot;Level 2 for size&amp;quot; to &amp;quot;Level 0&amp;quot;, the build failed due to size.&lt;/p&gt;
&lt;p&gt;Then i changed back the Optimization Level to &amp;quot;Level 2 for size&amp;quot;.&lt;/p&gt;
&lt;p&gt;But after that when&amp;nbsp;I start the debugging, the execution never halts at main().&lt;/p&gt;
&lt;p&gt;Instead it Halts at 0xa60 location&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1685075488309v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I guess it has crashed as the output log mentions about the HardFault:-&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;Preparing target for download&lt;br /&gt;Executing Reset script TargetInterface.resetAndStop()&lt;br /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Downloading &amp;lsquo;s112_nrf52_7.2.0_softdevice.hex&amp;rsquo; to J-Link&lt;br /&gt;Programming 2.7 KB of addresses 00000000 &amp;mdash; 00000aff&lt;br /&gt;Programming 95.9 KB of addresses 00001000 &amp;mdash; 00018feb&lt;br /&gt;J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (32768 bytes)&lt;br /&gt;J-Link: Flash download: Total: 1.209s (Prepare: 0.079s, Compare: 0.083s, Erase: 0.670s, Program &amp;amp; Verify: 0.352s, Restore: 0.022s)&lt;br /&gt;J-Link: Flash download: Program &amp;amp; Verify speed: 91 KB/s&lt;br /&gt;Download successful&lt;br /&gt;Downloading &amp;lsquo;ble_app_uart_pca10040e_s112.elf&amp;rsquo; to J-Link&lt;br /&gt;Programming 27.3 KB of addresses 00019000 &amp;mdash; 0001fd44&lt;br /&gt;Programming 0.1 KB of addresses 0001fd48 &amp;mdash; 0001fdbb&lt;br /&gt;J-Link: Flash download: Bank 0 @ 0x00000000: Skipped. Contents already match&lt;br /&gt;Download successful&lt;br /&gt;Stopped by vector catch HardFault FORCED IACCVIOL BusFault STKERR&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using the Segger Embedded Studio v7.22, nRF5 SDK v17.0.2 and application&amp;nbsp;ble_app_uart&lt;/p&gt;
&lt;p&gt;Can you please help here as am stuck on this one for quick long.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/427141?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 08:54:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d379be5-ec78-420f-b844-4bf89c9b3d82</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any project settings that will make SES output a dissambly file, but you can view it by right clicking on the executable (or source file) and select &amp;quot;view disassembly&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1684918489107v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/427059?ContentTypeID=1</link><pubDate>Wed, 24 May 2023 03:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49481f74-31c7-4d4b-9044-a8e5d65d5ed2</guid><dc:creator>sa.qw</dc:creator><description>&lt;p&gt;Thank You Vidar.&lt;/p&gt;
&lt;p&gt;I was able to see it by checking the memory address, but this approach is even better.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also,&amp;nbsp;Vidar can you help me to generate disassembly file (*.dis) in Segger Embedded Studio which will help to to debug &amp;amp; view the complete code in disassembly.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I know that the&amp;nbsp;&lt;code&gt;--disassemble, can be used to generate the disassembly but i didnt get the option/place to add this and i guess the Segger Embedded Studio must already have the feature to generate it.&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK_ERROR observed</title><link>https://devzone.nordicsemi.com/thread/426526?ContentTypeID=1</link><pubDate>Mon, 22 May 2023 11:32:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a23e1dc-b756-4978-aa4b-9950642fad30</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please right click on the &amp;#39;p_file_name&amp;#39; variable highlighted below and select &amp;#39;string&amp;#39;. The value field will then display the file path to the file where the code assert was raised. The error occurred at line&amp;nbsp;1213 (0x4bd) in this file, and the error code was 0x11 (NRF_ERROR_BUSY).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1684754920364v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>