<?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>nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92398/nrf_drv_clock_init-return-error-133-nrf_error_module_already_initialized</link><description>Hi All, 
 My project have some problem.Below is the information of my project. 
 SDK =&amp;gt; v17.1.0 
 IDE =&amp;gt; SEGGER 
 Example code =&amp;gt; base on ble_app_buttonless_dfu 
 
 Purpose : 
 Communicate with other MCUs in projects with OTA functions. 
 
 Method : </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Sep 2022 09:18:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92398/nrf_drv_clock_init-return-error-133-nrf_error_module_already_initialized" /><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388716?ContentTypeID=1</link><pubDate>Fri, 30 Sep 2022 09:18:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6209bf-e628-40e8-947e-69bcd7d22dc2</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you change the RTC ID parameter of NRF_LIBUARTE_ASYNC_DEFINE() to 2 as well?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388513?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 09:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56b4ac1c-440a-4b9a-812d-3c92ec3fcc8a</guid><dc:creator>kai19960504</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Here have two status.&lt;/p&gt;
&lt;p&gt;One :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In sdk_config.h I&amp;nbsp;&lt;span&gt;set&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRFX_RTC0_ENABLED&lt;/span&gt;&lt;span&gt;&amp;nbsp; to 0 and&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRFX_RTC1_ENABLED to 1,and&amp;nbsp;change the 3th and 4th parameters of&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__libuarte__async.html#ga9dd1619dcfe11f532ed96e37ebd2aca4"&gt;NRF_LIBUARTE_ASYNC_DEFINE&lt;/a&gt;() to 1,you can see below picture.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444319922v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444635099v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;but when i build the project it gives below error&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444732043v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;So I change RTC1 to RTC2.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Two :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Change RTC1 to RTC2.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444836722v5.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444819135v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It can build but when I run the project it show&amp;nbsp;ERROR 17 [NRF_ERROR_BUSY]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664444946807v6.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388503?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 09:11:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54681f00-6482-47dc-a81f-7df1abf99037</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In your sdk_config.h file, can you set&amp;nbsp;&lt;span&gt;NRFX_RTC0_ENABLED&lt;/span&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp; to 0 and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;NRFX_RTC1_ENABLED to 1?&lt;/p&gt;
&lt;p&gt;You also have to change the 3th and 4th parameters of &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__nrf__libuarte__async.html#ga9dd1619dcfe11f532ed96e37ebd2aca4"&gt;NRF_LIBUARTE_ASYNC_DEFINE&lt;/a&gt;() to 1 so that it use RTC 1 and TIMER 1 instead of RTC 0 and TIMER 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388471?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 07:31:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0175aad6-e75b-492c-819a-7e0beedb08ed</guid><dc:creator>kai19960504</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;The error occurs when executing nrf_libuarte_async_init.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664436144279v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I continue to track down the nrf_rtc_prescaler_set in nrfx_rtc_init have error.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664436613224v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664436642307v3.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388467?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 07:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b2491b-e2d9-4f14-b272-34fe378656ae</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you use breakpoints and the debugger and check how far the program reach before it asserts? Does it assert before or after uart_init()?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388461?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 06:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc61f932-72ff-489d-b4a9-7e3765388ffb</guid><dc:creator>kai19960504</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I always using debug mode,and the error about&amp;nbsp;&lt;span&gt;Invalid memory access do not have more information.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It have not tell me where happening.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388457?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 06:26:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd854a2-efbc-48cd-a9ab-ddb67d9a98bc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does the error message specify where the Invalid memory access happens? Can you re-build your project in debug mode, flash it to your board and then see if the error log is more verbose?&lt;/p&gt;
&lt;p&gt;Can you share the entire error log?&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re using SES, then you can rebuild your project in debug mode by:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664432754141v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;br /&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388444?ContentTypeID=1</link><pubDate>Thu, 29 Sep 2022 01:22:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adacdc82-ad84-49ee-b2ec-fe186cc261d3</guid><dc:creator>kai19960504</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;Sorry,I&amp;#39;m not sure which instance is using.&lt;/p&gt;
&lt;p&gt;Can you download my project and check it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388314?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 10:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff8873b8-bad9-4040-8407-dfe413d0aa33</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi Kai,&lt;/p&gt;
&lt;p&gt;Good, now it&amp;#39;s reporting a different error for something else. Softdevice: INVALID MEMORY ACCESS means that the program is accessing a peripheral that has been blocked by the Softdevice. &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/sd_resource_reqs/hw_block_interrupt_vector.html?cp=4_7_3_0_6_0"&gt;When enabled the Softdevice restricts access to certain peripheral such as the radio and CLOCK 0 and RTC0&lt;/a&gt;. Which instance is the app timer module using?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388301?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 09:17:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d1c8e20-5496-479c-bc34-7dd26f163718</guid><dc:creator>kai19960504</dc:creator><description>&lt;p&gt;Hi Jared,&lt;/p&gt;
&lt;p&gt;I have already try it,and that time it return me this image.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1664356619718v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf_drv_clock_init() return ERROR 133 [NRF_ERROR_MODULE_ALREADY_INITIALIZED]</title><link>https://devzone.nordicsemi.com/thread/388298?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 09:14:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4931e08f-d1ed-41a6-97f8-cc5b626132a8</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;The error means that clock driver has already been initialized somewhere else in your code before you call UART_Init(), try removing line 1101 and see if the error is still reported.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>