<?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>hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/121891/hatdfault-ble-application-on-srf52833-with-s140-softdevice</link><description>Hello, I&amp;#39;m trying to use BLE on nrf52833. I&amp;#39;m developping with segger embedded studio and I&amp;#39; m usign the BLE peripheral example &amp;quot;ble_app_blinky&amp;quot;. Firstly I erased the flash memory and installed the softdevice: 
 nrfjprog --eraseall nrfjprog --program</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Jul 2025 12:28:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/121891/hatdfault-ble-application-on-srf52833-with-s140-softdevice" /><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/544217?ContentTypeID=1</link><pubDate>Thu, 31 Jul 2025 12:28:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6db1be09-fe21-499d-a59a-684168f412d7</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;yes I included all SDH libraries. I&amp;#39;ve gone forward with developing and now, I discoverd that the MWU generate an event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;this the main code:&lt;/p&gt;
&lt;p&gt;int main(void)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; disable_nfc_pins();&amp;nbsp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; checkSystemReset();&lt;br /&gt;&amp;nbsp; &amp;nbsp; ble_stack_init();&lt;br /&gt;&amp;nbsp; &amp;nbsp; BoardInit();&lt;br /&gt;&amp;nbsp; &amp;nbsp; FwAndIDTypeRecognition();&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;////// SETUP RTOOS ///////&lt;br /&gt;&amp;nbsp; &amp;nbsp; AppConfigInit();&lt;br /&gt;&amp;nbsp; &amp;nbsp; EventManagerInit();&lt;br /&gt;&amp;nbsp; &amp;nbsp; board_interface_init();&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;....&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;When the debug reach &amp;quot;BoardInit()&amp;quot; the MWU generate an event reagarding subregion&amp;nbsp;PREGION[0].SUBSTATWA-&amp;gt;SR0.&lt;/p&gt;
&lt;p&gt;If I cancel &amp;quot;BoardInit()&amp;quot; from main and restart the debug, when the debug reach &amp;quot;AppConfigInit()&amp;quot;, the MWU generate an event reagarding subregion&amp;nbsp;PREGION[0].SUBSTATWA-&amp;gt;SR30.&lt;/p&gt;
&lt;p&gt;The debug stop on:&lt;/p&gt;
&lt;p&gt;void app_error_fault_handler(uint32_t id, uint32_t pc, uint32_t info), with id=0x00001001, pc=0x38A5C, info=0x40000000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/539006?ContentTypeID=1</link><pubDate>Thu, 12 Jun 2025 10:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7170850-35a8-4cca-96d4-5145fd7ff20c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Davide,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If this is not the FreeRTOS port from us and you are using some other SDK aswell, then there could be conflicts of resources with the other modules and softdevice. Softdevice owns certains resources and expects them to be untouched/unconfigured while initializing the softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you sure you are including all our SDH libraries (components/libraries/softdevice/common and our port of Freertos files and not just from opensource.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can help me reproduce this on the nRF52DK, then it will be helpful for me to understand the underlying issue. Please note that we do not have the capacity to debug any other SDK solutions other than what is released by us (NordicSemi)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538276?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 14:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:096b65c7-b0bc-4681-8563-5f5cfee2f865</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;I Turbo J,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;actually putting in debug, I notice in the Disassembly pane, that the application starts from the &amp;#39;address 0x26100 instead of 0x000000 where is located the softdevvice. How can do to start the appplication from 0x000000 address? I tried putting in Project options-&amp;gt;Debug-&amp;gt;Loader-&amp;gt;Additional file[0]:s140_nrf52_7.2.0_softdevice.hex, and Additional File Address[0[]=0x000000, but the application alway start from&amp;nbsp; 0x26100.&lt;/p&gt;
&lt;p&gt;Thank you for support,&lt;/p&gt;
&lt;p&gt;Davide&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538253?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 13:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33cb51d7-2ef9-4a63-9477-e00df5799f30</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Check that the debugger is set up correctly.&lt;/p&gt;
&lt;p&gt;We had another case some weeks ago where the debugger was set up to run the processor from the application reset vector - which ignores the required softdevice setup that must be run&amp;nbsp;&lt;em&gt;before&lt;/em&gt; the application start.&lt;/p&gt;
&lt;p&gt;Hard faulting in the first SD call sounds a lot like such a problem.&lt;/p&gt;
&lt;p&gt;I strongly recommend switching to NRF connect SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538229?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 13:25:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:528d6b99-6ab9-4906-9c34-b24dc3eea75c</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;Hello Hieu,&lt;/p&gt;
&lt;p&gt;yes I&amp;#39;m&amp;nbsp; integrate the ble_app_blinky features into UWB with RTOS project. I confirm I&amp;#39;m using&amp;nbsp;nRF5 SDK v17.1.0.&lt;/p&gt;
&lt;p&gt;I started my project with &amp;quot;DWM3001CDK-DW3_QM33_SDK_CLI-FreeRTOS.emProject&amp;quot; example project by Qorvo (UWB with RTOS). Then I added my application and all works fine. Now, I want to add&amp;nbsp; BLE functionalities. So, my steps were as follow:&lt;/p&gt;
&lt;p&gt;1) I modified the linker as shown above.&lt;/p&gt;
&lt;p&gt;2) I installed the&amp;nbsp;s140_nrf52_7.2.0_softdevice.hex as shown above.&lt;/p&gt;
&lt;p&gt;3) I setup following parameters in sdh_config.h:&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_ENABLED 1&lt;/p&gt;
&lt;p&gt;NRF_SDH_BLE_ENABLED 1&lt;br /&gt;NRF_SDH_BLE_VS_UUID_COUNT 1&lt;br /&gt;NRF_SDH_BLE_SERVICE_CHANGED 1&lt;/p&gt;
&lt;p&gt;4) I add following parametrs in Project Options-&amp;gt;Preprocessor-&amp;gt;Preprocessor Definitions:&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_PRESENT&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;S140&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;NRF_SD_BLE_API_VERSION=7&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;5) I compiled the application (WITHOUT add BLE functionalities) and everything continues to work well.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;6) Then, in&amp;nbsp; main.c, after board initialization, I added BLE call as follow:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;span style="color:#0000ff;"&gt;int main(void) {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp;disable_nfc_pins();&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp;BoardInit();&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp; &amp;nbsp;&lt;strong&gt;APP_ERROR_CHECK(nrf_sdh_enable_request())&lt;/strong&gt;;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;span style="color:#0000ff;"&gt;&amp;nbsp;......&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;span style="color:#0000ff;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;In debug mode, when I go into&amp;nbsp;&lt;em&gt;APP_ERROR_CHECK(nrf_sdh_enable_request()&lt;/em&gt;, the debug jump to&amp;nbsp;&lt;em&gt;SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, &lt;/em&gt;and right after click &amp;quot;Step Into&amp;quot;,&amp;nbsp;the debug stop at&amp;nbsp;void vPortSVCHandler( void ) and the register values are like there:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&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/pastedimage1749129702372v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Go forward&amp;nbsp; 1 step and the debug goes to hardfault handler, and&amp;nbsp; the register values are there:&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&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/pastedimage1749129736422v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;I hope I have been clear, and you can help me.&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Best regards,&lt;/p&gt;
&lt;p style="margin:0px;text-indent:0px;"&gt;Davide&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538199?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 11:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a13e34-f5d4-4749-9aa6-75c830f40996</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hello Davide,&lt;/p&gt;
&lt;p&gt;I am a little confused now. Are you having the hardfault with the unmodified ble_app_blinky example, or are you trying to integrate the ble_app_blinky features into your UWB with RTOS project?&lt;/p&gt;
&lt;p&gt;If you are working on an unmodified example, then please check your SEGGER Embedded Studio&amp;nbsp;version. nRF5 SDK v17.1.0 was&amp;nbsp;tested and released with SES v5.42a. That is the version you should use.&lt;/p&gt;
&lt;p&gt;If you are working on integrating BLE into your UWB project, then please give some more information about your project. It&amp;nbsp;might be outside of my expertise then, but Susheel will return next week&amp;nbsp;and resume helping you in this case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538161?ContentTypeID=1</link><pubDate>Thu, 05 Jun 2025 07:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08552a0f-56cb-4c6c-a729-01ce353dc103</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;Another test:&lt;/p&gt;
&lt;p&gt;just the debug call:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SVCALL(SD_SOFTDEVICE_ENABLE, uint32_t, sd_softdevice_enable(nrf_clock_lf_cfg_t const * p_clock_lf_cfg, nrf_fault_handler_t fault_handler));&lt;/p&gt;
&lt;p&gt;the debug stop at&amp;nbsp;void vPortSVCHandler( void ) and the register values are there:&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/pastedimage1749109984910v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Go forward by 1 step and the debug goes to hardfault handler, and&amp;nbsp; the register values are there:&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/pastedimage1749110052469v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I hope it is usefull to solve the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538089?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 14:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4da6715f-3876-4793-9a02-052e11010c74</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;isn&amp;#39;t a new project. It&amp;#39;s an old project in Segger embedded studio with Qorvo DWM3001C (nrf52833). In this project I use UWB ranging and Rtos. Now, I must add BLE functions, but it doen&amp;#39;t work! I think it&amp;#39;s very hard convert the segger eproject into nRf Connect SDK!&lt;/p&gt;
&lt;p&gt;I hope you can help me.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Davide&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/538070?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 13:20:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb4c7bd3-b2ef-4d3d-bf63-a35b26163878</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Davide,&lt;/p&gt;
&lt;p&gt;Before we dive further into this, are you starting a new project? If you are, then we strongly recommend you use &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/index.html"&gt;the nRF Connect SDK&lt;/a&gt; instead. There are free online courses on &lt;a href="https://academy.nordicsemi.com/"&gt;our Developer Academy page&lt;/a&gt; to help you getting started with it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/537984?ContentTypeID=1</link><pubDate>Wed, 04 Jun 2025 07:31:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72d86102-63b1-4e8b-9a28-7141cdf4eed6</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;I made another test. I wrote following this simple main.c:&lt;br /&gt;&lt;br /&gt;disable_nfc_pins();&amp;nbsp;&lt;br /&gt;BoardInit();&lt;br /&gt;APP_ERROR_CHECK(nrf_sdh_enable_request());&lt;/p&gt;
&lt;p&gt;When execute&amp;nbsp;APP_ERROR_CHECK(nrf_sdh_enable_request()), the appplication goes in hardfault and the message by hardfault handler are as followos:&lt;br /&gt;&lt;br /&gt;Cause: The processor has attempted to execute an undefined instruction.&lt;br /&gt;HARD FAULT at 0x4DB59EF4&amp;nbsp; R0:&amp;nbsp; 0x00000000&amp;nbsp; R1:&amp;nbsp; 0x00000000&amp;nbsp; R2:&amp;nbsp; 0x00000000&amp;nbsp; R3:&amp;nbsp; 0x200108A0&lt;br /&gt;&amp;nbsp; R12: 0x00000000&amp;nbsp; LR:&amp;nbsp; 0x4DB59EF5&amp;nbsp; PSR: 0x6100000B&lt;br /&gt;Cause: The processor has attempted to execute an undefined instruction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/537887?ContentTypeID=1</link><pubDate>Tue, 03 Jun 2025 13:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac90f1bf-0632-4d88-a71d-eb75b7cde504</guid><dc:creator>Davide Renzetti</dc:creator><description>&lt;p&gt;Hi Susheel,&lt;/p&gt;
&lt;p&gt;I thought it was a stack or heap size problem, so I enlarged a lot their size, but I always have hardfaut. I enabled the hardfault handler. These are the results:&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;HARD FAULT at 0x00000000&amp;nbsp; R0:&amp;nbsp; 0x00000000&amp;nbsp; R1:&amp;nbsp; 0x00000000&amp;nbsp; R2:&amp;nbsp; 0x20002C00&amp;nbsp; R3:&amp;nbsp; 0x200108A0&lt;br /&gt;&amp;nbsp; R12: 0x00000000&amp;nbsp; LR:&amp;nbsp; 0x00000000&amp;nbsp; PSR: 0x2000000B&lt;br /&gt;Cause: The processor has attempted to execute an instruction that makes illegal use of the EPSR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hatdfault BLE application on srf52833 with s140 softdevice</title><link>https://devzone.nordicsemi.com/thread/537553?ContentTypeID=1</link><pubDate>Fri, 30 May 2025 20:29:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89e3e0cc-ad34-4918-b51b-f8582fc95eb4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Davide,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please enable the serial logs and give us some details of the hardfault on your serial logs. Also make sure you enable&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;HARDFAULT_HANDLER_ENABLED to 1 in your sdk_config.h&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;There also an &lt;a href="https://jimmywongiot.com/2019/02/11/how-to-add-the-hardfault-handler-on-nrf-sdk/"&gt;external blog&lt;/a&gt;&amp;nbsp;you can use to try to attempt to debug the hardfault to get the context of where the hardfault happens.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>