<?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>unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board</link><description>hello sir/ma&amp;#39;am 
 we are using nrf52840 chip in our customized board product and IAR as a development environment and also a debugger called segger jlink .we are not able to view the NRF_LOG_INFO output.attached is the schematic diagram of the product</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Jun 2020 09:37:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board" /><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/256146?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c9c6212-68a7-4502-9e2b-ee5aff4c947a</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;sorry for that will create a new one&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/256144?ContentTypeID=1</link><pubDate>Mon, 22 Jun 2020 09:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:472bd5a4-ab92-4f5c-8189-cd91b691d2a2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;What does this have to do with the rest of this thread?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/256061?ContentTypeID=1</link><pubDate>Sun, 21 Jun 2020 16:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06d560be-73d7-43e9-873a-50436ad5724d</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;we required an NFC tap to pair the Bluetooth feature in our product. our aim/application is, when a user taps his/her smartphone onto the antenna present on the product/device, it should start pairing, and as soon as the BT gets paired a window should appear onto the smartphone asking the user to enter a password/authentication key. if the entered password doesn&amp;#39;t match the preset password, the paired board/device should get disconnected.&lt;/p&gt;
&lt;p&gt;we have integrated the &amp;quot;&lt;span&gt;ble_nfc_pairing_reference&lt;/span&gt;&amp;quot; example from the SDK into our application code and it seems to satisfy most of our application requirement except one.&lt;/p&gt;
&lt;p&gt;the path where the example is present in the SDK&lt;br /&gt;\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\experimental\ble_nfc_pairing_reference&lt;/p&gt;
&lt;p&gt;problem:- the example doesn&amp;#39;t seem to ask for an authentication key when the BT is getting paired.&lt;/p&gt;
&lt;p&gt;in addition, we are developing a customized Bluetooth application for this feature.&lt;/p&gt;
&lt;p&gt;in short, our aim is to provide better security of the product so that a user would not be able to enter into the device just by doing tap to pair.&lt;br /&gt;&lt;br /&gt;please guide us with the best possible option to achieve our requirements.&lt;/p&gt;
&lt;p&gt;thanks&lt;br /&gt;sakib&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245782?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:32:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb8b898-73ac-4e0e-ae49-5bf59f7ef368</guid><dc:creator>awneil</dc:creator><description>[quote userid="89683" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245775"]do I have to use these functions[/quote]
&lt;p&gt;Of course, you don&amp;#39;t &lt;em&gt;have&lt;/em&gt; to - you can write it all from scratch if you really want to.&lt;/p&gt;
[quote userid="89683" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245775"]won&amp;#39;t these RTT debugs have an effect on other time constraint applications[/quote]
&lt;p&gt;RTT has far less impact that doing it over the UART!&lt;/p&gt;
&lt;p&gt;With RTT, all your code does is write to a RAM buffer. The J-Link then reads the RAM directly - so there&amp;#39;s no CPU resource consumed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/"&gt;https://www.segger.com/products/debug-probes/j-link/technology/about-real-time-transfer/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245775?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 09:17:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ca6134d-dfdc-4da9-a34a-abbbabd06123</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;thanks for the clarification awneil, just for confirmation sake, do I have to use these functions for debugging as per my setup and design? or are there any better ways to debug my application with the same design and setup.&lt;/p&gt;
&lt;p&gt;my concern is won&amp;#39;t these RTT debugs have an effect on other time constraint applications of the product like BLE, NFC, etc?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;sakib&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245757?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 08:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d630179b-1786-47a0-a923-c393f28e72a5</guid><dc:creator>awneil</dc:creator><description>[quote userid="89683" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245753"]functions like&amp;nbsp; SEGGER_RTT_WriteString(),SEGGER_RTT_printf()[/quote]
&lt;p&gt;Those are just the low-level functions -&amp;nbsp;&lt;span&gt;NRF_DEBUG_LOG()&amp;nbsp;sits above them.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_DEBUG_LOG()&amp;nbsp; is agnostic to the underlying transport used.&lt;/span&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: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245753?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 08:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0cd3000-54ee-4c40-8512-0996d0d5d4aa</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;Hello, Simon&lt;/p&gt;
&lt;p&gt;I am able to print the logs using the j-link RTT viewer.I&amp;#39;d follow the below-linked blog&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debugging-with-real-time-terminal"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/debugging-with-real-time-terminal&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think the RTT requires/follows different sets of functions like&amp;nbsp; SEGGER_RTT_WriteString(),SEGGER_RTT_printf() etc to print the logs.&lt;/p&gt;
&lt;p&gt;My question is, is it not possible to print the logs using&amp;nbsp;&lt;span&gt;NRF_DEBUG_LOG() through RTT viewer?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sakib&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245750?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 08:04:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91d502dc-a31f-4760-8345-5164a9fe71fb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Of course, there are other techniques which use the SWD pins in a &amp;quot;generic&amp;quot; way.&lt;/p&gt;
&lt;p&gt;And there&amp;#39;s also SWO ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245748?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 07:59:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cf0ddf5-c0fe-4a22-8036-51b35ba3f501</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Thank you for pointing that out Andrew, I have edited my reply to specify J-Link &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245726?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 07:26:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92ca9bdd-e295-40e9-b111-eec672b23018</guid><dc:creator>awneil</dc:creator><description>[quote userid="75734" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245689"]The RTT logger only requires the programmer pins (SWDIO/SWDCLK) [/quote]
&lt;p&gt;It also &lt;em&gt;requires&lt;/em&gt; a J-Link - it is a proprietary Segger think, not available with other debug probes.&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245689"]P0.09 and P0.10 are configured as NFC pins by default. You&amp;#39;ll need to configure these as GPIOs[/quote]
&lt;p&gt;Good point!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245689?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 05:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aae2e25-e68b-4a84-8619-4a1bf0066676</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I suggest you use the RTT logger for debug logging instead. The RTT logger only requires the programmer pins (SWDIO/SWDCLK) connected to the J-Link debugger. In order to enable the RTT instead of the UART, you can set NRF_LOG_BACKEND_RTT_ENABLED to 1 and NRF_LOG_BACKEND_UART_ENABLED to 0 in sdk_config.h.&lt;/p&gt;
&lt;p&gt;I took a look at your design and I can&amp;#39;t see anything in particular that poses a problem. One thing though. P0.09 and P0.10 are configured as NFC pins by default. You&amp;#39;ll need to configure these as GPIOs to use them as such in your project settings.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245484?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 10:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5783d07c-3a28-4099-a3a3-c99b18673eb7</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;hello, Simon,&lt;/p&gt;
&lt;p&gt;correction:- I verified the usage of UART with the design engineer, it&amp;#39;s used for sending data to another module(refer U2 in the schematic design)&lt;/p&gt;
&lt;p&gt;so probably it can&amp;#39;t be used to send/receive debugs.&lt;/p&gt;
&lt;p&gt;can you please go through the design and let me know what are the other options I have for viewing NRF_DEBUG_LOG() outputs.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;the custom board is connected through USB(refer to J9 in the design pdf that I attached in the first query) and another header with jlink is connected at j6.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:inherit;"&gt;sakib&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245454?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:50:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52d30695-4a0b-436e-bf82-51e0ed2ec26e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;How is the custom board connected to the computer? And specifically, how is the UART pins connected to the DK/J-Link/computer?&lt;/p&gt;
&lt;p&gt;I see that the UART RX pin in your design is set to P0.07 instead of the &amp;quot;default&amp;quot; P0.08. Have you edited the pin settings in your project as well?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245360?ContentTypeID=1</link><pubDate>Sun, 19 Apr 2020 05:30:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7cbf87-0665-4c2f-bc08-050673a72a86</guid><dc:creator>sakib</dc:creator><description>&lt;p&gt;hello awneil,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board/245354"]Before going to the custom board, did you have it working on a Dev Board?[/quote]
&lt;p&gt;yes, everything is working fine in the case of Dev board.&lt;/p&gt;
&lt;p&gt;my aim is to print log through UART.&lt;/p&gt;
&lt;p&gt;the NRF_LOG_INIT() and&amp;nbsp;NRF_LOG_DEFAULT_BACKENDS_INIT() functions are called at the start of the main.NRF_LOG_PROCESS() is present inside the infinite while loop.below are the macros enabled relating to UART.&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_UART_ENABLED, NRF_LOG_ENABLED,&amp;nbsp;NRF_LOG_DEFERRED,&amp;nbsp;NRF_FPRINTF_ENABLED are all set to 1&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_UART_TX_PIN(set as 6), NRF_LOG_BACKEND_UART_BAUDRATE(set as 115200).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;sakib&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: unable to print debug logs in my custom board</title><link>https://devzone.nordicsemi.com/thread/245354?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2020 21:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9245cf8-e374-49ab-b005-efe8deee013c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Before going to the custom board, did you have it working on a Dev Board?&lt;/p&gt;
&lt;p&gt;Are you sending the&amp;nbsp;&lt;span&gt;NRF_LOG_INFO output via UART or RTT ?&lt;/span&gt;&lt;/p&gt;
[quote userid="89683" url="~/f/nordic-q-a/60390/unable-to-print-debug-logs-in-my-custom-board"].Processor always call NRF_LOG_PROCESS[/quote]
&lt;p&gt;&lt;span&gt;Where, exactly, is it called?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34666/nrf5-sdk-v15-0-0-bug-report-incorrect-use-of-nrf_log_process-in-ble_app_uart-peripheral-example-among-others"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/34666/nrf5-sdk-v15-0-0-bug-report-incorrect-use-of-nrf_log_process-in-ble_app_uart-peripheral-example-among-others&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>