<?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>NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24165/nrf52-sdk12-hardfault-if-secure-bootloader-present</link><description>Hi! For a custom board, I have my app working ok. So I wanted to add the dfu secure bootloader to my project. I Had no problem to do that, both app and bootloader start ok and I could download the software package ok. 
 BUT: near to a minute after de</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Aug 2017 12:07:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24165/nrf52-sdk12-hardfault-if-secure-bootloader-present" /><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95175?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 12:07:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49abcdde-8f83-46b6-a8ff-b8c16215679c</guid><dc:creator>Mariano</dc:creator><description>&lt;p&gt;Yes! I was using the rtc module to implement a timeout at the bootloader. I had to uninit it before start the app. Thanks so much guys, &amp;quot;Estaba orinando fuera del tarro&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95174?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 11:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94304001-651f-4739-b4d0-2441d19c00d6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Mariano: I agree with RK. If you don&amp;#39;t implement the handler of the interrupt it will end up there. FPU_IRQHandler() happens to be the last in the list. The value of the register would help telling which IRQ was triggered.
I suspect in a peripheral was used without proper configuration. And if the bootloader use the same peripheral (UART for example) you may run into trouble if it&amp;#39;s not re-configured properly in the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95172?ContentTypeID=1</link><pubDate>Sun, 13 Aug 2017 00:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75a524e5-d46d-44f5-858f-2717abec0812</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Are you sure it is the FPU IRQ handler? All your handlers are at the same address, they are just aliases for each other, the FPU one just happens to be shown last in the disassembly. What are the actual registers at this point, that will tell you the actual exception/irq which has been taken.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95171?ContentTypeID=1</link><pubDate>Sat, 12 Aug 2017 23:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7796d5a-612d-4cf3-885e-eb3a14d6da01</guid><dc:creator>Mariano</dc:creator><description>&lt;p&gt;@Hung Bui, see my update please! Also, making a more detailed debugging I could saw the UART event handler still working, but the freertos&amp;#39;s tasks are dead. Again, erasing the bootloader all works ok.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95173?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2017 12:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18c23387-d44b-43d9-8894-9db6df8ef1a6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mariano,&lt;/p&gt;
&lt;p&gt;From what you described, doesn&amp;#39;t seems that it&amp;#39;s a hardfault. For some reason the FPU interrupt was enabled and you don&amp;#39;t have a FPU interrupt handler to handle it. Is it correct ? You can test by implementing the FPU_IRQHandler() in your main.c and clear the event.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s correct there must be something wrong with the bootloader that it enable the FPU interrupt.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95170?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 12:28:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6193474c-c20d-46ec-a86d-6efd141514ca</guid><dc:creator>Mariano</dc:creator><description>&lt;p&gt;Hi, i&amp;#39;m running s132 softdevice + freertos. I&amp;#39;m using FDU (I&amp;#39;m setting Use Single Precision in keil). I got the hardfault when I&amp;#39;m debugging the app after download it through DFU. Also the system crash but not reboot.&lt;/p&gt;
&lt;p&gt;I know how to debug with keil, but I can&amp;#39;t find the cause.&lt;/p&gt;
&lt;p&gt;[&amp;quot;If I erase the bootloader (no need of downdload the app again) all works fine&amp;quot; is pretty strange. &lt;strong&gt;If you flashed the bootloader and erase it, the app shouldn't start. I'm not sure what's wrong here.&lt;/strong&gt;] Me neither, I&amp;#39;will try with other app, but i&amp;#39;m follow the guides and examples to setup the secure bootloader and all seems to work fine.&lt;/p&gt;
&lt;p&gt;Any other suggestion in the meantime?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 SDK12 hardfault if secure bootloader present</title><link>https://devzone.nordicsemi.com/thread/95169?ContentTypeID=1</link><pubDate>Wed, 09 Aug 2017 11:54:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:708cbd20-3ae4-4af0-84d1-9141bc64f32a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Does your app use FPU ? Could you check in debug mode what exactly cause the problem? You may want to follow the debugging guide &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This: &lt;em&gt;&amp;quot;If I erase the bootloader (no need of downdload the app again) all works fine&amp;quot;&lt;/em&gt; is pretty strange. If you flashed the bootloader and erase it, the app shouldn&amp;#39;t start. I&amp;#39;m not sure what&amp;#39;s wrong here.&lt;/p&gt;
&lt;p&gt;Can you reproduce the issue with our SDK&amp;#39;s example as the application ?&lt;/p&gt;
&lt;p&gt;I assume you download your app to the flash using OTA DFU , not using SWD interface to flash ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>