<?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>Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68517/getting-hard-fault-when-launching-application-from-custom-boot-loader</link><description>I am building a custom boot loader to work with out application on a custom board based on the UBLOX NINA-302 module. The boot loader will use USB as the only connection and that will use a USB driver we already developed for the application. The idea</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jan 2021 16:26:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68517/getting-hard-fault-when-launching-application-from-custom-boot-loader" /><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/291858?ContentTypeID=1</link><pubDate>Thu, 28 Jan 2021 16:26:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5f101f5-2896-4d1a-ba99-ea15052fb4bc</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I have resolved this issue by including the MBR in the firmware load, using it as a bootstrap to bring up my boot loader.&amp;nbsp; My boot loader starts at 0x1000 so the MBR jumps into it directly after running.&amp;nbsp; My bootloader uses a modified&amp;nbsp; nrf_bootloader_app_start module to launch my application.&amp;nbsp; After discovering that interrupts were causing erratic behavior I was able to determine that the MBR would solve this using &amp;quot;interrupt forwarding&amp;quot;.&amp;nbsp; It required some digging but I was finally able to find detailed information on the MBR boot process in the DevZone and was able to assemble the various modifications required for my needs.&amp;nbsp; This is up and running now with full interrupt support and I ma moving onto other issues.&amp;nbsp; Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/289852?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2021 16:50:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e800f200-2d47-4b1b-8e60-8068404fdbf2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I ran your projects and they seems to run correctly until I hit a HardFault&amp;nbsp;inside&amp;nbsp;nrf_drv_clock_hfclk_request() in sys_init/init_power_clock. I tracked this down to the&amp;nbsp;CRITICAL_REGION_EXIT() macro at the end of the function, and specifically the call to __enable_irq(). The debugger reports that the application is in the Hardfault_Handler in the bootloader. Are you seeing the same problem, or are you able to pass this function call in the application? I would need to look some more into why this is happening.&lt;/p&gt;
[quote user="henryh"]1.) My application does not use an soft devices and I am running ESB for my wireless protocol.&amp;nbsp; My plan is to write a simple boot loader that passes to the application using nrf_bootloader_app_start() with the vector table address changed to my application load address.&amp;nbsp; Does this require a MBR? Is the MBR automatically inserted into a code load when running SES?&amp;nbsp; If it does require an MBR where can I find detailed information on how to use it (please be specific)?[/quote]
&lt;p&gt;The MBR is used for jumping to the bootloader (which is normally placed at the end of flash), and together with the softdevice. I cannot see any reasons that you should need it for your use-case. The MBR is a separate hex-file, it will not be merged with the application during build/flashing. The softdevice hex-files includes the MBR, but it is also available as a standalone hex-file for use with other bootloaders. Some SES projects are configured to flash the MBR hex-file along with the application (see Debug &amp;gt; Loader &amp;gt; Additional Load File[0]), but this is not the case with the projects you are using.&lt;/p&gt;
[quote user="henryh"]2.) Recently I wrote the application into flash with SES, switched to the boot loader and wrote it to memory.&amp;nbsp; With this setup my code seemed to work until I erased all flash and tried to repeat the operation.&amp;nbsp; After that point I could not get the application to launch from the boot loader (getting hard error).&amp;nbsp; This suggests to me that the successful application boot was using something that was erased in the chip erase operation. I had previously been working with the application in a standard development environment (loaded at 0x0) so there was code in there that was obviously being used to run the application.&amp;nbsp; Any idea how this might have worked?[/quote]
&lt;p&gt;That sounds very strange, I would not think that any code outside the written bootloader/application areas should run. I have not seen this behavior with the projects you uploaded.&lt;/p&gt;
[quote user="henryh"]3.) When attempting to launch the application from the bootloader, I can follow execution from the application interrupt vector for a period of time but the it hits a hard fault whenever I let it free run.&amp;nbsp; I suspect this is caused by a Nordic library module (USBD perhaps or ESB) that has an invalid jump address due to an incorrect SES build configuration.&amp;nbsp; What is the correct procedure to configure SES to generate an image with a starting address other than 0x0?&amp;nbsp; Do I need to allocate the flash memory range for soft devices to support Nordic library usage even though I am not using a soft device?[/quote]
&lt;p&gt;I do not have a lot of experience with other setups than the one used by the SDK (MBR/softdevice in start of flash, bootlaoder at end of flash), but in theory it should just be to move the application start address and provide the correct address in the booloader. I&amp;#39;m not sure how ESB or USBD should be able to perform such a jump, that must be related to some interrupt handling or something similar. Changing the &amp;quot;Section Placement Macros&amp;quot; option should be sufficient to move the application in flash.&amp;nbsp;&lt;/p&gt;
[quote user="henryh"]4.) The DFU module literature talks about using nrfprog to process an application for download into the Nordic flash memory allocation scheme.&amp;nbsp; Is nrfprog remapping the application to the target address as part of this processing?[/quote]
&lt;p&gt;Can you provide an exact link to where you read this? I&amp;#39;m not aware of any such features in nrfjprog. DFU are normally handled by nrfutil.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/288959?ContentTypeID=1</link><pubDate>Wed, 13 Jan 2021 14:20:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db476bb1-e37f-4b7c-b15d-899a9a5dbb23</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;So I sent you the project files this morning in a private message but have some questions:&lt;/p&gt;
&lt;p&gt;1.) My application does not use an soft devices and I am running ESB for my wireless protocol.&amp;nbsp; My plan is to write a simple boot loader that passes to the application using nrf_bootloader_app_start() with the vector table address changed to my application load address.&amp;nbsp; Does this require a MBR? Is the MBR automatically inserted into a code load when running SES?&amp;nbsp; If it does require an MBR where can I find detailed information on how to use it (please be specific)?&lt;/p&gt;
&lt;p&gt;2.) Recently I wrote the application into flash with SES, switched to the boot loader and wrote it to memory.&amp;nbsp; With this setup my code seemed to work until I erased all flash and tried to repeat the operation.&amp;nbsp; After that point I could not get the application to launch from the boot loader (getting hard error).&amp;nbsp; This suggests to me that the successful application boot was using something that was erased in the chip erase operation. I had previously been working with the application in a standard development environment (loaded at 0x0) so there was code in there that was obviously being used to run the application.&amp;nbsp; Any idea how this might have worked?&lt;/p&gt;
&lt;p&gt;3.) When attempting to launch the application from the bootloader, I can follow execution from the application interrupt vector for a period of time but the it hits a hard fault whenever I let it free run.&amp;nbsp; I suspect this is caused by a Nordic library module (USBD perhaps or ESB) that has an invalid jump address due to an incorrect SES build configuration.&amp;nbsp; What is the correct procedure to configure SES to generate an image with a starting address other than 0x0?&amp;nbsp; Do I need to allocate the flash memory range for soft devices to support Nordic library usage even though I am not using a soft device?&lt;/p&gt;
&lt;p&gt;4.) The DFU module literature talks about using nrfprog to process an application for download into the Nordic flash memory allocation scheme.&amp;nbsp; Is nrfprog remapping the application to the target address as part of this processing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/288686?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 14:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68340b4c-f295-4cd2-b1d6-6c9d2b3dc347</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I should get a response out to you today.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/288676?ContentTypeID=1</link><pubDate>Tue, 12 Jan 2021 13:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6da4111-28a3-46b6-a136-3781e7ff0abc</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I sendt you a PM regarding the project. Please let me know if you need further assistance with this and can provide the requested project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/286163?ContentTypeID=1</link><pubDate>Mon, 21 Dec 2020 18:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492ba0e9-8661-4b3d-b3d8-d88a016cfbc8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure I understand exactly what you mean. Is the 8 bytes written to a specific address?&amp;nbsp;Bootloader could be writing to the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___m_b_r___d_e_f_i_n_e_s.html#ga21a55e684b30e9dabbf86859cd788b1a"&gt;MBR_BOOTLOADER_ADDR&lt;/a&gt;&lt;span&gt;&amp;nbsp;(0xFF8) and/or&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.2.0/group___n_r_f___m_b_r___d_e_f_i_n_e_s.html#ga484c4af853d1bc7af068b159746ef1ad"&gt;MBR_PARAM_PAGE_ADDR&lt;/a&gt;&amp;nbsp;(0xFFC).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you provide the hex file, map files, and a flash dump of the device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/285717?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2020 19:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94b86c2e-610a-4bbd-9b04-8981869b7424</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I have verified that my bootloader is placing 8 bytes of data outside of the flash range reserved in the &amp;quot;section placement macros&amp;quot; in SES. The boot loader was set to start at 0x00000 with a size of 0x10000 and the application at 0x10000 with a size of 0x20000.&amp;nbsp; This arrangement doesn&amp;#39;t work since the boot_loader overwrites part of the application image if it is loaded second.&amp;nbsp; Interestingly the 8 bytes are not contiguous but seem to be related to functions calls from the boot loader to NRF routines (2 examples follow). &lt;/p&gt;
&lt;p&gt;static void lfclk_request(void)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret_code_t err_code = nrf_drv_clock_init();&lt;br /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ERROR_CHECK(err_code);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_drv_clock_lfclk_request(NULL);&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;static void init_power_clock(void)&lt;br /&gt;{&lt;br /&gt; ret_code_t ret;&lt;/p&gt;
&lt;p&gt;/* Initializing power and clock */&lt;br /&gt; ret = nrf_drv_clock_init();&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; ret = nrf_drv_power_init(NULL);&lt;br /&gt; APP_ERROR_CHECK(ret);&lt;br /&gt; nrf_drv_clock_hfclk_request(NULL);&lt;br /&gt; nrf_drv_clock_lfclk_request(NULL);&lt;br /&gt; while (!(nrf_drv_clock_hfclk_is_running() &amp;amp;&amp;amp; nrf_drv_clock_lfclk_is_running()))&lt;br /&gt; {&lt;br /&gt; /* Just waiting */&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;/* Avoid warnings if assertion is disabled */&lt;br /&gt; UNUSED_VARIABLE(ret);&lt;/p&gt;
&lt;p&gt;return;&lt;br /&gt;}//end function&lt;/p&gt;
&lt;p&gt;I moved the application flash to start at 0x30000 and verified that the boot loader does not interfere with that range.&amp;nbsp; Next I tried to load the full application with a &amp;quot;blinky&amp;quot; in the main line code.&amp;nbsp; This application initializes the system to use the radio (ESB stack), USB, timers, SPI and various software constructs like FIFO&amp;#39;s before running the blinky in main.&amp;nbsp; I found that the system hits a hard fault when calling nrf_timer_task_trigger() in nrfx_timer_enable(), resulting in a constant reboot cycle.&amp;nbsp; The code runs correctly if nrf_timer_task_trigger() is commented out.&amp;nbsp; Any ideas what could be causing this?&lt;/p&gt;
&lt;p&gt;I can send you the updated projects by email but would rather not post them in the forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/284582?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 14:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff092d91-497c-4037-9aff-bf99bf0d4a69</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I have resolved these issues and moved onto the full bootloader, which uses a USB driver based on one of your examples.&amp;nbsp; The bootloader is setup to reside in flash at 0x0000-0xFFFF (64 KB) and the application at 0x20000-0x3FFFF (128 KB).&amp;nbsp; I used this setup to test downloading the application into flash over USB and it worked correctly, including updating the CRC in a parameters block up at 0xFF000.&amp;nbsp; I then download a new boot loader using the emulator in SES and it seems to be placing some NRF functions in the SD space identified in the Nordic literature (below 0x27000).&amp;nbsp; I specifically noted that the USB driver did not function after programming flash, even though it was used in the image download.&amp;nbsp; The section placement macros were set for FLASH_START=0x0 and FLASH_SIZE=0x10000 so I would expect SES to force the boot loader image in that region. I resolved this by moving the application start up to 0x30000 (inside the region reserved for the application the Nordic memory map) but am concerned that I don&amp;#39;t fully understand how the sections are placed in flash. &amp;nbsp; Is there another factor controlling the placement of these NRF functions in flash memory? Do I need to adhere to the Nordic memory map defined in the boot loader user guide?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/284297?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 11:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6eeff581-a867-4a6c-956d-2e31f5516229</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I commented out a few header files that was not included in the packets you provided, for instance crc.h in util.c and nvmem.c, and radio.h in mvmem.c.&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m not able to reproduce this. I just tested, and I hit the breakpoint on &lt;span&gt;nrf_bootloader_app_start(), and I&amp;#39;m able to continue to a breakpoint on&amp;nbsp;nrf_bootloader_app_start_final() which is hit twice before I get a HardFault. I assume this HardFault is expected as the bootloader have branched outside of the debugged application at this point.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. Do this happen with every functions, or just the CRC functions? Is the HardFault happening immediately, or when jumping to the application. Could this be related to that the application works with crc header commented out on my test applications?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Not that I can think of, It should just take care of interrupt handling and then jump to the application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/284207?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 00:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1405a5c-4f0f-4b07-9118-8ca5b2b81184</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;Did you actually change something in the project or the code (beyond adding the LED commands)?&amp;nbsp; This does seem to work now but I have a couple of issues:&lt;/p&gt;
&lt;p&gt;1.) adding a break point on the call to nrf_bootloader_app_start() results in a hard fault.&amp;nbsp; Why is that?&lt;/p&gt;
&lt;p&gt;2.) There seems to be some connection between calling functions before nrf_bootloader_app_start() and a hard fault result.&amp;nbsp; For example, a call to my CRC function to validate the application always results in a hard fault but replacing it with a simple query of a flag in flash memory (for example, the application size) seems to work all the time.&lt;/p&gt;
&lt;p&gt;3.) Are there any conditions on using the nrf_bootloader_app_start() call?&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: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/283986?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 09:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d8cf1d-9f77-4d52-8231-981db6265959</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Well, the application starts at 0x10000 right, so there is no way for that to run on its own. I did not modify the start address.&lt;/p&gt;
&lt;p&gt;I will send you the projects I used for testing, to see if there is any difference when you use those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/283884?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 15:55:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1aa2791-4b11-4269-b689-cd5a29866317</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I am confused by your post. You stated that you added LED controls to the bootloader and application code and both execute correctly but didn&amp;#39;t state the operating condition.&amp;nbsp; Was this done by starting the bootloader and having it launch the application or was this done on each project in a stand alone manner?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/283396?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 21:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f402584-5cea-4fa7-a003-4677752c2313</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I just implemented a similar &amp;quot;blinky&amp;quot; in both solutions, loaded the &amp;quot;app&amp;quot; at 0x10000 using SES and then ran the boot loader but&amp;nbsp; all I get is a reboot into the bootloader application.&amp;nbsp; I verified that the blinky worked in both applications before trying to boot the application from the bootloader.&amp;nbsp; The bootoader lights come on but the code seem to consistently reboot at 0x0 instead of 0x10000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/283394?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 20:34:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe7a0f97-8920-449f-ba50-a5282e025a14</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;I&amp;#39;m running this on a custom board with SES using JLINK.&amp;nbsp; What do you mean by &amp;quot;DK as normal&amp;quot;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/283296?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 11:30:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:262bd162-a7dd-4c2f-9cd9-3f533e6b6be1</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried adding some LED controls to both bootloader and application code, and both seems to execute correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In main_bl.c, I set LED4 on the nRF52840 DK:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_gpio_cfg_output(16);
nrf_gpio_pin_clear(16);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Similar, in main.c I set LED3:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_gpio_cfg_output(15);
nrf_gpio_pin_clear(15);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Both light up when I run the DK as normal (not in debug interface mode).&lt;/p&gt;
&lt;p&gt;Can you check if you are seeing similar behavior?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/282505?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 15:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c0de764-b8c5-4cc7-ba4d-464143fdf4d1</guid><dc:creator>henryh</dc:creator><description>&lt;p&gt;Any luck with the debug using the files I sent you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting hard fault when launching application from custom boot loader</title><link>https://devzone.nordicsemi.com/thread/280939?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 14:46:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c75e936d-db75-4b98-9c4c-8132f078e1eb</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Would it be possible for you to share the full project for the bootloader and application? That way I can debug the HardFault and look for a solution for you.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>