<?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>Can&amp;#39;t flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102724/can-t-flash-custom-board-via-nrf52840dk-in-vs-code</link><description>Good Day. 
 I have two identical custom boards that I want to flash the Blinky example into. 
 The strange thing is that both boards are flashed without problems (writes that the flash was successful) via VS Code, but on one board the LED blinks and on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Aug 2023 18:24:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102724/can-t-flash-custom-board-via-nrf52840dk-in-vs-code" /><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441708?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 18:24:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b2c5016-9d58-4894-8053-fd00bfe12b0e</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Yeah, it worked. Thank you so much again for your help.&lt;/p&gt;
&lt;p&gt;This topic can be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441533?ContentTypeID=1</link><pubDate>Wed, 16 Aug 2023 08:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68c51876-b60c-474b-ba63-c38498489cbd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;west flash&amp;quot; does a pin reset by default:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;...
[ #################### ]   0.000s | Verifying image - Verify successful
[ #################### ]   4.452s | Verify file - Done verifying                                                       
Applying pin reset.
-- runners.nrfjprog: Board with serial number 1050749332 flashed successfully.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you route the &amp;quot;RESET&amp;quot; signal to the reset pin of your custom board, you should be able to flash and run as expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441448?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 17:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:088ce250-0ac6-4c63-9a6e-066e85181298</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thank you Hakon for continuing to help me.&lt;br /&gt;After entering the command &amp;quot;nrfjprog --debugreset&amp;quot; in the terminal, my board started up without a power reset.&lt;/p&gt;
&lt;p&gt;Is there any way to make this command the default after re-flashing my board? Or do I always have to enter it manually?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441316?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2023 08:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0de7340-62d5-4068-8f94-1d502fa10446</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try the following?&lt;/p&gt;
&lt;p&gt;If you issue &amp;quot;nrfjprog --debugreset&amp;quot; and the board runs as expected afterwards; then it is due to the reset procedure during programming.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441226?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 16:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68cdf71b-b7a1-4412-958b-5399da46f71c</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Hi Hakon.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, this is really weird. I&amp;#39;m using a connection like the one in the picture with the board (I don&amp;#39;t have the 10-pin version). With a connection like mine, does your custom board start right after programming?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6180.connect.png" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441177?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2023 13:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1155db01-0b69-4a20-b651-ec9d6b7e6e81</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That is strange.&amp;nbsp;When testing here, it runs after a flash in vscode when using a 10-pin cable to another board.&lt;/p&gt;
&lt;p&gt;Try to use Segger Ozone, and&amp;nbsp;use the &amp;quot;attach to running target&amp;quot; to see if it is stuck somewhere.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/441014?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 17:07:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1181efee-9249-4610-83af-1523bba1f184</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thank you for your help. Yes, the crystal failed. I replaced it and everything worked properly.&lt;/p&gt;
&lt;p&gt;Can you please tell me, Hakon, how to make it start immediately after downloading the firmware to my custom board via nrf52840DK? Because now when I download the firmware via VS Code I have to power off and on and only then my board starts working. And when I load the program in SES my board starts immediately without rebooting.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/440923?ContentTypeID=1</link><pubDate>Fri, 11 Aug 2023 10:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25239c5f-2e64-41a1-b9c8-e9f6cf5e39f4</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="backstreet.devisor"]Do I have a 32 kHz crystal soldered on my board that doesn&amp;#39;t work?[/quote]
&lt;p&gt;Effectively; yes.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is either loaded incorrectly or similar, making it not resonate properly.&lt;/p&gt;
&lt;p&gt;Check for shorts on the lines in question and do a visual inspection to see if anything is out-of-the-ordinary.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/440814?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 17:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa25d8ce-8190-4bdd-a2f5-99fc35d9a149</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;But after adding CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;br /&gt;my board worked.&lt;/p&gt;
&lt;p&gt;What does it mean?&lt;/p&gt;
&lt;p&gt;Do I have a 32 kHz crystal soldered on my board that doesn&amp;#39;t work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/440813?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 17:51:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af7951c6-7605-4c53-b59a-bba525f414d0</guid><dc:creator>backstreet.devisor</dc:creator><description>&lt;p&gt;Thank you Hakon for your response.&amp;nbsp;My board won&amp;#39;t enter debug mode. Here is the output from the debug console.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;JLinkGDBServerCL: SEGGER J-Link GDB Server V7.88a Command Line Version
JLinkGDBServerCL: 
JLinkGDBServerCL: JLinkARM.dll V7.88a (DLL compiled May  3 2023 14:37:59)
JLinkGDBServerCL: 
JLinkGDBServerCL: -----GDB Server start settings-----
JLinkGDBServerCL: GDBInit file:                  none
JLinkGDBServerCL: GDB Server Listening port:     52792
JLinkGDBServerCL: SWO raw output listening port: 2332
JLinkGDBServerCL: Terminal I/O port:             2333
JLinkGDBServerCL: Accept remote connection:      localhost only
JLinkGDBServerCL: Generate logfile:              off
JLinkGDBServerCL: Verify download:               off
JLinkGDBServerCL: Init regs on start:            off
JLinkGDBServerCL: Silent mode:                   on
JLinkGDBServerCL: Single run mode:               on
JLinkGDBServerCL: Target connection timeout:     0 ms
JLinkGDBServerCL: ------J-Link related settings------
JLinkGDBServerCL: J-Link Host interface:         USB
JLinkGDBServerCL: J-Link script:                 none
JLinkGDBServerCL: J-Link settings file:          none
JLinkGDBServerCL: ------Target related settings------
JLinkGDBServerCL: Target device:                 nRF52840_xxAA
JLinkGDBServerCL: Target device parameters:      none
JLinkGDBServerCL: Target interface:              SWD
JLinkGDBServerCL: Target interface speed:        12000kHz
JLinkGDBServerCL: Target endian:                 little
JLinkGDBServerCL: 
=thread-group-added,id=&amp;quot;i1&amp;quot;
=cmd-param-changed,param=&amp;quot;pagination&amp;quot;,value=&amp;quot;off&amp;quot;
z_arm_reset () at C:/nordicsemi/v2.2.0/zephyr/arch/arm/core/aarch32/cortex_m\reset.S:73
73	    movs.n r0, #0
[New Remote target]
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can't flash custom board via nRF52840DK in VS Code</title><link>https://devzone.nordicsemi.com/thread/440726?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 12:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:936c4057-5895-4e9c-bc47-9a3880e0dffe</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Q1: Have you tried entering debug mode and see where it&amp;#39;s stuck?&lt;/p&gt;
&lt;p&gt;Q2: Could this be a problem with the external LF clk?&lt;/p&gt;
&lt;p&gt;Can you try to set &amp;quot;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&amp;quot; and see if the other board boots up as expected?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>