<?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>How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70637/how-to-use-usb-cdc-transfer-api-in-zephyr</link><description>Hello experts, 
 
 I would like to get my mind clear on this. 
 I am using NRF52833 for our custom board we are using Zephyr RTOS (NCS v1.4.99) and IDE is segger embedded studio. 
 I am using USBD_CDC driver. I am able to detect the USB power. I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jan 2021 15:12:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70637/how-to-use-usb-cdc-transfer-api-in-zephyr" /><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/291092?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 15:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e19b1cf-4885-4be5-b1a1-2b731b1e40dd</guid><dc:creator>Edvin</dc:creator><description>[quote user="sudharsan"]Are you suggesting me to use Termite?[/quote]
&lt;p&gt;&amp;nbsp;No, just saying that perhaps the DTR is the part that is blocking you. I don&amp;#39;t know whether this is an option, or whether it is enabled by default in Terraterm. That is for you to research.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="sudharsan"]No need of UART configuration right?...In my custom board UART hardware provision is not available.[/quote]
&lt;p&gt;&amp;nbsp;No need. The UART is only for logging.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Perhaps you can try to use Putty? You need to set up &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_cli.html?cp=7_1_3_10_3#lib_cli_terminal_settings"&gt;these putty settings&lt;/a&gt;. Remember to apply both the settings from the section &amp;quot;Terminal settings&amp;quot; and the section &amp;quot;UART and USB settings&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition, add the setting:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611587487874v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then, if you see the text that you type into Putty, it means they are echoed back. If it doesn&amp;#39;t work, it will not be possible to type anything to the Putty window.&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: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290973?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 10:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:281d8628-b887-487a-8f80-d1330ea20bbe</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;A&lt;/p&gt;
[quote userid="26071" url="~/f/nordic-q-a/70637/how-to-use-usb-cdc-transfer-api-in-zephyr/290501#290501"]That is the name of the project, but I tested it, and it doesn&amp;#39;t react to my UART. The UART is only used for logging. I don&amp;#39;t know why the sample is called that. This sample is from Zephyr, and not NCS (the Nordic part of Zephyr), so I can&amp;#39;t say why they decided to call it what they did.[/quote]
&lt;p&gt;No need of UART configuration right?...In my custom board UART hardware provision is not available.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290971?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 10:08:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de1853c4-593f-42c5-8cc2-c4debdad2721</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;I am using Tera term to connect USB port and get the debug data.&lt;/p&gt;
&lt;p&gt;Are you suggesting me to use Termite?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290968?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 10:03:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44d735fe-9d2c-44a2-be5d-0cf66b439b97</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Have you tried to enable DTR?&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what terminal you are using, but I am using Termite:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611569012116v1.png" alt=" " /&gt;&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: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290730?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 12:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69568390-1625-4420-8e20-da770d37a348</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;Yes it built...I have connected as usb power has been detected...but no data seen on serial monitor.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290725?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 11:57:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:434ed15a-dd0a-4c95-b12d-d0af6abb8331</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;sure Edvin. I will give it a try with NCS version 1.4.2 and let you know&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290714?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 11:05:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21a57aaf-48cf-40c3-8397-3a2340b23c24</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, so I downloaded the v1.4.99 dev branch that you are using, and it fails in the same way as it did for you. Note that this is the developer branch. I tried building using the 1.4.2 version. Can you please try the same? It compiled without errors for me.&lt;/p&gt;
&lt;p&gt;It looks like this is only a Segger Embedded Studio issue, as the issue was not present when I tried to build with the command line using &amp;quot;west&amp;quot; with the 1.4.99 dev-branch.&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: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290638?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 05:37:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70f2530f-9548-4db1-8300-4cc1384d36fe</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have attached the screenshot here. This is the path that I would select project using toolchain manager.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611294078220v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611291843071v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Project driver files like nrf_rtc.c, nrfx_i2c.c and all I just use &lt;strong&gt;proj.conf&lt;/strong&gt; file to add these driver files.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Segger and other related packages has been installed in Volume:C of my PC&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611292572688v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anything else that you are looking for....Please let me know&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290559?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 14:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8440aef-5f5a-40ac-a9ab-fce8ba05e0ca</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I tested building and flashing using the command line:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;west build -b nrf52833dk_nrf52833 -d _build_nrf52833
west flash -d _build_nrf52833&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611237712901v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did so because I didn&amp;#39;t have Segger Embedded Studio Nordic edition installed on my home computer (home office because of Covid-19).&lt;/p&gt;
&lt;p&gt;Can you please show me a screenshot of the menu where you set up the project in SES (the window where you select the project files, board files and so on).&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: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290528?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 13:09:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5cdd67a-275b-4b8c-a205-e7930dbadbbf</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;could you please select nrf52833 in toolchain manager and build this project???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290527?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 13:07:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81df4197-a12d-4017-b5fc-7ce4df137b2c</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;It looks all the directories built completely.&lt;/p&gt;
&lt;p&gt;This is an example project that I did not changed anything and I built it directly.&lt;/p&gt;
&lt;p&gt;Finally log says the following&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;combining zephyr/isr_tables.c&amp;quot;&lt;/p&gt;
&lt;p&gt;unrecognized option&amp;#39;--output-source&amp;#39;&lt;/p&gt;
&lt;p&gt;]&amp;lt;value&amp;gt;[&amp;lt;flags&amp;gt;] Add a symbol&lt;/p&gt;
&lt;p&gt;&amp;lt;version&amp;gt;]&lt;/p&gt;
&lt;p&gt;supported targets: elf32-littlearm elf32-littlearm-fdpic elf32-bigarm&amp;nbsp;&lt;span&gt;elf32-bigarm-fdpic elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex plugin&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;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1611234659672v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sudharsan&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290501?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 12:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f045d328-559e-48f1-b46d-4ddef55e4e17</guid><dc:creator>Edvin</dc:creator><description>[quote user="sudharsan"]They had written USB-to-UART transfer right? &lt;strong&gt;In our custom board there is no UART pins.&lt;/strong&gt;[/quote]
&lt;p&gt;&amp;nbsp;That is the name of the project, but I tested it, and it doesn&amp;#39;t react to my UART. The UART is only used for logging. I don&amp;#39;t know why the sample is called that. This sample is from Zephyr, and not NCS (the Nordic part of Zephyr), so I can&amp;#39;t say why they decided to call it what they did.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="sudharsan"]It looks project build has been failed. Please look at the picture, down here.[/quote]
&lt;p&gt;&amp;nbsp;What does the compiler say when it fails to build? I can&amp;#39;t tell from your screenshot. At least one of the builds should not have the &amp;quot;build completed&amp;quot; message. What does that one say? Is it missing anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290389?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 05:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cebeec7-4ac8-4d0d-8b74-8bd437e13477</guid><dc:creator>sudharsan</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;I have used the same example for nrf52833 build. It looks project build has been failed. Please look at the picture, down here.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x0/__key/communityserver-discussions-components-files/4/pastedimage1611205476541v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I have used the &amp;quot;&lt;span&gt;NCS\zephyr\samples\subsys\usb\cdc_acm&amp;quot; driver&lt;/span&gt;&amp;nbsp;in my project. It seems USB power has been detected.&lt;/p&gt;
&lt;p&gt;They had written USB-to-UART transfer right? &lt;strong&gt;In our custom board there is no UART pins.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; &lt;/strong&gt;Earlier days I have developed my project with SDK17.0.2. In that, I was able to transfer via USB without UART config. The same I am expecting here to work with.&lt;/p&gt;
&lt;p&gt;This is my Proj.conf file&lt;/p&gt;
&lt;p&gt;CONFIG_STDOUT_CONSOLE=y&lt;br /&gt;CONFIG_USB_DEVICE_STACK=y&lt;br /&gt;CONFIG_USB_DRIVER_LOG_LEVEL_ERR=y&lt;br /&gt;CONFIG_USB_DEVICE_LOG_LEVEL_ERR=y&lt;br /&gt;CONFIG_NRFX_USBD=y&lt;br /&gt;CONFIG_NRFX_POWER=y&lt;br /&gt;CONFIG_USB_CDC_ACM=y&lt;br /&gt;CONFIG_USB_DEVICE_PRODUCT=&amp;quot;Zephyr CDC ACM sample&amp;quot;&lt;br /&gt;CONFIG_USB=y&lt;/p&gt;
&lt;p&gt;Please suggest your answers as soon as possible.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Sudharsan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use USB CDC transfer API in zephyr</title><link>https://devzone.nordicsemi.com/thread/290211?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2021 11:03:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:006219f6-8a6c-48bf-b5cb-1a1eb98841b0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It looks correct. I suggest you check out the sample found in:&lt;/p&gt;
&lt;p&gt;NCS\zephyr\samples\subsys\usb\cdc_acm.&lt;/p&gt;
&lt;p&gt;This works as a loopback cdc_acm device. Test it with the USB peripheral on your custom board. Let me know whether it works or not.&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></channel></rss>