<?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>Flash log backend error ( hardfault: Cause: Data bus error)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100265/flash-log-backend-error-hardfault-cause-data-bus-error</link><description>Hi! 
 I just added flash log backend to my S140 NRF52840 project and I&amp;#39;ve been starting receive error on nrf_log_frontend_dequeue() from my main() : 
 
 0x000245F6 - seems like soft device address: 
 Could someone point me out what problem is?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 May 2023 13:47:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100265/flash-log-backend-error-hardfault-cause-data-bus-error" /><item><title>RE: Flash log backend error ( hardfault: Cause: Data bus error)</title><link>https://devzone.nordicsemi.com/thread/428502?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 13:47:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d0d3582-9b96-4acb-aa28-4cc2fb91ca63</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Polek,&lt;/p&gt;
&lt;p&gt;Address&amp;nbsp;&lt;strong&gt;0x000245F6 &lt;/strong&gt;is inside the softdevice but it doesn&amp;#39;t point to any common asserts that we know.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you check what&amp;#39;s your FLASH_LOG_START_ADDR ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;there is some discussion about that in this ticket:&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41124/nrf-log-crashlog-backend/161761"&gt;RE: NRF LOG crashlog backend&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please double check if the page right after the application code is clear and you are not writing anything to there.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not so sure why you need to call&amp;nbsp;&lt;span&gt;NRF_LOG_DEFAULT_BACKENDS_INIT() ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you please try testing with the&amp;nbsp;\examples\ble_peripheral\experimental\ble_app_cli to see if you have the same issue with the log flash back end ?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you can provide us some minimal code that can reproduce the issue it would be great.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash log backend error ( hardfault: Cause: Data bus error)</title><link>https://devzone.nordicsemi.com/thread/428388?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 09:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a624eb9c-1d16-4b8d-b8b1-3eed475fff81</guid><dc:creator>Polek</dc:creator><description>&lt;p&gt;void initialize_logger(void)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;ret_code_t err = NRF_LOG_INIT(app_timer_cnt_get);&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err);&lt;/p&gt;
&lt;p&gt;NRF_LOG_DEFAULT_BACKENDS_INIT();&lt;/p&gt;
&lt;p&gt;#if NRF_LOG_BACKEND_FLASHLOG_ENABLED&lt;/p&gt;
&lt;p&gt;NRF_LOG_BACKEND_FLASHLOG_DEF(___flash_log_backend);&lt;/p&gt;
&lt;p&gt;err = nrf_log_backend_flash_init(&amp;amp;nrf_fstorage_sd);&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(err);&lt;/p&gt;
&lt;p&gt;int32_t backend_id = nrf_log_backend_add(&amp;amp;___flash_log_backend, NRF_LOG_SEVERITY_DEBUG); APP_ERROR_CHECK_BOOL(backend_id &amp;gt;= 0);&lt;/p&gt;
&lt;p&gt;nrf_log_backend_enable(&amp;amp;___flash_log_backend);&lt;/p&gt;
&lt;p&gt;#endif&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash log backend error ( hardfault: Cause: Data bus error)</title><link>https://devzone.nordicsemi.com/thread/428381?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 09:45:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0b13f37-7e3e-44e3-b9cc-8ab1c289e1d0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could you please show us how you enable flash log backend ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Please make sure that when you access flash, the sd_* APIs are used (nrf_fstorage_sd) because it&amp;#39;s not supposed to access flash directly when the softdevice is active.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>