<?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 read/ write without uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107383/usb-read-write-without-uart</link><description>Hi, 
 I am trying to setup usb on a custom board which does not have uart. I am able to enable usb using the zephyr usb device api and can see the correct status whenever I connect or disconnect my usb. 
 I have based my project on usb cdc acm example</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Feb 2024 13:13:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107383/usb-read-write-without-uart" /><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/467376?ContentTypeID=1</link><pubDate>Fri, 02 Feb 2024 13:13:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00eb3070-8b95-4f74-8f46-8d97a672e881</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kim,&lt;/p&gt;
&lt;p&gt;It is not a problem to enable UART driver even though you do not have physical UART mapped to the pins. You can reuse the configuration of cdc_acm_composite sample in your custom sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/466814?ContentTypeID=1</link><pubDate>Tue, 30 Jan 2024 16:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87c5bec5-fe90-40f8-819f-1b497479ecce</guid><dc:creator>kims</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;Yes I did try it on a nrf5340 DK but as you can see from the screenshot above I am always reading 0 and not the data I write using usb write function.&amp;nbsp;&lt;br /&gt;My intention is to setup usb so&amp;nbsp; that I do not have to use uart calls and&amp;nbsp; implementation is as shown in usb.c file . I am guessing I need to configure endpoints before I can use usb drivers but not sure how to do that.&amp;nbsp; If you can guide me how to set up usb correctly that would help me alot or any sample code that uses zephyr usb api would be much appreciated,&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/466571?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 15:37:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5825a0ce-ca67-491b-9b25-98d40e1639af</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tried to build the program with your code and device tree set up on nRF5340 DK. It works ok. Did you try to build your custom program on DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/466392?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2024 07:48:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bece4346-8958-4434-957c-77316fd84252</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Kim,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;It&amp;#39;s not using &amp;quot;uart drivers&amp;quot;, it&amp;#39;s USB CDC ACM UART, so it&amp;#39;s not a problem that you do not have UART on your custom board. It&amp;#39;s using USB.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/465566?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 12:55:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bda24c6-6997-40cf-b6c4-cd261d8c3154</guid><dc:creator>kims</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp; any update on this? I would really appreciate how to go about this as I am very much stuck&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/464991?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 10:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5953f1f5-e3ff-4aa6-b5db-c7d9c1382ef0</guid><dc:creator>kims</dc:creator><description>&lt;p&gt;The problem is not in the example code. I can get the cdc acm example to work on nrf5340dk without any issues.&lt;br /&gt;The problem I have is that the example seems to be using uart drivers but I do not have uart on my custom board so I am trying to work with zephyr usb api. And to test it I have removed the uart setup/ code from example code and only trying to use&amp;nbsp;usb api functions to read/ write. I am doing so by replacing the main file in example code with my own usb.c file (attached in original post)&lt;br /&gt;&lt;br /&gt;So the question is more how I can use usb api to read/ write over usb and see the result on com port.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/464887?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 16:39:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83df3e6d-5009-4a22-b9fd-24d1b02fe638</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The usb_cdc_acm exaple should work. Did you select correct COM port? Sometimes you may have a few devices connected at a time. You can check your COM port for this example by doing this.&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/pastedimage1705595966686v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/464860?ContentTypeID=1</link><pubDate>Thu, 18 Jan 2024 14:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4610977-185a-441d-9fc4-eb7bf4f6f4b6</guid><dc:creator>kims</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/kazi-afroza-sultana"&gt;Kazi Afroza Sultana&lt;/a&gt;&amp;nbsp;Can you please let me know if there is any other solution/ example&amp;nbsp;I can try? or if you are still working on this problem?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/464333?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 09:38:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba82129-b234-4f5a-8b27-5967d37e8681</guid><dc:creator>kims</dc:creator><description>&lt;p&gt;I have tried it and get the same result.&amp;nbsp; &lt;br /&gt;I also tried to use the cdc_acm_composite example on nrf5340dk and replaced my usb.c with the main file and used all the configs as are in the example project but still get the same result.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Usb read/ write without uart</title><link>https://devzone.nordicsemi.com/thread/464238?ContentTypeID=1</link><pubDate>Mon, 15 Jan 2024 15:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c91b4d1-35f5-4677-b881-3f3ee0bf36ce</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Did you try to follow the config file of cdc_acm sample? I can see you have not added these two:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt; CONFIG_SERIAL and also CONFIG_UART_INTERRUPT_DRIVEN in the config file.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Maybe you can try this one and see the change?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Thanks.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;BR&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;kazi&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>