<?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>Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112855/custom-board-using-nrf52833-test-on-deep-sleep-mode-low-power-mode-and-rtt-mode-issues</link><description>Hello Engineer Greeting of the day i am building my product using nrf52833 IC , there are some communication modules connected to the 52833 , i want to cheack lowest power consuption in the board during deep sleep mode , which can be woken up by interupt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 30 Jul 2024 07:19:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112855/custom-board-using-nrf52833-test-on-deep-sleep-mode-low-power-mode-and-rtt-mode-issues" /><item><title>RE: Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/thread/496130?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 07:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ab61faf-b9d6-4304-a414-443b3bb51320</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Yes, just update the case with schematic once you&amp;#39;re done,&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: Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/thread/496080?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 18:51:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af88cb60-23f8-498f-a1a8-3a60a61500f0</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;Thanks Jared&amp;nbsp;&lt;br /&gt;Sorry for late response as the work on improving the board schematic is taking place .&lt;/p&gt;
&lt;p&gt;Thanks for all precious info .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/thread/493084?ContentTypeID=1</link><pubDate>Wed, 10 Jul 2024 08:48:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a1fbac-0c95-431e-8819-b82931456499</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Sanket Rao"]i have one pin that controls the modules on my board i need to set it as logical 0 , so rest all pins i will make it according to your instructions as per point 1.&lt;br /&gt;&lt;br /&gt;P1.Hope this is correct way to test ?&lt;br /&gt;[/quote]
&lt;p&gt;It depends on what is connected to that pin. Could you share a schematic of your board?&lt;/p&gt;
[quote user="Sanket Rao"]&lt;p&gt;Test setup&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;using JTAG device to flash my code, and then go to RTT mode to see the changes (power cycle), mean while there is ammeter connected between the battery wires that powers the board.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;P2 - Hope this is correct code commands and way to test??, offcourse after implementing step 1 from your response.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;If the debugger is connected to the board then the chip will not enter sleep mode since the debugger interface will be activated. The chip will only emulate system off sleep but doesn&amp;#39;t truly go to sleep. When you measure the current you have to make sure that the debugger is not connected, and that the device has been power cycled for it to exit debug mode. Using sys_poweroff() is ok but make sure that&amp;nbsp;CONFIG_POWEROFF has been enabled.&lt;/p&gt;
[quote user="Sanket Rao"]&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;Last, as you know i am reading current in ammeter in battery power supply, i have noticed strange behavior , that when jtag is connected to board and ammeter at battery side, when i remove jtag after flashing above code, i see huge surge in current in my ammeter, like it goes from (13-14)mA to 20mA&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;P3 - this is crucial part, why this is happening?&amp;nbsp;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;20 mA is far from the expected current of the device unless it&amp;#39;s constant in TX mode. So something is not right with your measurement setup. I think you need to provide a schematic of your design and specify exactly where you measure, also I highly recommend getting a PPK2 so that you could see the current plot, that would tell us a lot more of what you&amp;#39;re measuring,&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: Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/thread/492980?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 13:17:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1205eaf-140c-49b6-8100-189ddd62f0dd</guid><dc:creator>Sankton</dc:creator><description>&lt;p&gt;i have one pin that controls the modules on my board i need to set it as logical 0 , so rest all pins i will make it according to your instructions as per point 1.&lt;br /&gt;&lt;br /&gt;P1.Hope this is correct way to test ?&lt;br /&gt;&lt;br /&gt;Also i am using sys_poweroff() command, i hope this is right command for deep sleep mode . and i use this command after clearing my pin for this module for logic 0 so the modules dont turn on .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use following code to test my scenario&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);
static const struct gpio_dt_spec led_1 = GPIO_DT_SPEC_GET(LED1_NODE, gpios);


int main(void)
{
	int ret;
	bool led_state = true;

	if (!gpio_is_ready_dt(&amp;amp;led)) {
		return 0;
	}

	if (!gpio_is_ready_dt(&amp;amp;led_1)) {
		return 0;
	}

	ret = gpio_pin_configure_dt(&amp;amp;led, GPIO_OUTPUT_ACTIVE);
	if (ret &amp;lt; 0) {
		return 0;
	}
	ret = gpio_pin_configure_dt(&amp;amp;led_1, GPIO_OUTPUT_ACTIVE);
	if (ret &amp;lt; 0) {
		return 0;
	}

	gpio_pin_set_dt(&amp;amp;led,1); //turns off the pin in board where i can manualy test using multimeter 
	gpio_pin_set_dt(&amp;amp;led_1,1); //turns off modules in my custom board

	sys_poweroff(); // a command for deep sleep mode according to my research 

	while (1) {
	
	}
	return 0;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Test setup&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;using JTAG device to flash my code, and then go to RTT mode to see the changes (power cycle), mean while there is ammeter connected between the battery wires that powers the board.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;P2 - Hope this is correct code commands and way to test??, offcourse after implementing step 1 from your response.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;Last, as you know i am reading current in ammeter in battery power supply, i have noticed strange behavior , that when jtag is connected to board and ammeter at battery side, when i remove jtag after flashing above code, i see huge surge in current in my ammeter, like it goes from (13-14)mA to 20mA&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;span style="font-size:75%;"&gt;P3 - this is crucial part, why this is happening?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;please answer P1, P2 &amp;amp; P3 after reading, i might be very naive with my research, apologies for that, this will help to create features of our product and start pre-production steps.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board using nrf52833 , test on deep sleep mode / Low Power mode and RTT mode issues</title><link>https://devzone.nordicsemi.com/thread/492969?ContentTypeID=1</link><pubDate>Tue, 09 Jul 2024 12:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c684814-d5d8-4f7b-b14c-5c336f6a63c0</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]i made all gpio pins as output active and LOW using GUI of devicetree .So that no modules can be powered by the 52833 , i am also aware , if there is no code in IC the pins will be floating .&lt;br /&gt;&amp;nbsp;but for double sure i did that .&lt;br /&gt;&amp;nbsp; Question : When we make all pins low in devicetree using GUI , will this help ? like after flashing all pins low . Im SUPERNEW new to devicetree and overlay concept and vscode&amp;nbsp; .i been using nrf repository in my earlier nordic product&amp;nbsp;[/quote]
&lt;p&gt;For lowest possible power consumption, GPIOs should be put back to their default state which is: Input, Input buffer disconnected, No Pull, Standard Drive, Sense Disconnected.&lt;/p&gt;
[quote user=""]2) i am checking lowest current consumption on my custom board by placing ammeter in between battery and my board , in series , hope this method is fine , all usb and debugging connecters removed . please let me know if its correct way&amp;nbsp;[/quote]
&lt;p&gt;It depends on what else is on your board. As that it will measure the current draw of the whole board.&amp;nbsp;&lt;/p&gt;
[quote user=""]3) system_off example in zephyr rtos nrf 2.6.0 sdk works well on my 52833 DK , but not on my custom board . the current i get is 15mA range , which is very high for my nordic product in future .&amp;nbsp;[/quote]
&lt;p&gt;This indicates that something else than the nRF52833 is consuming the current.&amp;nbsp;&lt;/p&gt;
[quote user=""]4) MOST IMPORTANT&amp;nbsp;&lt;br /&gt;why i have to switch to RTT mode after flashing process to see changes to take place in board , eg : i flashed a code to turn of led in my board , but after flashing it doesnt turns off , rather i need to switch on RTT window then only the LED swtiches off , why?&lt;br /&gt;[/quote]
&lt;p&gt;This doesn&amp;#39;t quite make sense. Maybe you need to power cycle or reset board manually after flashing the board.&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>