<?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>LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97770/led-5-blinking-continuously-and-the-i-cannot-see-the-board-anymore-in-nrfconnect-in-vscode</link><description>Hi , 
 I am using the NRF5340DK board and i just plugged the board into my computer and the led 5 on the board is blinking fast and continuously and i cannot see the board anymore in the VSCODE. I have tried changing 3 cables and yes they are data cables</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Mar 2023 12:50:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97770/led-5-blinking-continuously-and-the-i-cannot-see-the-board-anymore-in-nrfconnect-in-vscode" /><item><title>RE: LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/thread/416541?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 12:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4b34076-b629-4217-b33d-e9c9da028aee</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Could you try &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_command_line_tools_lpage.html"&gt; nRF command line too&lt;/a&gt;l for erasing the board? You can try &lt;span style="color:rgba(0, 0, 255, 1);"&gt;&amp;quot;nrfjprog --eraseall&amp;quot;&lt;/span&gt; command for doing this and try recovering the board using &lt;span style="color:rgba(0, 0, 255, 1);"&gt;&amp;quot;nrfjprog --recover&amp;quot;&lt;/span&gt; command. You can find all the commands&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf_cltools/UG/cltools/nrf_nrfjprogexe_reference.html"&gt;in here&lt;/a&gt;. You can download the command line tool from &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download#:~:text=Choose%20platform%20and%20version"&gt;here.&lt;/a&gt;&amp;nbsp;Please share a screenshot of running this command if this doesn&amp;#39;t help. Also check whether your DK is visible in PC(device manager). Also try connecting the board to another PC and see whether it detects the board or not (if possible).&lt;/p&gt;
&lt;p&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: LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/thread/416073?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 15:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f8d171-de68-48b6-b31a-c9f49d327139</guid><dc:creator>sbk7</dc:creator><description>&lt;p&gt;I have tried that , the board is not visible in nrfconnect desktop app. The program that i last flashed was the modified adc driver example found in &lt;span&gt;ncs\v2.2.0\zephyr\samples\drivers\adc :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*
 * Copyright (c) 2020 Libre Solar Technologies GmbH
 *
 * SPDX-License-Identifier: Apache-2.0
 */

#include &amp;lt;inttypes.h&amp;gt;
#include &amp;lt;stddef.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;

#include &amp;lt;zephyr/device.h&amp;gt;
#include &amp;lt;zephyr/devicetree.h&amp;gt;
#include &amp;lt;zephyr/drivers/adc.h&amp;gt;
#include &amp;lt;zephyr/kernel.h&amp;gt;
#include &amp;lt;zephyr/sys/printk.h&amp;gt;
#include &amp;lt;zephyr/sys/util.h&amp;gt;
#include &amp;lt;zephyr/drivers/gpio.h&amp;gt;
#define LED_PIN 15 //LED at Pin 1.15

//-------------Check if overlay file exists----------------
#if !DT_NODE_EXISTS(DT_PATH(zephyr_user)) || \
	!DT_NODE_HAS_PROP(DT_PATH(zephyr_user), io_channels)
#error &amp;quot;No suitable devicetree overlay specified&amp;quot;
#endif

//-------------ADC Channels Setup--------------------------
#define DT_SPEC_AND_COMMA(node_id, prop, idx) \
	ADC_DT_SPEC_GET_BY_IDX(node_id, idx),

/* Data of ADC io-channels specified in devicetree. */
static const struct adc_dt_spec adc_channels[] = {
	DT_FOREACH_PROP_ELEM(DT_PATH(zephyr_user), io_channels,
			     DT_SPEC_AND_COMMA)
};

//-----------GPIO PORT 1 setup--------------------------
//mux_gpio_dev = device_get_binding(&amp;quot;GPIO_0&amp;quot;);
const struct device *port_1;//This setups up port 1 in datasheet pg 22
//port_0_pins = DEVICE_DT_GET(DT_NODELABEL(gpio0));
//int gpio_pin_configure(1, 15, GPIO_OUTPUT);

void main(void)
{	
	//-------GPIO Pin 1.15 setup-------------------
	port_1 = DEVICE_DT_GET(DT_NODELABEL(gpio1));
	gpio_pin_configure(port_1, LED_PIN , GPIO_OUTPUT);//Configure Pin 1.15
	gpio_pin_set(port_1, LED_PIN, 0);//Set the led pin low initially 


	int err;
	int16_t buf;
	struct adc_sequence sequence = {
		.buffer = &amp;amp;buf,
		/* buffer size in bytes, not number of samples */
		.buffer_size = sizeof(buf),
	};

	/* Configure channels individually prior to sampling. */
	for (size_t i = 0U; i &amp;lt; ARRAY_SIZE(adc_channels); i++) {
		if (!device_is_ready(adc_channels[i].dev)) {
			printk(&amp;quot;ADC controller device not ready\n&amp;quot;);
			return;
		}

		err = adc_channel_setup_dt(&amp;amp;adc_channels[i]);
		if (err &amp;lt; 0) {
			printk(&amp;quot;Could not setup channel #%d (%d)\n&amp;quot;, i, err);
			return;
		}
	}

	while (1) {
		printk(&amp;quot;\n ADC reading:&amp;quot;);
		for (size_t i = 0U; i &amp;lt; ARRAY_SIZE(adc_channels); i++) {
			int32_t val_mv;

			printk(&amp;quot;\n channel %d: &amp;quot;,
			       //adc_channels[i].dev-&amp;gt;name,
			       adc_channels[i].channel_id);

			(void)adc_sequence_init_dt(&amp;amp;adc_channels[i], &amp;amp;sequence);

			err = adc_read(adc_channels[i].dev, &amp;amp;sequence);
			//if (err &amp;lt; 0) {
			//	printk(&amp;quot;Could not read (%d)\n&amp;quot;, err);
			//	continue;
			//} else {
			//	printk(&amp;quot;%&amp;quot;PRId16, buf);
			//}
	
		
			/* conversion to mV may not be supported, skip if not */
			//val_mv = buf;
			//err = adc_raw_to_millivolts_dt(&amp;amp;adc_channels[i],
			//			       &amp;amp;val_mv);
			//if (err &amp;lt; 0) {
			//	printk(&amp;quot; (value in mV not available)\n&amp;quot;);
			//} else {
			//	printk(&amp;quot; = %&amp;quot;PRId32&amp;quot; mV\n&amp;quot;, val_mv);
			//} 
			
		}

		k_sleep(K_MSEC(500));
	}
}
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/thread/416062?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 14:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8221bc7f-7cff-4df1-8ff9-781db87bdcc7</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which program did you flash inside the DK finally? And is your DK visible in your PC(check the device manager) and &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop"&gt;nRF connect Desktop App&lt;/a&gt;. &lt;br /&gt;If your board is visible in the pc, try to download the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;nrf command line tool &lt;/a&gt;and try to erase the board using&lt;span style="color:rgba(0, 0, 255, 1);"&gt; nrfjprog --eraseall&lt;/span&gt; command.&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/thread/415784?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 15:50:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f2803d-3aed-49d7-ae8b-a278f88eef57</guid><dc:creator>sbk7</dc:creator><description>&lt;p&gt;Hello Abhijit, based on the forum i checked the voltages on Figure 1 of this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5340_dk%2FUG%2Fdk%2Fhw_power_supply.html"&gt;power supply info page&lt;/a&gt; of the board, below is what i am reading using a multimeter:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;USB IF MCU = 5.11 V , VIN = 3.43 , USB NR5340 =5.12 V&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;All of the positions of switches are in correct places: Flow Control = ON , nrf Power Source = VDD, nrf = Default and Vext --&amp;gt; nrf = Off&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The board was working before and was programmable and no changes were made to the hardware , below are pics of my board below:&lt;/p&gt;
&lt;p&gt;&lt;img style="height:788px;max-height:788px;max-width:350px;" height="444" src="https://devzone.nordicsemi.com/resized-image/__size/700x1576/__key/communityserver-discussions-components-files/4/20230316_5F00_104403.jpg" width="350" alt=" " /&gt;&lt;img height="765" src="https://devzone.nordicsemi.com/resized-image/__size/686x1530/__key/communityserver-discussions-components-files/4/20230316_5F00_104347.jpg" width="342" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LED 5 Blinking continuously and the i cannot see the board anymore in nrfconnect in vscode</title><link>https://devzone.nordicsemi.com/thread/415761?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 14:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40430683-40a2-41b1-aef8-576cba6f2e62</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Please go through&lt;a href="https://devzone.nordicsemi.com/support-private/support/304069"&gt; this old thread&lt;/a&gt; and check all the steps mentioned.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>