<?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>nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105290/nrf52840-constantly-resets-when-application-starts</link><description>Hi, 
 
 I&amp;#39;m currently debugging a custom board using the chip-down nRF52840-QIAA-F with SDK 15.2 and soft device S140 v6.1.1 and running into an issue where the nRF52840 will reset itself every ~1.3 seconds upon flashing the firmware and starting the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2023 13:59:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105290/nrf52840-constantly-resets-when-application-starts" /><item><title>RE: nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/thread/454932?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2023 13:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f38dcb8-ac54-4f63-aa6d-1a37f0d24072</guid><dc:creator>mrask</dc:creator><description>&lt;p&gt;Issue resolved:&lt;/p&gt;
&lt;p&gt;uBlox NINA-B301 module had external inductors for DC/DC. Original code was for that, so the resets were caused by enabling the DC/DC1 without having that capability.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/thread/453954?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 12:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5ea1c8-b9e8-4838-9c9c-cd7dcb963cb9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="mrask"]I removed everything from my main function and it still resets but only once.[/quote]
&lt;p&gt;If you test on the nRF52840-DK or &lt;span&gt;NINA-B301&lt;/span&gt;, do you see this same&amp;nbsp;behavior&amp;nbsp;there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/thread/453949?ContentTypeID=1</link><pubDate>Fri, 03 Nov 2023 11:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5727113-f623-41b1-9d5f-c51e16e0420f</guid><dc:creator>mrask</dc:creator><description>&lt;p&gt;Update: I removed everything from my main function and it still resets but only once. I&amp;#39;ve tried using the same iar_startup and system_nrf52840 files from the example and it still does not work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does this point anyone in the right direction for debugging?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/thread/453724?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 12:56:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7958b7f-3694-4e87-bdf5-76cb274206dc</guid><dc:creator>mrask</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have gotten hardfaults if I restart the debug session if I&amp;#39;m already in one. How should I add that hardfault handler to my project if I do not have a sdk_config.h? I don&amp;#39;t see any macro similar to HARDFAULT_HANDLER_ENABLED. I also do not have any output logs right now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 constantly resets when application starts</title><link>https://devzone.nordicsemi.com/thread/453718?ContentTypeID=1</link><pubDate>Thu, 02 Nov 2023 12:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:347954af-4955-45bc-bcc1-e069b0ed80f3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Do you have any log output from when this happens, that might give us some ideas about what is happening ?&lt;/p&gt;
&lt;p&gt;Maybe you could you try to add the hardfault handler library to your project, and see if you can get any more information based on that?&lt;/p&gt;
&lt;p&gt;When&amp;nbsp;adding the&amp;nbsp;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_hardfault.html"&gt;HardFault handling library&lt;/a&gt;&amp;nbsp;to your project&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Add these to your projects:&lt;/p&gt;
&lt;p&gt;$(SDK_ROOT)/components/libraries/hardfault/hardfault_implementation.c&amp;nbsp;&lt;br /&gt;$(SDK_ROOT)/components/libraries/hardfault/nrf52/handler/hardfault_handler_gcc.c&amp;nbsp; (variant here depends on your toolchain)&lt;/p&gt;
&lt;p&gt;And set HARDFAULT_HANDLER_ENABLED to 1 in sdk_config.h, and add DEBUG_NRF in your preprocessor definitions.&lt;/p&gt;
&lt;p&gt;You should then be able to get more information about the hardfault when it triggers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>