<?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 view LOG from nRF52840 USB CDC example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33359/how-to-view-log-from-nrf52840-usb-cdc-example</link><description>Hi, I am working on the project through the USB CDC example. 
 I know how to view log using RTT Viewer through J-Link and UART-LOG using UART. 
 But how can I see LOG with only CDC-USB connected? 
 I am using Putty to connect to the COM port that came</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jan 2020 03:26:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33359/how-to-view-log-from-nrf52840-usb-cdc-example" /><item><title>RE: How to view LOG from nRF52840 USB CDC example</title><link>https://devzone.nordicsemi.com/thread/228455?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 03:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:939d5781-d8f3-4b4f-8436-a87a910d07be</guid><dc:creator>Brian Hung</dc:creator><description>&lt;p&gt;&lt;br /&gt;in my test case , i&amp;#39;m using usb interactive example,i need using CDC ACM port to read log,&lt;br /&gt;so&amp;nbsp; i change nrf_cli_init parameter from&amp;nbsp;NRF_LOG_SEVERITY_ERROR to&amp;nbsp;NRF_LOG_SEVERITY_INFO and it works for me.&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void cli_init(void) 
{ 
    ret_code_t ret; 
#if CLI_OVER_USB_CDC_ACM 
    //ret = nrf_cli_init(&amp;amp;m_cli_cdc_acm, NULL, true, true, NRF_LOG_SEVERITY_ERROR); 
    ret = nrf_cli_init(&amp;amp;m_cli_cdc_acm, NULL, true, true, NRF_LOG_SEVERITY_INFO); 
    APP_ERROR_CHECK(ret); 
#endif 
#if CLI_OVER_UART 
    nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG; 
    uart_config.pseltxd = TX_PIN_NUMBER; 
    uart_config.pselrxd = RX_PIN_NUMBER; 
    #ifdef HWFC uart_config.pselcts = CTS_PIN_NUMBER; 
    uart_config.pselrts = RTS_PIN_NUMBER; 
    uart_config.hwfc = NRF_UART_HWFC_ENABLED; 
    #endif 
    ret = nrf_cli_init(&amp;amp;m_cli_uart, &amp;amp;uart_config, true, true, NRF_LOG_SEVERITY_ERROR); 
    APP_ERROR_CHECK(ret); 
#endif 
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to view LOG from nRF52840 USB CDC example</title><link>https://devzone.nordicsemi.com/thread/227180?ContentTypeID=1</link><pubDate>Thu, 02 Jan 2020 05:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d5875b9-4cd5-4a65-a334-33e95e84de32</guid><dc:creator>Saagar</dc:creator><description>&lt;p&gt;Hi, can you tell me how to see logs using j-link ..i have connected swdio,swdclk,VCC,gnd&amp;nbsp; from dongle&amp;nbsp; to j-link but the dongle is not being detected.. thanks in advance&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to view LOG from nRF52840 USB CDC example</title><link>https://devzone.nordicsemi.com/thread/211035?ContentTypeID=1</link><pubDate>Sat, 21 Sep 2019 06:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c567e34-5be8-40bd-aeda-dbc930d00aeb</guid><dc:creator>karelv</dc:creator><description>&lt;p&gt;I&amp;#39;m looking for exactly the same feature; I would be logical to me to be able to sent the log over the usb CDC serial uart...&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/cheon"&gt;jwcheon&lt;/a&gt; did you made any progress? Can you share? Thx.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to view LOG from nRF52840 USB CDC example</title><link>https://devzone.nordicsemi.com/thread/128253?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 13:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b33b7dde-6915-4275-a89a-ea90ab2a20b6</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Unfortunately, there&amp;#39;s no built-in functionality to redirect the logging calls to the USB peripheral. However, you can define your own backed for logging. If you look at nrf_log_backend_uart.c you can see how the backend is implemented, so you can use this as a starting point and rewrite it for the USB peripheral.&lt;/p&gt;
&lt;p&gt;Or, you can start out with the USB CDC example in the sdk and use app_usbd_cdc_acm_write() to print out your log messages.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>