<?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>518822 can&amp;#39;t go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54378/518822-can-t-go-into-sleep-mod-for-current-saving</link><description>Hi ! 
 In order to consume lowest current，we use the function power_manage() ，let the MCU go into sleep，the SD is S130, V1.0，we enable the GPIOTE，watchdog ，ADC ，app_timer，and UART0.Before going into sleep ,we stop(disable)the UART0.We find that sometimes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 Nov 2019 11:50:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54378/518822-can-t-go-into-sleep-mod-for-current-saving" /><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220804?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 11:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ba8d8ea-258d-42f6-bf18-f64b421526e3</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;There&amp;#39;s an issue with the nRF51 series where the power reset might not work to get you out of debug mode. You can try connecting an external resistor to the SWDCLK pin. We have tested with a 470Ohm external resistor which should help here.&lt;/p&gt;
&lt;p&gt;You can also check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/1657/how-to-minimize-current-consumption-for-ble-application-on-nrf51822"&gt;this current consumption guide&lt;/a&gt; for a multitude of ways to reduce current consumption for the nRF51 series. Give them a try and report back if you still can&amp;#39;t fix it.&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: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220725?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 08:08:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54dd17b2-4d73-4f85-bfbc-945c78e165a4</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Simon,I&amp;nbsp;measured&amp;nbsp;the current isn&amp;#39;t in debug mode ,no breakpoint in the program,all debug tool and IC&amp;nbsp; PIN were disconnect.Runs the smallest IC system and simplest code ,the 1mA current draw is still existing.Enable and disable the SD ,the problem can&amp;#39;t&amp;nbsp; be soluted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220464?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 06:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92cf0e10-23f0-432b-94f6-474031c080ea</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When the current increases due to an uninit, it indicates that something with the uninit went wrong and that you get an error/hardfault causing the CPU to keep running continuously. So you&amp;#39;ll have to find out what&amp;#39;s wrong with your uninit function to fix this 4mA consumption.&lt;/p&gt;
&lt;p&gt;Next, a 1.3 mA current draw indicates that the chip is in debug mode when you measured the current initially. You can check out section 11.1.3 &amp;quot;Resuming Normal Mode&amp;quot; in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf"&gt;nRF51 reference manual&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;According to the &lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf51/COMP/nrf51/nRF51422_nRF51822_ic_rev_sdk_sd_comp_matrix.html?cp=5_0_5"&gt;compatibility matrix&lt;/a&gt;, the nRF51 revision 3 supports all versions of the S130 SoftDevice.&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: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220435?ContentTypeID=1</link><pubDate>Sun, 17 Nov 2019 11:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05ce436e-6605-41f1-9cc6-f67c24fd831d</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I test the IC in the smallest system，all GPIO disconnnect.&lt;/p&gt;
&lt;p&gt;(1)confige all GPIO pulldown input&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_range_cfg_input(0,31,NRF_GPIO_PIN_PULLUP)&lt;/pre&gt;,run t advertising at he S130 . the chip can&amp;#39;t work;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(2)Let the GPIO at reset statue,run&amp;nbsp; advertising at&amp;nbsp;&lt;/span&gt;&lt;span&gt;he S130 . the chip can work; current consumption is float ,change from 0.4~1mA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(3)Confige GPIO as ouput one by one,the chip can work; current consumption is about 1mA, run advertising&amp;nbsp;well;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(4)Confige GPIO as ouput one by one, in the main funtion just do &amp;quot;power_manage();&amp;quot;&amp;nbsp;current consumption is 1mA .There is a&amp;nbsp;plus every 250ms,I don&amp;#39;t know what happen in the chip.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The test code as follow:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)   
{
	volatile static uint32_t err_code;
	bool                     erase_bonds=true;	
	uint8_t                  i;

	for(i=0;i&amp;lt;32;i++)//can work
	{
		nrf_gpio_cfg_output(i);	  //make sure the pin isn&amp;#39;t float
	}	
	/*	 
	timers_init();		
   ble_stack_init();
   err_code = pstorage_init();
   APP_ERROR_CHECK(err_code);
	 

 
   device_manager_init(erase_bonds);
   db_discovery_init();
   csc_c_init(); 

   Init_user_info_store();
   load_gps_correct(&amp;amp;m_sys_data_store);	
	 
   ph_device_manager_init(false);	
   gap_params_init();	 
   advertising_init();
   services_init();
   hids_init();
   ancs_service_init();
   conn_params_init();

   Init_CentralDevice_Scan();

   Init_App_Comit();
//   ADC_Config();  //unused  	 
//   nrf_gpio_range_cfg_input(0,31,NRF_GPIO_PIN_PULLUP);//add this function，CPU can&amp;#39;t work

   advertising_start();
*/

   
	
   for (;;) 
   {

      power_manage();

		 
	 }

}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, frome the test ,the chip&amp;nbsp;maybe have a big bug ,it isn&amp;#39;t goog for using at low power production .Or my operation maybe exist a mistake.Could Nordic engineers give a good solution? I&amp;#39;m waiting...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220434?ContentTypeID=1</link><pubDate>Sun, 17 Nov 2019 11:31:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5fbfcce-e8a8-4e11-88b4-ccbb9a90f9be</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;&lt;img alt="SDK12.3.0" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1573989808.png" /&gt;&lt;/p&gt;
&lt;p&gt;MDK5 Projection in SDK12.3.0 miss too&amp;nbsp;many&amp;nbsp;files.Where&amp;nbsp; are these files ?&amp;nbsp; Too many changes in the lastest SDK ,How to&amp;nbsp;&amp;nbsp;migrate the S130 V1.0.0 to he V2.0.1? Is there a&amp;nbsp;integral project ？If change too much ,we need use a long time to modify our production.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220433?ContentTypeID=1</link><pubDate>Sun, 17 Nov 2019 09:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e1d6beb-8cd1-4e15-af6f-3b046b6ee66d</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Today ,I look up the SDK revisions，found that SoftDevice S130 V2.0.0 support&amp;nbsp;NRF51822 V3.Now my&amp;nbsp;&amp;nbsp;production use&amp;nbsp;&amp;nbsp;&lt;span&gt;S130 V1.0.0,but Chip revision unknow(N51822 QFACA2 1921DC).Is the&amp;nbsp;&amp;nbsp;&amp;nbsp;S130 V1.0.0 supporte V3?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220418?ContentTypeID=1</link><pubDate>Sat, 16 Nov 2019 11:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79525226-f9bd-4d44-9c37-a06a14125e99</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;I test the IC in the smallest system，all GPIO disconnnect.&lt;/p&gt;
&lt;p&gt;(1)confige all GPIO pulldown input&lt;pre class="ui-code" data-mode="text"&gt;nrf_gpio_range_cfg_input(0,31,NRF_GPIO_PIN_PULLUP)&lt;/pre&gt;,run t advertising at he S130 . the chip can&amp;#39;t work;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(2)Let the GPIO at reset statue,run&amp;nbsp; advertising at&amp;nbsp;&lt;/span&gt;&lt;span&gt;he S130 . the chip can work; current consumption is float ,change from 0.4~1mA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(3)Confige GPIO as ouput one by one,the chip can work; current consumption is about 1mA, run advertising&amp;nbsp;well;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(4)Confige GPIO as ouput one by one, in the main funtion just do &amp;quot;power_manage();&amp;quot;&amp;nbsp;current consumption is 1mA .There is a&amp;nbsp;plus every 250ms,I don&amp;#39;t know what happen in the chip.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The test code as follow:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)   
{
	volatile static uint32_t err_code;
	bool                     erase_bonds=true;	
	uint8_t                  i;

	for(i=0;i&amp;lt;32;i++)//can work
	{
		nrf_gpio_cfg_output(i);	  //make sure the pin isn&amp;#39;t float
	}	
	/*	 
	timers_init();		
   ble_stack_init();
   err_code = pstorage_init();
   APP_ERROR_CHECK(err_code);
	 

 
   device_manager_init(erase_bonds);
   db_discovery_init();
   csc_c_init(); 

   Init_user_info_store();
   load_gps_correct(&amp;amp;m_sys_data_store);	
	 
   ph_device_manager_init(false);	
   gap_params_init();	 
   advertising_init();
   services_init();
   hids_init();
   ancs_service_init();
   conn_params_init();

   Init_CentralDevice_Scan();

   Init_App_Comit();
//   ADC_Config();  //unused  	 
//   nrf_gpio_range_cfg_input(0,31,NRF_GPIO_PIN_PULLUP);//add this function，CPU can&amp;#39;t work

   advertising_start();
*/

   
	
   for (;;) 
   {

      power_manage();

		 
	 }

}&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So, frome the test ,the chip&amp;nbsp;maybe have a big bug ,it isn&amp;#39;t goog for using at low power production .Or my operation maybe exist a mistake.Could Nordic engineers give a good solution? I&amp;#39;m waiting...&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: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220229?ContentTypeID=1</link><pubDate>Fri, 15 Nov 2019 08:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99086750-58ac-4ab4-89a0-1aac036fc7b7</guid><dc:creator>Songplus</dc:creator><description>&lt;p&gt;Hi，When I disabling the GPIOTE，current consumption upto 4mA，I don&amp;#39;t know how to do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 518822 can't go into sleep mod for current saving</title><link>https://devzone.nordicsemi.com/thread/220085?ContentTypeID=1</link><pubDate>Thu, 14 Nov 2019 13:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:315a06c4-e3a1-4d9a-8881-2c23d473c40f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please try disabling the GPIOTE peripheral as well, as that will keep the HFCLK running if it&amp;#39;s left enabled. You&amp;#39;ll have to make sure that all peripherals are disabled before going to sleep mode.&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></channel></rss>