<?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>got &amp;quot;SOFTDEVICE: INVALID MEMORY ACCESS&amp;quot; Error on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77101/got-softdevice-invalid-memory-access-error-on-nrf52840</link><description>Hi: 
 We use freeRTOS + tinyUSB + nRF52SDK develope central Application on nRF52840 DK board. 
 we enable SoftDevice first(it return NRF_SUCCESS). then init the USB Power event detect. but run after run vTaskStartScheduler(). it will got &amp;quot;SOFTDEVICE:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Jul 2021 08:34:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77101/got-softdevice-invalid-memory-access-error-on-nrf52840" /><item><title>RE: got "SOFTDEVICE: INVALID MEMORY ACCESS" Error on nRF52840</title><link>https://devzone.nordicsemi.com/thread/318734?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 08:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d76a04b3-968a-433d-ad24-5bdf486fbffd</guid><dc:creator>wen jin zhang</dc:creator><description>&lt;p&gt;Sorry, Found real caused&amp;nbsp;&lt;span&gt;NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION issue. Because we want use tinyUSB in Keil. we are use the &amp;quot;--gnu&amp;quot; compile option. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but this will cause&amp;nbsp;nrf_section_iter_init() use these codes:&amp;nbsp; it seem predefined &amp;quot;__GNUC__&amp;quot; macro&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;#if defined(__GNUC__)&amp;nbsp;&lt;br /&gt; p_iter-&amp;gt;p_item = p_iter-&amp;gt;p_set-&amp;gt;section.p_start;&lt;br /&gt; if (p_iter-&amp;gt;p_item == p_iter-&amp;gt;p_set-&amp;gt;section.p_end)&lt;br /&gt; {&lt;br /&gt; p_iter-&amp;gt;p_item = NULL;&lt;br /&gt; }&lt;br /&gt;#else&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;it&amp;#39;ll cause missing disable POWER_CLOCK IRQ by sdh_state_observer_notify(NRF_SDH_EVT_STATE_ENABLE_PREPARE), because it can not found&amp;nbsp;sdh_state_observers/....&lt;/span&gt;&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: got "SOFTDEVICE: INVALID MEMORY ACCESS" Error on nRF52840</title><link>https://devzone.nordicsemi.com/thread/318710?ContentTypeID=1</link><pubDate>Tue, 06 Jul 2021 01:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4e9c1df-f459-402c-882a-c4188ba10fc3</guid><dc:creator>wen jin zhang</dc:creator><description>&lt;p&gt;the reason of call&amp;nbsp;&lt;span&gt;nrf_drv_clock_init() before Enable SoftDevice&amp;nbsp; is because the&amp;nbsp;vPortSetupTimerInterrupt() call the&amp;nbsp;nrf_drv_clock_lfclk_request(), but it call&amp;nbsp;nrfx_clock_lfclk_start(), it&amp;#39;ll write&amp;nbsp;NRF_CLOCK peripheral registers.&amp;nbsp; caused&amp;nbsp;&amp;nbsp;&amp;quot;SOFTDEVICE: INVALID MEMORY ACCESS&amp;quot;&amp;nbsp; issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;some config for Clock &amp;amp; Power :&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_CLOCK_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_CLOCK_CONFIG_LF_SRC&amp;nbsp; 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRF_CLOCK_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define CLOCK_CONFIG_LF_SRC 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRF_SDH_CLOCK_LF_SRC 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define CLOCK_CONFIG_IRQ_PRIORITY 6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_POWER_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define NRFX_POWER_CONFIG_IRQ_PRIORITY 6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define POWER_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define POWER_CONFIG_IRQ_PRIORITY 6&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;mostly same as&amp;nbsp;ble_app_hrs_freertos example. exception&amp;nbsp; is the power.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: got "SOFTDEVICE: INVALID MEMORY ACCESS" Error on nRF52840</title><link>https://devzone.nordicsemi.com/thread/318563?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 08:16:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6fb5566-b1df-4dd4-b590-084301e4b277</guid><dc:creator>wen jin zhang</dc:creator><description>&lt;p&gt;when I add initialize clock before Enable SoftDevice.&amp;nbsp; like:&lt;br /&gt; ret_code_t err_code = nrf_drv_clock_init();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;...&lt;/p&gt;
&lt;p&gt;err_code = nrf_sdh_enable_request();&amp;nbsp; // return error here&lt;br /&gt; APP_ERROR_CHECK(err_code);&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;in&amp;nbsp;&lt;span&gt;nrf_sdh_enable_request(), the&amp;nbsp;&lt;/span&gt;&amp;nbsp;sd_softdevice_enable() return 0x1001(&lt;span&gt;NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION&amp;nbsp;&lt;/span&gt;) .&lt;/p&gt;
&lt;p&gt;from&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28063/softdevice_handler_init-returning-nrf_error_sdm_incorrect_interrupt_configuration"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/28063/softdevice_handler_init-returning-nrf_error_sdm_incorrect_interrupt_configuration&lt;/a&gt;&amp;nbsp;description,&amp;nbsp; it can not set Interrupt.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Question:&amp;nbsp; &amp;nbsp;what&amp;#39;s limit for nrfx/nrf clock/power drivers with SoftDevice?&amp;nbsp;&amp;nbsp;How the SoftDevice Interrupt Vector takeover exist without cause&amp;nbsp; &lt;span&gt;NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION&amp;nbsp; error&lt;/span&gt;?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>