<?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>NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102113/nrf52840-dongle-freertos-log-function-crash</link><description>Hi Im new to nordic 
 Currently developing a project using nrf52840 dongle with freertos based on ble_app_hrs_freertos_pca10056_s140. 
 Enabled backend uart for debug Log. Also applied this correction. 
 But the log still having problem 
 1. If LOG_DEFERRED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Jul 2023 09:27:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102113/nrf52840-dongle-freertos-log-function-crash" /><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/438202?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 09:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd382e1a-0054-4419-b9cd-2b04c4961638</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I recommend you downgrade your Segger to an older version that is compatible with the SDK. v5.42a is the safest option, as that was the version used at the time of the SDK release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/438148?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 02:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d116e697-6573-4771-a604-2bca51fdc886</guid><dc:creator>Sherman Lee</dc:creator><description>&lt;p&gt;My Segger studio is release 7.30 Build 2023061400.53555&lt;br /&gt;Using nRF5_SDK_17.1.0&lt;/p&gt;
&lt;p&gt;I hv connected my dongle with nrf52832 DK for jlink&lt;br /&gt;But nothing appear on the debug terminal after flashing.&lt;br /&gt;Maybe Im new to SES Studio, Could u share the proper way to activate it?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/438032?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 09:45:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13763ad2-6364-4b2a-8cc5-f208a3c0e247</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can download the schematics from the product page at &lt;a href="https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle/Download?lang=en#infotabs"&gt;https://www.nordicsemi.com/Products/Development-hardware/nRF52840-Dongle/Download?lang=en#infotabs&lt;/a&gt;. However,&amp;nbsp;the SWO is not used for RTT logging.&lt;/p&gt;
&lt;p&gt;What version of Segger embedded studio are you using? Please note that the SDK was tested and verified with version 5.42a as stated in the SDK release notes. Version 6.20 introduced some breaking changes which affected RTT logging.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437961?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 01:39:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69a9a16b-2fff-4be3-8a5d-9c4ab96f585d</guid><dc:creator>Sherman Lee</dc:creator><description>&lt;p&gt;I hv tried but nothing appear on the debug terminal.&lt;/p&gt;
&lt;p&gt;And I see there is a SWO pin needed to connect to the Jlink but I cant really find this.&lt;/p&gt;
&lt;p&gt;Could u share the hardware config for me?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437622?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 09:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cebd3d7-7f56-462e-b4d7-b371a18a7100</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see. I thought you were programming the dongle through DFU. Having a debugger attached makes it much easier. I suggest you try the RTT backend instead of UART without deferred logging by applying the following configurations to your sdk_config.h file:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_LOG_BACKEND_UART_ENABLED&amp;#160; 0
NRF_LOG_BACKEND_RTT_ENABLED&amp;#160; 1
NRF_LOG_DEFERRED 0&amp;#160;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The debug messages will be displayed in the debug terminal in Segger embedded studio when you are debugging the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437620?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 09:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:077c5f08-7b89-4983-a040-e0a21ef6681a</guid><dc:creator>Sherman Lee</dc:creator><description>&lt;p&gt;My DK somehow not working so I just a jlink with dongle to develop&lt;/p&gt;
&lt;p&gt;I have added quite alot code into the example as Im porting a ESP32 project to it.&lt;/p&gt;
&lt;p&gt;And I hv not much exp on nordic so I wanna see if anyone know the possible problems or debug direction for me. As the debug log not work as expected made my debugging process a lot harder.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437619?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 09:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:924ed913-63fe-4488-878e-f452c4b9e1c2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I forgot you were using FreeRTOS. I tried to reproduce the problem here, but it worked for me after I applied the patch provided by Stian in the post you linked to. Do you have nRF52840 DK to try this on? The nRF52840 Dongle is not really intended for code development, it does not come with an on-board J-link debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437611?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 08:49:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8cd181-9a08-46f9-9b18-e3e21337601f</guid><dc:creator>Sherman Lee</dc:creator><description>&lt;p&gt;In the example I see its use NRF_LOG_FLUSH() in the logger task.&lt;br /&gt;Thats mean I need to replace FLUSH with PROCESS, and enable the log defer?&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437603?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 08:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e304738b-6f2d-433b-952f-36a438750ec3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The UART logger backend will return&amp;nbsp;&lt;span&gt;NRF_BUSY_ERROR if there is already an ongoing UART transfer, which can&amp;nbsp;happen if the log messages are processed from&amp;nbsp;multiple places at the same time. Therefore, it is recommended to use&amp;nbsp;LOG_DEFERRED and process the logs from the main loop with&amp;nbsp;&amp;nbsp;NRF_LOG_PROCESS() as we do in our BLE examples.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 dongle freertos Log function crash</title><link>https://devzone.nordicsemi.com/thread/437557?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 01:48:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7300e7e-d4fd-40d7-95f6-c9d5d5693d4c</guid><dc:creator>Sherman Lee</dc:creator><description>&lt;p&gt;Also seem the debug log will affect my BLE stack.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Once I enable the log, BLE will disable around&amp;nbsp;90~100s&lt;br /&gt;If I disable the backend_uart log, the BLE work fine&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>