<?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>Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112907/flashing-problem-using-vs-code-and-nrf-connect</link><description>Hello, 
 I will explain my workflow so you can understand my problem using VS code and assuming everything is installed correctly, I`m using SDK 2.7.0: 
 
 Create new project &amp;gt; copy from existing &amp;gt; blink example 
 Add build configuration &amp;gt; default &amp;gt; build</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jul 2024 08:51:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112907/flashing-problem-using-vs-code-and-nrf-connect" /><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493333?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 08:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc66e88f-7e69-4236-abd6-869bcb050c13</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m glad to hear that it is working for you. The build configuration for the nRF52DK depends on which chip you are testing. Please refer to the screenshot below. It should work with all three build targets shown in the screenshot.&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/pastedimage1720687691988v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493254?ContentTypeID=1</link><pubDate>Thu, 11 Jul 2024 00:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:497d4141-0c22-446a-953d-ca3ea2438ef3</guid><dc:creator>Quetzacoal</dc:creator><description>&lt;p&gt;Thank you for your response&lt;/p&gt;
&lt;p&gt;In the end I found the problem, was the selected board, for the nrf52 DK it should be selected as this image&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/pastedimage1720657873687v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The problem is solved&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493246?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 19:59:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc5ab6b-c5ba-4bdc-877f-614719140113</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;Hi this behaviour is common when one shifts to zephyr rtos nordic SDK in vscode&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;please put this DCDC enable in your prj.conf file &amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOARD_ENABLE_DCDC&lt;/span&gt;&lt;span&gt;&lt;span&gt;=n&lt;br /&gt;&lt;br /&gt;also disable or comment following configs if you have them on your deconfig file&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_USE_SEGGER_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;# CONFIG_LOG_BACKEND_RTT=y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span&gt;&lt;br /&gt;&lt;br /&gt;Also if your LED is dim in your custom board I feel you are not powering your custom board from&amp;nbsp;&lt;/span&gt;separate power source , which is necessary ,&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Have a great day !&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493197?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 14:31:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30f39a47-fad2-4db1-8d88-2ed855848d97</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Has your issue been resolved? Which hex file are you attempting to flash? Based on the screenshot, it appears your device has been successfully flashed and memory read.&lt;/p&gt;
&lt;p&gt;If you are attempting to flash the device using the programmer, you can try using the zephyr.hex file generated inside the build/zephyr folder(from the blinky_sample). Please let me know if this resolves the issue.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493123?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 10:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c64192a-afb0-4c6f-942e-28741b4f759a</guid><dc:creator>Quetzacoal</dc:creator><description>&lt;p&gt;Actually I found I can upload the .hex file generated in the build by VS code using the nfr connect programmer, but this file looks empty&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/pastedimage1720607530511v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;why would my files .hex be empty?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493111?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 09:54:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0e13cd-5b3f-47bd-9e64-e19e710cd057</guid><dc:creator>Quetzacoal</dc:creator><description>&lt;p&gt;Dear Abhijith,&lt;/p&gt;
&lt;p&gt;The program is not being flashed to the board from VS code but I can use nrf programmer to load example .hex file and the board will start blinking correctly.&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/pastedimage1720605268067v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I cannot upload my custom program with VS code.&lt;/p&gt;
&lt;p&gt;This is the memory after I upload my program with VS code&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/pastedimage1720605110444v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Can I generate .hex file from VS code?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493107?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 09:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa6683d5-c640-421d-b2c7-9886f173995e</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From the screenshot you shared, I see that your board has been flashed successfully. However, in the programmer app, you haven&amp;#39;t selected the board from the &amp;quot;Select Device&amp;quot; tab.&lt;/p&gt;
&lt;p&gt;Please refer to the screenshot below from my side:&lt;/p&gt;
&lt;p&gt;&lt;img style="font-family:inherit;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1720604458077v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You need to select the device from&amp;nbsp; &amp;quot;SELECT DEVICE&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/pastedimage1720604409382v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493103?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 09:28:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb9b4a0d-8fa1-4266-90e2-fa2f17df016a</guid><dc:creator>Quetzacoal</dc:creator><description>&lt;p&gt;Hello Abhijith&lt;/p&gt;
&lt;p&gt;I forgot to mention I am using the nrf52 DK&lt;/p&gt;
&lt;p&gt;I include some screenshots&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/pastedimage1720603175949v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is my build configuration&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/pastedimage1720603453298v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the command I use to upload the code to the board&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/pastedimage1720603608395v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The code is uploaded successfully&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/pastedimage1720603673206v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Finally I can use the programmer and I can see the memory is empty&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing problem using VS Code and NRF connect</title><link>https://devzone.nordicsemi.com/thread/493087?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 08:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11fbfe85-1ca2-4124-af0f-dbe746ca95d4</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you please tell me which Nordic chip or development kit you are working with? Can you share the complete logs here?&lt;/p&gt;
[quote user=""]when I read the memory it shows as empty[/quote]
&lt;p&gt;Could you explain how you are attempting this? Are you using J-Link? Could you provide a screenshot or more details describing the issue?&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>