<?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>Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84309/compile-examples-from-standalone-sdk-by-using-command-line-and-uart-traces</link><description>Hello ! 
 I would like to evaluate few examples from standalone SDK and compile those under Linux Ubuntu. 
 For example : nRF5_SDK_17.1.0_ddde560/examples/crypto/nrf_cc310_bl/pca10056/blank/armgcc 
 I have added to my .bashrc proper definitions for compiler</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Feb 2022 07:09:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84309/compile-examples-from-standalone-sdk-by-using-command-line-and-uart-traces" /><item><title>RE: Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/thread/351228?ContentTypeID=1</link><pubDate>Fri, 04 Feb 2022 07:09:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1f25401-66b0-4211-81cc-c013aa6876b4</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi Edvin !&lt;/p&gt;
&lt;p&gt;Thank you !&lt;/p&gt;
&lt;p&gt;this test case start to work. No idea why those lines was disabled. May be they try to use noninterrupt driven framework for CC310.&lt;/p&gt;
&lt;p&gt;But in some tests inside test_app folder, for example :&lt;/p&gt;
&lt;p&gt;examples/crypto/nrf_crypto/test_app/pca10056_cc310_bl/armgcc&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;UART traces enablers removed everywhere. I have try to add to sdk_config a lot if similar definitions&lt;/p&gt;
&lt;p&gt;but no luck.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/thread/351100?ContentTypeID=1</link><pubDate>Thu, 03 Feb 2022 12:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aafe76fc-efa5-4627-98c2-6c9abe88a579</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I tested with the modifications that you mentioned in your previous reply, and I got the same behavior that you did. I started looking around, and I found these two lines inside integration_tests_setup() in integration_test_plat_utils.c:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    //NVIC_EnableIRQ(CRYPTOCELL_IRQn);

    //NRF_CRYPTOCELL-&amp;gt;ENABLE = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why they were commented out, but commenting them back in made all the tests succeed, and all the INTEG_TEST_PRINT() was printed via the UART.&lt;/p&gt;
&lt;p&gt;Perhaps you can try the same.&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: Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/thread/350962?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 18:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbda7a0f-9479-47d3-9cf5-f3e2d045301f</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;I think exists some other problem with UART traces.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Example :&amp;nbsp;nRF5_SDK_17.1.0_ddde560/examples/crypto/nrf_crypto/test_app/pca10056_cc310_bl/armgcc&lt;/p&gt;
&lt;p&gt;examples/crypto/nrf_crypto/test_app/main.c&lt;/p&gt;
&lt;p&gt;Looks as fully UART trace enabled BUT traces are not visible.&lt;/p&gt;
&lt;p&gt;In make sdk-config visible only RTT type of traces and I have tried to disable those&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;NRF_LOG_BACKEND_UART_ENABLED 1 in sdk_config.h&lt;/p&gt;
&lt;p&gt;LED1 is blinking several time.&lt;/p&gt;
&lt;p&gt;Most probably test is executed, but no UART traces at all, even defering is disabled as before.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/thread/350958?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 18:14:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a3fde0e-0a79-48ad-ae84-b4488ae039a5</guid><dc:creator>Hiihtaja</dc:creator><description>&lt;p&gt;Hi !&lt;/p&gt;
&lt;p&gt;I have added on top of file redefinitions like this&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf_log_default_backends.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf_log_ctrl.h&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;nrf_log.h&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;#undef&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;INTEG_TEST_PRINT&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;INTEG_TEST_PRINT&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_LOG_INFO&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and call log_init() as almost first line in main()&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span&gt;#define&amp;nbsp;NRF_LOG_DEFERRED&amp;nbsp;0 in sdk_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UART traces are appears !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But test failed at init phase:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Initializing nrf_cc310_bl&lt;/p&gt;
&lt;p&gt;&amp;lt;info&amp;gt; app: Failure: 0x00000006&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What I should do ?&lt;/p&gt;
&lt;p&gt;Create new ticket or this one can be used for handle this problem ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Eugene&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;P.S. I will try other cryptotests on nRF52840 DK&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile examples from standalone SDK by using command line and UART traces</title><link>https://devzone.nordicsemi.com/thread/350893?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 13:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:263b6aa5-8e4d-4aff-b708-a8087981242b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is correct that this example enables UART logging in sdk_config.h, however, as this is an externally written example, the main.c file is not written by us, so it doesn&amp;#39;t use the Nordic Log module.&lt;/p&gt;
&lt;p&gt;You can see that it uses something called INTEG_TEST_PRINT(). If you go to the definition of this function, which is implemented in integration_test_plat_defs.h, you can see that this is forwarded to SEGGER_RTT_printf(0, __VA_ARGS__)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to print the log over UART, I suggest that you add this function to your main.c file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Function for initializing the nrf log module.
 */
static void log_init(void)
{
    ret_code_t err_code = NRF_LOG_INIT(NULL);
    APP_ERROR_CHECK(err_code);

    NRF_LOG_DEFAULT_BACKENDS_INIT();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And call it near the top of your main() function. Then replace all the INTEG_TEST_PRINT(&amp;quot;&amp;quot;); with NRF_LOG_INFO(&amp;quot;&amp;quot;);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You also need to either set&amp;nbsp;#define NRF_LOG_DEFERRED 0 in sdk_config.h, or replace &amp;quot;while(1);&amp;quot; in main() with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;for (;;)
{
    NRF_LOG_PROCESS();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Of course, there are several approaches to get the logs printed over UART. You can also forward INTEG_TEST_PRINT() to use NRF_LOG_INFO() instead of SEGGER_RTT_printf(), but I prefer leaving the SDK files that are not specific for one example as they are.&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>