<?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>USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113475/usb-over-console-not-working-on-custom-board</link><description>Hello im using basic usb over console exaple on my custom board . i believe this task wont require any pins to be configured as my custom board is routed properly to all 4 pins required for USB 
 
 But i dont see any new serial com port when i flash this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2024 15:36:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113475/usb-over-console-not-working-on-custom-board" /><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496445?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 15:36:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95b0fb6-c3cf-47dd-849a-7fefe495d886</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Do you use static partitioning or partition manager? If you use static partitioning, you can look at this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90401/enabling-bluetooth-to-the-littlefs-sample-app-will-make-the-littlefs-not-use-external-flash"&gt;pm_static.yml and app.overlay example&lt;/a&gt;. If you use partition manager, you can look at&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/scripts/partition_manager/partition_manager.html#external_flash_memory_partitions"&gt;external flash memory partitions&lt;/a&gt;&amp;nbsp;in the documentation. You can also have a look at this blogpost which shows&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/how-to-use-the-nrf9160-feather"&gt;external flash configuration and overlay&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Do you get any errors when using USB console sample with LittleFS and external flash?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496243?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 13:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c707a28-c841-4913-b6dd-a732c0ee23cc</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;HI &lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp;thanks for the example , we workred it out it works fine on bare device without any external spi flash configured .&lt;/p&gt;
&lt;p&gt;our custom board uses external flash for littleFS . so when we use this usb console with the flash and littleFS configuration , we have failed to use usb again, means we dont see any COM port of USB when we flash the code.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any idea what might be causing this ?&lt;br /&gt;&lt;br /&gt;my device tree looks like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
	model = &amp;quot;Nordic nRF52833 DK NRF52833&amp;quot;;
	compatible = &amp;quot;nordic,nrf52833-dk-nrf52833&amp;quot;;

	chosen {
		zephyr,console = &amp;amp;uart0;
		zephyr,shell-uart = &amp;amp;uart0;
		zephyr,uart-mcumgr = &amp;amp;uart0;
		zephyr,bt-mon-uart = &amp;amp;uart0;
		zephyr,bt-c2h-uart = &amp;amp;uart0;
		zephyr,sram = &amp;amp;sram0;
		zephyr,flash = &amp;amp;flash0;
		zephyr,code-partition = &amp;amp;slot0_partition;
		zephyr,ieee802154 = &amp;amp;ieee802154;
	};

	leds {
		compatible = &amp;quot;gpio-leds&amp;quot;;
		led0: led_0 {
			gpios = &amp;lt;&amp;amp;gpio0 11 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 0&amp;quot;;
		};
		led1: led_1 {
			gpios = &amp;lt;&amp;amp;gpio0 14 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 1&amp;quot;;
		};
		led2: led_2 {
			gpios = &amp;lt;&amp;amp;gpio0 15 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 2&amp;quot;;
		};
		led3: led_3 {
			gpios = &amp;lt;&amp;amp;gpio0 16 GPIO_ACTIVE_LOW&amp;gt;;
			label = &amp;quot;Green LED 3&amp;quot;;
		};
	};

	pwmleds {
		compatible = &amp;quot;pwm-leds&amp;quot;;
		pwm_led0: pwm_led_0 {
			pwms = &amp;lt;&amp;amp;pwm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED&amp;gt;;
		};
	};

	buttons {
		compatible = &amp;quot;gpio-keys&amp;quot;;
		button0: button_0 {
			gpios = &amp;lt;&amp;amp;gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 0&amp;quot;;
		};
		button1: button_1 {
			gpios = &amp;lt;&amp;amp;gpio0 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 1&amp;quot;;
		};
		button2: button_2 {
			gpios = &amp;lt;&amp;amp;gpio0 24 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 2&amp;quot;;
		};
		button3: button_3 {
			gpios = &amp;lt;&amp;amp;gpio0 25 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)&amp;gt;;
			label = &amp;quot;Push button switch 3&amp;quot;;
		};
	};

	arduino_header: connector {
		compatible = &amp;quot;arduino-header-r3&amp;quot;;
		#gpio-cells = &amp;lt;2&amp;gt;;
		gpio-map-mask = &amp;lt;0xffffffff 0xffffffc0&amp;gt;;
		gpio-map-pass-thru = &amp;lt;0 0x3f&amp;gt;;
		gpio-map = &amp;lt;0 0 &amp;amp;gpio0 3 0&amp;gt;,	/* A0 */
			   &amp;lt;1 0 &amp;amp;gpio0 4 0&amp;gt;,	/* A1 */
			   &amp;lt;2 0 &amp;amp;gpio0 28 0&amp;gt;,	/* A2 */
			   &amp;lt;3 0 &amp;amp;gpio0 29 0&amp;gt;,	/* A3 */
			   &amp;lt;4 0 &amp;amp;gpio0 30 0&amp;gt;,	/* A4 */
			   &amp;lt;5 0 &amp;amp;gpio0 31 0&amp;gt;,	/* A5 */
			   &amp;lt;6 0 &amp;amp;gpio1 1 0&amp;gt;,	/* D0 */
			   &amp;lt;7 0 &amp;amp;gpio1 2 0&amp;gt;,	/* D1 */
			   &amp;lt;8 0 &amp;amp;gpio1 3 0&amp;gt;,	/* D2 */
			   &amp;lt;9 0 &amp;amp;gpio1 4 0&amp;gt;,	/* D3 */
			   &amp;lt;10 0 &amp;amp;gpio1 5 0&amp;gt;,	/* D4 */
			   &amp;lt;11 0 &amp;amp;gpio1 6 0&amp;gt;,	/* D5 */
			   &amp;lt;12 0 &amp;amp;gpio1 7 0&amp;gt;,	/* D6 */
			   &amp;lt;13 0 &amp;amp;gpio1 8 0&amp;gt;,	/* D7 */
			   &amp;lt;14 0 &amp;amp;gpio0 17 0&amp;gt;,	/* D8 */
			   &amp;lt;15 0 &amp;amp;gpio0 19 0&amp;gt;,	/* D9 */
			   &amp;lt;16 0 &amp;amp;gpio0 20 0&amp;gt;,	/* D10 */
			   &amp;lt;17 0 &amp;amp;gpio0 21 0&amp;gt;,	/* D11 */
			   &amp;lt;18 0 &amp;amp;gpio0 22 0&amp;gt;,	/* D12 */
			   &amp;lt;19 0 &amp;amp;gpio0 23 0&amp;gt;,	/* D13 */
			   &amp;lt;20 0 &amp;amp;gpio0 26 0&amp;gt;,	/* D14 */
			   &amp;lt;21 0 &amp;amp;gpio0 27 0&amp;gt;;	/* D15 */
	};

	/* These aliases are provided for compatibility with samples */
	aliases {
		led0 = &amp;amp;led0;
		led1 = &amp;amp;led1;
		led2 = &amp;amp;led2;
		led3 = &amp;amp;led3;
		pwm-led0 = &amp;amp;pwm_led0;
		sw0 = &amp;amp;button0;
		sw1 = &amp;amp;button1;
		sw2 = &amp;amp;button2;
		sw3 = &amp;amp;button3;
		bootloader-led0 = &amp;amp;led0;
		mcuboot-button0 = &amp;amp;button0;
		mcuboot-led0 = &amp;amp;led0;
		watchdog0 = &amp;amp;wdt0;

		//added , avoid this
		spiflash0 = &amp;amp;w25q64;
	};
};

&amp;amp;adc {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpiote {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio0 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;gpio1 {
	status = &amp;quot;okay&amp;quot;;
};

&amp;amp;uart0 {
	compatible = &amp;quot;nordic,nrf-uarte&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

arduino_serial: &amp;amp;uart1 {
	status = &amp;quot;okay&amp;quot;;
	current-speed = &amp;lt;115200&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;uart1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;uart1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

arduino_i2c: &amp;amp;i2c0 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;i2c0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;i2c1 {
	compatible = &amp;quot;nordic,nrf-twi&amp;quot;;
	/* Cannot be used together with spi1. */
	/* status = &amp;quot;okay&amp;quot;; */
	pinctrl-0 = &amp;lt;&amp;amp;i2c1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;i2c1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;pwm0 {
	status = &amp;quot;okay&amp;quot;;
	pinctrl-0 = &amp;lt;&amp;amp;pwm0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pwm0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;spi0 {
	compatible = &amp;quot;nordic,nrf-spi&amp;quot;;
	/* Cannot be used together with i2c0. */
	/* status = &amp;quot;okay&amp;quot;; */
	pinctrl-0 = &amp;lt;&amp;amp;spi0_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi0_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
};

&amp;amp;spi1 {
	
	cs-gpios = 	&amp;lt; &amp;amp;gpio0 9 GPIO_ACTIVE_LOW&amp;gt;;
	pinctrl-0 = &amp;lt;&amp;amp;spi1_default&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;spi1_sleep&amp;gt;;
	pinctrl-names = &amp;quot;default&amp;quot;, &amp;quot;sleep&amp;quot;;
	compatible = &amp;quot;nordic,nrf-spim&amp;quot;;
	status = &amp;quot;okay&amp;quot;;
	
	w25q64: w25q64jv@0 {
        compatible = &amp;quot;jedec,spi-nor&amp;quot;;
        reg = &amp;lt;0&amp;gt;;
		spi-max-frequency = &amp;lt;8000000&amp;gt;; //spi-max-frequency = &amp;lt;33000000&amp;gt;;
        jedec-id = [ef 40 17];
		size = &amp;lt;67108864&amp;gt;; //8 Mb //&amp;lt;0x400000&amp;gt;; //4 Mb
        has-dpd;
        t-enter-dpd = &amp;lt;3500&amp;gt;;
        t-exit-dpd = &amp;lt;3500&amp;gt;;
		sfdp-bfp = [
			e5 20 f9 ff  ff ff ff 03  44 eb 08 6b  08 3b 42 bb
			fe ff ff ff  ff ff 00 00  ff ff 40 eb  0c 20 0f 52
			10 d8 00 00  36 02 a6 00  82 ea 14 c4  e9 63 76 33
			7a 75 7a 75  f7 a2 d5 5c  19 f7 4d ff  e9 30 f8 80
			];
		partitions {
			compatible = &amp;quot;fixed-partitions&amp;quot;;
			#address-cells = &amp;lt;1&amp;gt;;
			#size-cells = &amp;lt;1&amp;gt;;
	
			lfs1_part: partition@71000 { //438272 bytes by ext secondary | 500,000 byte(approx) , total =  8,388,608 byte
				label = &amp;quot;storage&amp;quot;;
				reg = &amp;lt;0x71000 0x800000&amp;gt;; //0x400000 //0x00010000(65k) //0x800000(8MB)
			};
		};
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and main file and overlay file is same as example you provided in previous comment .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;please let me know what i am missing .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;S&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496194?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 12:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00351e8e-1669-442d-8031-02fcc224948e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;There is an unofficial&amp;nbsp;&lt;a href="https://github.com/martelmy/NCS_examples/tree/main/peripherals/hello_world_usb"&gt;hello_world_usb&lt;/a&gt; sample which demonstrates how to use CDC ACM USB for logging. Can you try it out?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496185?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 11:43:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a7931bb-3a09-42f9-8ebd-a2ace81520c0</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;Hi sir&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp; waiting for your reply .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have a custom board that has a USB port .&lt;/p&gt;
&lt;p&gt;i use J-Link which has vdd, swdio,swdclk ,reset, and ground wires that connect to custom board .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;also another nordic product we work on has NO USB port , only a jlink connecter to flash the firmware .&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;please tell me how i can see logs/traces on both of these devices/custom boards&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496077?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 18:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23bf36c9-864f-46ef-8e59-d3a5c67bda1e</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;Hello Dejan&lt;/p&gt;
&lt;p&gt;I am having a very tough time regarding this issue .&lt;/p&gt;
&lt;p&gt;I am using sdk 2.6.0 but now I have downgraded to 2.3.0&lt;/p&gt;
&lt;p&gt;same with tool chain .&lt;br /&gt;&lt;br /&gt;sample I use is , zephyr/samples/subsys/usb/console&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;please help ,&lt;/p&gt;
&lt;p&gt;after your valuable feedback please answer X1&lt;/p&gt;
&lt;p&gt;X1- &amp;nbsp;If we upgrade on sdk will the way of using samples also changes ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB over Console not working on custom board</title><link>https://devzone.nordicsemi.com/thread/496072?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 17:42:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cea73c0-2654-4059-ab12-3d1d8aec4a45</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Which NCS version do you use?&lt;br /&gt;&lt;br /&gt;Could you provide a link to the sample which you use?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>