<?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 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107839/nrf52840-custom-board---program-only-runs-when-debugging</link><description>Hi, 
 I am working with a nRF52840 on a custom board, and I am running into an issue where the firmware will only run on the custom board if I use the &amp;quot;debug&amp;quot; option in VS Code, but not when using the &amp;quot;flash&amp;quot; or &amp;quot;erase and flash&amp;quot; options in VS Code or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Feb 2024 01:36:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107839/nrf52840-custom-board---program-only-runs-when-debugging" /><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/467044?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2024 01:36:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21140b50-b589-4d75-836b-40aed04757a3</guid><dc:creator>bpolito8</dc:creator><description>&lt;p&gt;Thanks Simonr. I had actually tried that fix initially upon seeing your previous message with no luck. I&amp;nbsp;had the nrf52840dk_nrf52840 board selected for my build configuration (apologies for not mentioning this initially), and I imagine this was locking me into some sort of DCDC or LF crystal configuration that did not match my board. Once switched to a custom board configuration my project is running without the debugger. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/466883?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2024 08:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:614a4d81-e8c8-42a0-a34e-826e20984520</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It&amp;#39;s most likely the&amp;nbsp;CONFIG_BOARD_ENABLE_DCDC=y that is set in your project&amp;#39;s config file then. Set this =n to disable the DCDC regulator, as that should help here.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/466611?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 19:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3925f9c1-9ad3-4f77-b535-238d09d04bd0</guid><dc:creator>bpolito8</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF52840_5F00_module_5F00_schematic.pdf"&gt;devzone.nordicsemi.com/.../nRF52840_5F00_module_5F00_schematic.pdf&lt;/a&gt; Thanks for the reply. Here is a portion of the schematic for reference. I think you are correct that the project is configured to use the DCDC regulator, and the board is missing the DCDC components. Is this the case? If so, how can I disable the DCDC regulator in my project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/466536?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 13:40:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d56464f9-6ace-408e-995a-df49fd7bffa1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;That last reply seems to have been from a bot. Don&amp;#39;t pay it any attention as it has been reported.&lt;/p&gt;
&lt;p&gt;Regarding your issue, issues like this where custom boards only run in debugging mode when connected to a DK is usually either due to the DCDC components missing and the project being configured to use the DCDC regulator, or that the external LF crystal is not mounted/loaded incorrectly.&lt;/p&gt;
&lt;p&gt;Can you provide a .pdf file of your schematics so I can take a look?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/466379?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 03:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4fbdb20-228a-487e-9896-eb6f06fcc657</guid><dc:creator>bpolito8</dc:creator><description>&lt;p&gt;Hey, thank you for the reply.&amp;nbsp;Is the debug configuration the same as the build configuration?&lt;/p&gt;
&lt;p&gt;Also, I may be misunderstanding your comment, but I am not sure that I have any debug configuration issues since I can debug the project on my custom board, in fact this is the only way I can get the project to run on the custom board. Flashing the binary to the&amp;nbsp;custom board seems to work fine during debugging, but the program won&amp;#39;t start when&amp;nbsp;I choose the &amp;quot;flash&amp;quot; options instead of the &amp;quot;debug&amp;quot; option.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 Custom Board - program only runs when debugging</title><link>https://devzone.nordicsemi.com/thread/466375?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 01:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0343f530-8a18-4d92-8dee-ee2011784d92</guid><dc:creator>williseugene333</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>