<?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>PCA10056 USB CDC Demo, no polling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29641/pca10056-usb-cdc-demo-no-polling</link><description>Hello,
I am trying to modify the usbd_cdc_acm_modified example project in the SDK to do the following: 
 
 Echo the received character back to the terminal. 
 Get rid of the main while loop polling
while (app_usbd_event_queue_process())
so that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 May 2020 13:17:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29641/pca10056-usb-cdc-demo-no-polling" /><item><title>RE: PCA10056 USB CDC Demo, no polling</title><link>https://devzone.nordicsemi.com/thread/250195?ContentTypeID=1</link><pubDate>Fri, 15 May 2020 13:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc66d9e2-6d61-40a8-8957-161733dc0f24</guid><dc:creator>ubieda</dc:creator><description>&lt;p&gt;Hey, there. I don&amp;#39;t know if I&amp;#39;m years late or not. I&amp;nbsp;was looking at USB CDC example and got it working per the infocenter statement:&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&amp;quot;This may be done inside USB power event handler. USBD library should be enabled on NRF_DRV_POWER_USB_EVT_DETECTED and started on NRF_DRV_POWER_USB_EVT_READY.&amp;quot;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;What I had to do is to go on the project sdk_config.h and&amp;nbsp;set&amp;nbsp;APP_USBD_CONFIG_SOF_HANDLING_MODE to 2 (events are handled within interrupt context). Also, set&amp;nbsp;APP_USBD_CONFIG_EVENT_QUEUE_ENABLE to 0.&lt;br /&gt;&lt;br /&gt;I hope it is of any help to someone wondering the same when looking at USB ACM example.&lt;br /&gt;&lt;br /&gt;Best regards,&amp;nbsp;&lt;br /&gt;LuisF&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10056 USB CDC Demo, no polling</title><link>https://devzone.nordicsemi.com/thread/169779?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2019 15:35:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0aa182a-e48a-4be0-9c7c-27a77630565d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you connect the USB cable to the nRF52840 USB port (J16 on the&amp;nbsp;&lt;span&gt;NINA-B301 EVK)?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10056 USB CDC Demo, no polling</title><link>https://devzone.nordicsemi.com/thread/169144?ContentTypeID=1</link><pubDate>Sat, 02 Feb 2019 06:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aa31345-8ce9-4637-8a7a-b9889a3c0cf0</guid><dc:creator>ratnakar1978</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I am using NINA-B301 EVK having nRF52480 core chipset. I am trying to flash all USB, UART examples to see the log or print on the putty prompt but I am not able to see any log even after setting all configurations on putty.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_cli.html&amp;amp;anchor=lib_cli_terminal_settings"&gt;http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_cli.html&amp;amp;anchor=lib_cli_terminal_settings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I had checked in the forum that need to enable DTR but did not&amp;nbsp; observe the same in any USBD, UART related applications.&lt;/p&gt;
&lt;p&gt;I tried following applications&lt;/p&gt;
&lt;p&gt;USB CDC ACM&lt;/p&gt;
&lt;p&gt;USB MSC&lt;/p&gt;
&lt;p&gt;Temeprature&lt;/p&gt;
&lt;p&gt;USBD&lt;/p&gt;
&lt;p&gt;USBD UART&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But I am not able to see any print / log on putty prompt.&lt;/p&gt;
&lt;p&gt;Can you suggest anything in this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PCA10056 USB CDC Demo, no polling</title><link>https://devzone.nordicsemi.com/thread/117727?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2018 09:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c35b70c-9bc4-42ca-b666-dd0db3eb99f6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you change &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/structapp__usbd__config__t.html"&gt;&lt;code&gt;usbd_config&lt;/code&gt;&lt;/a&gt; struct passed to &lt;code&gt;app_usbd_init()&lt;/code&gt;? I tried to apply your changes to the USBD CDC ACM example, but got a hardfault in &lt;code&gt;app_usbd_event_add()&lt;/code&gt;, most likely because &lt;code&gt;ev_handler&lt;/code&gt; is not set in the config struct. Passing NULL to &lt;code&gt;app_usbd_init()&lt;/code&gt; seems to fix the issue. The app_usbd library will then use the default internal event handler, but you can also provide your own in the config struct.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>