<?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>Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example</link><description>Hi everyone, 
 I&amp;#39;m using ses IDE to debug via J-link on nRF52840 DK. 
 I&amp;#39;m debbuging CDC ACM example ( I haven&amp;#39;t changed it ) but when I debug: ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size) I have that ret is not NRF_SUCCESS, 
 Why?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Dec 2020 11:30:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example" /><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284498?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 11:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0d2dfd6-4969-43ed-81c4-4a73777d8e58</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="LNwork"]&lt;p&gt;I get this error when I run the completely unmodified example. I downloaded the SDK and then using SES I flashed the nRF52840DK.&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I want to clarify that the program works correctly. As I&amp;#39;m new to programming, I tried debugging despite the program working. It is by doing this that I encountered the problem I was telling you in previous messages. I hope my message is clear, sorry but I am using translator and it may not be clear.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Now I understand, thank you for clarifying this. I am happy to hear that the example is working correctly.&lt;br /&gt;As I mentioned before it is absolutely possible that this particular issue is caused by the debugging itself - since the CPU is halted between debugging steps the communication might fail as a result. This could indeed be what is causing your issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284355?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 14:23:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912827f9-e4f4-449e-b719-7670147baa33</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example/284351#284351"]Are you getting this error when you run the &lt;em&gt;completely unmodified&lt;/em&gt; example, or have you made any changes ( like calling the&amp;nbsp;&lt;em&gt;write&lt;/em&gt; function periodically, like discussed in your other tickets )?[/quote]
&lt;p&gt;I get this error when I run the completely unmodified example. I downloaded the SDK and then using SES I flashed the nRF52840DK.&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;I want to clarify that the program works correctly. As I&amp;#39;m new to programming, I tried debugging despite the program working. It is by doing this that I encountered the problem I was telling you in previous messages. I hope my message is clear, sorry but I am using translator and it may not be clear.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Thanks again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284351?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 14:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e719313-56ec-4b01-8c3b-83b71ef49865</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="LNwork"]ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size);[/quote]
&lt;p&gt;Thank you for clarifying.&lt;br /&gt;With the returned error code and which function that returned it, we can start looking into what triggered it.&lt;br /&gt;We start with looking at &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__app__usbd__cdc__acm.html&amp;amp;anchor=ga01f02199ff963085225751057f4d9e5d"&gt;the API Reference documentation for the triggering app_usbd_cdc_acm_write function&lt;/a&gt;. We see here that this function is a higher-level function, which will return standard error codes as generated on the lower levels. We therefore look into the source code of the usbd_cdc_acm driver, to figure out why this error was generated - we find this file located at SDK_ROOT\components\libraries\usbd\class\cdc\acm.&lt;br /&gt;We see that it in fact returns the error code of the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrfx__usbd.html&amp;amp;anchor=gaacaec34e0d4cf3365651621aef14c592"&gt;app_usbd_ep_transfer function&lt;/a&gt;.&lt;br /&gt;An exempt from the app_usbd_ep_tranfer_function API documentation reads:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;NRFX_ERROR_BUSY&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;Selected endpoint is pending.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;So, it seems the endpoint is pending.&lt;br /&gt;Are you getting this error when you run the &lt;em&gt;completely unmodified&lt;/em&gt; example, or have you made any changes ( like calling the&amp;nbsp;&lt;em&gt;write&lt;/em&gt; function periodically, like discussed in your other tickets )?&lt;br /&gt;Could you tell me how to provoke this error, so that I may try to replicate it?&lt;/p&gt;
[quote user="LNwork"]I haven&amp;#39;t changed anything in the example so I don&amp;#39;t understand where the problem is. Is it a bug in the SDK?[/quote]
&lt;p&gt;That is of course always a possibility, but it is not the most likely one.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284294?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 11:02:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6107675-cd76-495b-834f-44366a892a8a</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example/284291#284291"]Which function returned the error message passed to the APP_ERROR_CHECK at line 357?[/quote]
&lt;p&gt;ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size);&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I haven&amp;#39;t changed anything in the example so I don&amp;#39;t understand where the problem is. Is it a bug in the SDK?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284291?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 10:53:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f90a48ac-a5cc-41b7-8b48-07dd8ea8f42c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="LNwork"]Maybe you are referring to this error code?[/quote]
&lt;p&gt;Yes, thank you, this is exactly the error code I am referring to.&lt;br /&gt;To start looking into the error we also need to see which function that returned the NRF_ERROR_BUSY. The error message indicates that the error code was passed to an APP_ERROR_CHECK on line 357 of main.c&lt;br /&gt;Which function returned the error message passed to the APP_ERROR_CHECK at line 357?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284277?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 10:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:546f8382-bed9-4539-80bb-37e34e82ecea</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example/284273#284273"]Defining DEBUG in the preprocessor defines will make a detailed error message be written to the log, which we may then use to identify the issue the application is encountering.[/quote]
&lt;p&gt;&amp;lt;error&amp;gt; app: ERROR 17 [NRF_ERROR_BUSY] at C:\Users\blackp\Desktop\DeviceDownlo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ad\nRF5SDK1702d674dde\nRF5_SDK_17.0.2_d674dde\examples\peripheral\usbd_cdc_acm\main.c:357&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Maybe you are referring to this error code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284273?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 10:12:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75699f45-57d8-4b6f-a354-1c2d4cadc20c</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="LNwork"]&lt;p&gt;The output is:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt;&amp;lt;warning&amp;gt; app: System reset&lt;/p&gt;[/quote]
&lt;p&gt;Could you confirm for me which logger backend you are using, and that you have DEBUG defined in your preprocessor defines - like shown in the image I included in my first comment?&lt;/p&gt;
[quote user="LNwork"]Also adding the line as you advised me, when I press the button, frame_counter increases by a few units and then the system resets itself automatically. In other words, the program no longer works as it should.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, as I mentioned in my previous comment the default error handling done by APP_ERROR_CHECK when it receives an error code != NRF_CONNECT is to reset the device.&lt;br /&gt;Defining DEBUG in the preprocessor defines will make a detailed error message be written to the log, which we may then use to identify the issue the application is encountering.&lt;/p&gt;
[quote user="LNwork"]I thank you infinitely for your availability and for your precious collaboration. Have a nice day.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;br /&gt;&lt;br /&gt;Looking forward to resolving this issue together.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284244?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 08:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14004c58-7d6e-4b81-8e2d-a5854170cb7a</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example/284147#284147"]Please let me know what the outputted error message says.[/quote]
&lt;p&gt;The output is:&lt;/p&gt;
&lt;p&gt;&amp;lt;error&amp;gt; app: Fatal error&lt;br /&gt;&amp;lt;warning&amp;gt; app: System reset&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also adding the line as you advised me, when I press the button, frame_counter increases by a few units and then the system resets itself automatically. In other words, the program no longer works as it should. I thank you infinitely for your availability and for your precious collaboration. Have a nice day.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284147?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 15:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca7dee64-bb57-451a-b9d3-c454212e8254</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="LNwork"]&lt;p&gt;&lt;span lang="en"&gt;At line 67 there is a conditional statement. In the debug phase the condition is not verified and therefore in the debug it would seem that frame_counter is not incremented. However trying the program it results that frame_counter is incremented.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Ah, so it is. I understand. Could you go ahead and add a APP_ERROR_CHECK(ret) right after the line?&lt;br /&gt;This should always be done when an error code is returned, in order to find out whether it was successful or not.&lt;br /&gt;I am not certain why it was not added in the first place in the example, and will create an internal ticket to inquire about this, and ask that it is added in future versions.&lt;br /&gt;&lt;br /&gt;If the error is != NRF_SUCCESS then the APP_ERROR_CHECK will print a more detailed error message to the log, before resetting the device ( default error handling ).&lt;br /&gt;&lt;br /&gt;Please let me know what the outputted error message says.&lt;/p&gt;
[quote user="LNwork"]Sorry if I can&amp;#39;t explain myself well but I&amp;#39;m not very familiar with English as I am Swedish.[/quote]
&lt;p&gt;No worries, your English is fine for now and I will do my best to understand what you mean.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284018?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 11:11:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80a2ab94-6b65-4058-994d-d1bccfe2277c</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>&lt;p&gt;There is not an error messagge.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    ret_code_t ret;
    static const app_usbd_config_t usbd_config = {
        .ev_state_proc = usbd_user_ev_handler
    };

    ret = NRF_LOG_INIT(NULL);
    APP_ERROR_CHECK(ret);

    ret = nrf_drv_clock_init();
    APP_ERROR_CHECK(ret);
    
    nrf_drv_clock_lfclk_request(NULL);

    while(!nrf_drv_clock_lfclk_is_running())
    {
        /* Just waiting */
    }

    ret = app_timer_init();
    APP_ERROR_CHECK(ret);

    init_bsp();
#if NRF_CLI_ENABLED
    init_cli();
#endif

    app_usbd_serial_num_generate();

    ret = app_usbd_init(&amp;amp;usbd_config);
    APP_ERROR_CHECK(ret);
    NRF_LOG_INFO(&amp;quot;USBD CDC ACM example started.&amp;quot;);

    app_usbd_class_inst_t const * class_cdc_acm = app_usbd_cdc_acm_class_inst_get(&amp;amp;m_app_cdc_acm);
    ret = app_usbd_class_append(class_cdc_acm);
    APP_ERROR_CHECK(ret);

    if (USBD_POWER_DETECTION)
    {
        ret = app_usbd_power_events_enable();
        APP_ERROR_CHECK(ret);
    }
    else
    {
        NRF_LOG_INFO(&amp;quot;No USB power detection enabled\r\nStarting USB now&amp;quot;);

        app_usbd_enable();
        app_usbd_start();
    }

    while (true)
    {
        while (app_usbd_event_queue_process())
        {
            /* Nothing to do */
        }
        
        if(m_send_flag)
        {
            static int  frame_counter;

            size_t size = sprintf(m_tx_buffer, &amp;quot;Hello USB CDC FA demo: %u\r\n&amp;quot;, frame_counter);

            ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size);
            
            if (ret == NRF_SUCCESS)
            {
                ++frame_counter;
            }
        }
        
#if NRF_CLI_ENABLED
        nrf_cli_process(&amp;amp;m_cli_uart);
#endif

        UNUSED_RETURN_VALUE(NRF_LOG_PROCESS());
        /* Sleep CPU only if there was no interrupt since last loop processing */
        __WFE();
    }
}

/** @} */
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span lang="en"&gt;At line 67 there is a conditional statement. In the debug phase the condition is not verified and therefore in the debug it would seem that frame_counter is not incremented. However trying the program it results that frame_counter is incremented.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;span&gt;Sorry if I can&amp;#39;t explain myself well but I&amp;#39;m not very familiar with English as I am Swedish.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284016?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 11:06:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f00e61a-c495-4c47-83aa-d3036db1676e</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="LNwork"]Yes, now I see outputs on Termite. The problem is that there is not any error message (I see only info as the application initializing). The program works fine as ret=NRF_SUCCESS&amp;nbsp;[/quote]
&lt;p&gt;Great!&lt;br /&gt;&lt;br /&gt;What is the error message generated when you are using the debugger?&lt;br /&gt;&lt;br /&gt;Please be advised that when you are using the debugger, and halting the program you are actually halting the CPU. This might cause certain timing-critical processes to fail ( such as the SoftDevice BLE communication ), as a result of the debugging.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/284013?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 10:56:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb1f631-ca8a-4f36-8e62-a00ef480b930</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>[quote userid="87869" url="~/f/nordic-q-a/69182/debug-problem-on-cdc-acm-example/283728#283728"]If you open a serial terminal, like PuTTY or Termite, and open the port to which the device is connected, then you should see outputs by the device when it is running. It will print some messages as the application initializing, and then again if it encounters some error or receives data through the USB.[/quote]
&lt;p&gt;Yes, now I see outputs on Termite. The problem is that there is not any error message (I see only info as the application initializing). The program works fine as ret=NRF_SUCCESS&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only problem is during debugging, when I debug seems that ret is not NRF_SUCCESS.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s like there&amp;#39;s a difference beetween debug and when the program is flashed in the nRF52840.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/283728?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 09:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3018fe32-c256-4b98-885d-e65b83a92484</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="LNwork"]Yes, I have DEBUG defined in my preprocessor defines.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="LNwork"]How can I view the logger output?[/quote]
&lt;p&gt;The USB CDC ACM example uses the UART logger backend by default.&lt;br /&gt;Are you familiar with using serial terminals?&lt;br /&gt;If you open a serial terminal, like PuTTY or Termite, and open the port to which the device is connected, then you should see outputs by the device when it is running. It will print some messages as the application initializing, and then again if it encounters some error or receives data through the USB.&lt;br /&gt;Please let me know if you are not able to see the messages outputted by the device to the logger.&lt;/p&gt;
[quote user="LNwork"]Sorry but I&amp;#39;m new at programming with SES[/quote]
&lt;p&gt;Welcome! No need to apologize, we&amp;#39;ve all been new to it at some point! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if you should encounter any issues or questions!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/283652?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 17:27:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c4592d-801e-45b5-8bb4-29ba15ca41b6</guid><dc:creator>alexl&amp;#246;ddek&amp;#246;pinge</dc:creator><description>&lt;p&gt;Yes, I have DEBUG defined in my preprocessor defines.&lt;/p&gt;
&lt;p&gt;How can I view the logger output?&lt;/p&gt;
&lt;p&gt;Sorry but I&amp;#39;m new at programming with SES&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug problem on CDC ACM example</title><link>https://devzone.nordicsemi.com/thread/283637?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 16:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06b04928-d422-4f33-882c-d2b602c1a8fc</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I&amp;#39;m debbuging CDC ACM example (&lt;span&gt;I haven&amp;#39;t changed it&lt;/span&gt;) but&amp;nbsp; when I debug:&amp;nbsp; &amp;nbsp;ret = app_usbd_cdc_acm_write(&amp;amp;m_app_cdc_acm, m_tx_buffer, size) I have that ret is not NRF_SUCCESS,[/quote]
&lt;p&gt;Could you make sure that you have DEBUG defined in your preprocessor defines, like shown in the included image?&lt;br /&gt;This will make a more complete error message be printed to your logger output when an APP_ERROR_CHECK is passed a non-NRF_SUCCESS argument.&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6558.enabling_5F00_debug_5F00_SES.PNG" /&gt;&amp;nbsp;&lt;br /&gt;Please do this, and let me know what is outputted to your log when the error occurs.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>