<?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>nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120585/nrf5340dk-application-only-runs-once-after-flashing-on-new-pc</link><description>I am developing using the nRF5340DK with Segger v5.68 and SDK within toolchain v1.9.1. My project works perfectly on my old PC, but after moving to a new PC with the exact same project configuration , I encountered the following issue: 
 
 After flashing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Apr 2025 08:41:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120585/nrf5340dk-application-only-runs-once-after-flashing-on-new-pc" /><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531973?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2025 08:41:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6deb24d7-ba72-4461-ad7f-8775cf533f9b</guid><dc:creator>Lingfeng Wu</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for your critical suggestions. Upon checking, I found that the merged_domains.hex file was not generated, leading me to suspect an issue with the Zephyr SDK. I resolved the problem by copying the entire Zephyr directory from my old PC and performing a complete replacement on the new PC.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Lingfeng&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531810?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 09:03:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b7db03d-a6de-4675-a715-e0f7e140dbd9</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you flash the network image as well?&amp;nbsp;You should see something like&amp;nbsp;GENERATED_CP_APPLICATION_merged_domains.hex and&amp;nbsp;GENERATED_CP_NETWORK_merged_domains.hex after flashing it once in SES, or using the command &amp;quot;west flash -d build_nrf5340dk_nrf5340_cpuapp&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you compare the hex files from the old PC with the new one? If you build the exact same application on both computers. Do you end up with identical hex files (both app and network core)? You can compare them using a diff tool, such as meld. Or you can upload them here, and I can check for you.&amp;nbsp;&lt;/p&gt;
[quote user="Lingfeng Wu"]It cannot run even once. [/quote]
&lt;p&gt;Can you try to enable some logging in your application? Do you see anything in the log? Or how do you determine that it &amp;quot;doesn&amp;#39;t run&amp;quot;?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531788?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 06:48:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5058700-ebd0-4343-b9cc-5a2028ad439a</guid><dc:creator>Lingfeng Wu</dc:creator><description>&lt;div class="quote-user"&gt;Thank you for your reply.&lt;/div&gt;
&lt;div class="quote-user"&gt;&lt;/div&gt;
[quote userid="26071" url="~/f/nordic-q-a/120585/nrf5340dk-application-only-runs-once-after-flashing-on-new-pc/531703"]Can you try to delete your build folder on the non-working PC?[/quote]
&lt;p&gt;I tried and the problem persists.&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/120585/nrf5340dk-application-only-runs-once-after-flashing-on-new-pc/531703"]When flashed via command line (nrfjprog), does it work to reset it? [/quote]
&lt;p&gt;It cannot run even once. I checked the nRF Programmer, and it showed that the hex file flashed to memory.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lingefeng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531703?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 13:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ae195b-fb99-4b91-a7c1-5f1c75e12ba0</guid><dc:creator>Edvin</dc:creator><description>[quote user="Lingfeng Wu"]I wonder if this could be a clue.[/quote]
&lt;p&gt;Can you try to delete your build folder on the non-working PC? (I guess the build folder is the folder called build_nrf5340dk_nrf5340_cpuapp, and then set it up again, and see if the problem persists?&lt;/p&gt;
[quote user="Lingfeng Wu"]This is the return:[/quote]
&lt;p&gt;When flashed via command line (nrfjprog), does it work to reset it? Or does it still only run unce after being flashed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531651?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2025 08:40:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5808d21c-0e04-41a3-a15c-46e2562c76f1</guid><dc:creator>Lingfeng Wu</dc:creator><description>&lt;p&gt;Thank you. I apologize for my late reply.&lt;br /&gt;&lt;br /&gt;This is the return:&lt;pre class="ui-code" data-mode="powershell"&gt;C:\nrf53_project\nfr5340_sdk_1.9.1_workbench&amp;gt;nrfjprog --program build_nrf5340dk_nrf5340_cpuapp\zephyr\zephyr.hex --verify --sectorerase
[ #################### ]   3.879s | Erase file - Done erasing
[ #################### ]   0.807s | Program file - Done programming
[ #################### ]   0.808s | Verify file - Done verifying&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I checked the version of JLink, which is different. The old PC was using V7.58b while the new PC is using V7.94i. But after I reinstalled the JLink V7.58b on my new PC, the problem still remains.&lt;br /&gt;&lt;br /&gt;By the way, I tried to CLEAN THE SOLUTION and got an error report:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744618276753v1.png" alt=" " /&gt;&lt;br /&gt;I wonder if this could be a clue.&lt;br /&gt;&lt;br /&gt;Thanks for your advice and I&amp;nbsp;will try to use VS Code.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Lingfeng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531527?ContentTypeID=1</link><pubDate>Fri, 11 Apr 2025 12:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1476fdfe-3330-403c-aba4-aa664c518f42</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Lingfeng,&lt;/p&gt;
&lt;p&gt;Thank you. Ok, it looks fine. Wanted to check the address ranges, but they look correct.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I realized now that you are using NCS, and not the nRF5 SDK (it was obvious, but I didn&amp;#39;t notice that you were using the nRF5340).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The support for Segger Embedded Studio was pulled a long time ago. I really recommend that you check out VS Code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That being said. Do you have the same version of JLink installed on both computers?&lt;/p&gt;
&lt;p&gt;Can you please try to use nrfjprog (&lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download"&gt;nRF Command Line Tools&lt;/a&gt;) and the commands:&lt;/p&gt;
&lt;p&gt;nrfjprog --program &amp;lt;path to application core .hex file&amp;gt;.hex --verify --sectorerase&lt;/p&gt;
&lt;p&gt;What does that return?&lt;/p&gt;
&lt;p&gt;I believe you can see the path to the .hex file the first time you flash, if you expand the flash log in your screenshot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531393?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 14:13:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bc6ddfc-1b54-4918-9b89-a45465d08615</guid><dc:creator>Lingfeng Wu</dc:creator><description>&lt;p&gt;Thank you for your reply!&lt;br /&gt;&lt;br /&gt;This is the screenshot:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744294331825v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Lingfeng&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531383?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 13:52:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:951e5725-f5ec-4a2a-9eaf-f19754011fe3</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you please post a screenshot of your entire SES window after you have built your application project? I am particularly interested in the &amp;quot;Memory Usage&amp;quot; tab:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1744293130919v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;But include it all, in case there is something else that I didn&amp;#39;t think of.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340DK: Application Only Runs Once After Flashing on New PC</title><link>https://devzone.nordicsemi.com/thread/531295?ContentTypeID=1</link><pubDate>Thu, 10 Apr 2025 09:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc818bb6-a6fe-424f-8ea5-9a6e1a69f17f</guid><dc:creator>Lingfeng Wu</dc:creator><description>&lt;p&gt;&lt;strong&gt;Follow up:&amp;nbsp;&lt;/strong&gt;&lt;br /&gt;&lt;span&gt;When I manually cleared the flash of the nRF5340DK and confirmed the memory was erased using Programmer, I then flashed a new program on the new PC and encountered the following issue in Segger debug mode:&lt;/span&gt;&lt;br /&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/_4F5C555E2A62FE56_-2025_2D00_04_2D00_10-170136.png" /&gt;&lt;br /&gt;&lt;span&gt;As supplementary information, hoping to serve as clues for troubleshooting the issue.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>