<?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 CDC doesn&amp;#39;t appear as COM in Release. It&amp;#39;s visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80543/usb-cdc-doesn-t-appear-as-com-in-release-it-s-visible-only-in-debug-mode</link><description>Hi, I wanted to merge two example projects: &amp;quot;ble_central/ble_app_uart_c&amp;quot; so I have central client application, and a &amp;quot;peripheral/ble_usbd_ble_uart&amp;quot; so I have working USB CDC. I need such a combination so I could port it to Dongle with PCA10059 that&amp;#39;s</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 17 Oct 2021 19:30:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80543/usb-cdc-doesn-t-appear-as-com-in-release-it-s-visible-only-in-debug-mode" /><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334457?ContentTypeID=1</link><pubDate>Sun, 17 Oct 2021 19:30:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d51a9869-12db-441d-a4bc-a1fa1b0ca1c0</guid><dc:creator>Kubek</dc:creator><description>&lt;p&gt;Well, I solved the issue myself. There was a problem with such many things. I brainstormed myself for half a day and solved the issue. Thanks for yoiur good wish anyway!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334350?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 12:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83b354f3-0dba-4137-8362-3c543bf032ae</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Ok, yes I am able to reproduce that. Doesn&amp;#39;t seem to have anything to do with debug vs release. Moving app_usbd_power_events_enable() to be after all the init functions, like it is in usbd_ble_uart, makes the COM port show up in release, but doesn&amp;#39;t fix the underlying issue of&amp;nbsp;&lt;span&gt;nrf_sdh_enable_request&lt;/span&gt;&lt;span&gt;() failing due to an invalid state. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There is a lot going on here, almost like you are trying to merge the examples in one go.&amp;nbsp;That&amp;#39;s bound to cause headaches. I would start over with one of the examples, slowly integrate functions from the other example, and identify and fix issues along the way. Then you can easily point to a single, smaller change which causes issues.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334290?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 09:21:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5138b316-9a93-4325-a824-16f60a6b2d9a</guid><dc:creator>Kubek</dc:creator><description>&lt;p&gt;I guess we misunderstood. The COM you opened is the J-Link one and it works pretty fine. But you need to attach yet another USB cable to a USB nRF, next to Reset button. It should appear as other COM port that crashes for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334285?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 08:58:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f79d8f40-fdd3-4cdb-bf25-c5a05fdbade4</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;I am not able to reproduce the issue. In release, the COM port appears, the restart button works and I get terminal output on the COM port:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;BLE UART central example started.
-1090482353
f_addr = 1284
&amp;amp;f_addr = 537133000
p_addr = 1284
*p_addr = -1090482353
&amp;amp;p_addr = 537133016
1 = 1
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can try a few things, like an erase all on the board, cleaning the build in SEGGER, &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools/download"&gt;updating to the latest nrf command line tools&lt;/a&gt;, or moving the project to a fresh SDK install.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334232?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 17:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e78fb32-5acf-4a24-9b5f-c31b5ed873bc</guid><dc:creator>Kubek</dc:creator><description>&lt;p&gt;Sure, I&amp;#39;ts attached in the link below:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp;I&amp;#39;m not sure how to write into registers, as you suggest.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/334126?ContentTypeID=1</link><pubDate>Thu, 14 Oct 2021 11:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78d90c15-d17f-4ac1-8c37-d5087d3f5437</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;can you zip and attach the project folder, so I can try building it on my end?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB CDC doesn't appear as COM in Release. It's visible only in Debug mode.</title><link>https://devzone.nordicsemi.com/thread/333588?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 17:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af6285c4-520d-4ef4-a9c0-4e3fc867889d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You need to force an USB reset or disconnect event on device (re-)start.&lt;/p&gt;
&lt;p&gt;Simplest solution is to put the USBPULLUP register into &amp;quot;pullup is disconnected&amp;quot; state and then wait about a second.The pulldown resistor in the USB hub pulls the datalines low, forcing a disconnect on the host.&lt;/p&gt;
&lt;p&gt;After that, resume normal operation like app_usbd_init().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>