<?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>USBD starting up lowers board&amp;#39;s overall current draw</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88594/usbd-starting-up-lowers-board-s-overall-current-draw</link><description>Hi, 
 Our custom board using the nRF52840 with SDK 15.0.0 experiences a higher current draw if it starts up without the USBD module enabled at some time. The first screenshot is when I power up and no USB is present, so USBD doesn&amp;#39;t start up: 
 
 As you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jun 2022 14:18:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88594/usbd-starting-up-lowers-board-s-overall-current-draw" /><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/374368?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2022 14:18:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb8fc9c1-37a9-4b2c-9662-704b787e84fb</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;To be honest, it difficult to be sure whether this is a SW or a HW issue without knowing whether it&amp;#39;s reproducible on a DK or not. Did you try to enable the log, did it say anything useful?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/373518?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 15:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c67c0628-d244-4b58-9a9d-e2e3de5238c2</guid><dc:creator>Kraig</dc:creator><description>[quote userid="73165" url="~/f/nordic-q-a/88594/usbd-starting-up-lowers-board-s-overall-current-draw/373487"]Meaning the logger with RTT as backend? Is&amp;nbsp;&lt;span&gt;NRF_LOG_ENABLED&amp;nbsp;= 1?&lt;/span&gt;[/quote]
&lt;p&gt;No, NRF_LOG_ENABLED = 0 and&amp;nbsp;NRF_LOG_BACKEND_RTT_ENABLED = 0.&amp;nbsp; Maybe I&amp;#39;ll turn that on and see if it spits out any good info.&amp;nbsp; Thanks.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="73165" url="~/f/nordic-q-a/88594/usbd-starting-up-lowers-board-s-overall-current-draw/373487"]Does a power-on reset affect the current consumption in any way?&amp;nbsp;[/quote]
&lt;p&gt;Regardless of how it starts, if USB is connected and the USBD module starts, the power is lower than if it starts without USBD.&amp;nbsp; And it is that constant draw that appears to be the only change, which is why I think it is some pin configuration or some peripheral turned on.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the questions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/373487?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 14:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5954522-6204-4cd2-b5a5-371802e1d09f</guid><dc:creator>Jared</dc:creator><description>[quote user="Kraig"]There is no other code that uses the USBD module.&amp;nbsp; We don&amp;#39;t use the Logger module.&amp;nbsp; We do use the Segger RTT print statements, but that code is ifdef&amp;#39;d out.[/quote]
&lt;p&gt;Meaning the logger with RTT as backend? Is&amp;nbsp;&lt;span&gt;NRF_LOG_ENABLED&amp;nbsp;= 1?&lt;/span&gt;&lt;/p&gt;
[quote user="Kraig"]Yes, we have quite a few samples showing this, but if we re-flash the entire chip, the problem goes away.&amp;nbsp; I haven&amp;#39;t nailed down the procedure to make a sample start doing it.[/quote]
&lt;p&gt;ok, so it&amp;#39;s essentially the same as what the other user in this thread described.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does a power-on reset affect the current consumption in any way?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/373330?ContentTypeID=1</link><pubDate>Tue, 21 Jun 2022 01:05:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:712234e1-7a73-4898-9f14-84a33bdd433a</guid><dc:creator>Kraig</dc:creator><description>&lt;p&gt;There is no other code that uses the USBD module.&amp;nbsp; We don&amp;#39;t use the Logger module.&amp;nbsp; We do use the Segger RTT print statements, but that code is ifdef&amp;#39;d out.&lt;br /&gt;&lt;br /&gt;Yes, we have quite a few samples showing this, but if we re-flash the entire chip, the problem goes away.&amp;nbsp; I haven&amp;#39;t nailed down the procedure to make a sample start doing it.&lt;br /&gt;&lt;br /&gt;I was thinking the same as your guess.&amp;nbsp; Because it is a rise in the steady current draw, I was thinking some pin is configured bad for the circuitry, causing a current leak.&amp;nbsp; I did see that the lower USBD driver had calls to disable pull-ups, but calling that directly didn&amp;#39;t make a difference.&amp;nbsp; I also tried to directly call start/stop functions with no luck either, hoping they would disable interrupts or other pin assignments.&amp;nbsp;&amp;nbsp;Not sure if I can call those directly.&amp;nbsp; I am just trying random stuff now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/373254?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 13:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4861614d-d018-4a03-a3b2-6582b66d5c73</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;My guess is that something else is being indirectly affected when you comment out the USBD part. Is there any other code part that depends on that module? Are you using the logger, if so what backend? Have you reproduced this on multiple samples?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/372449?ContentTypeID=1</link><pubDate>Tue, 14 Jun 2022 19:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce0947c2-0088-4d35-94af-cf411398f03d</guid><dc:creator>Kraig</dc:creator><description>&lt;p&gt;Sorry for the delay in my response.&amp;nbsp; There could very well be another reason unrelated to the USBD.&amp;nbsp; It is because I can repeatably get a difference in the current draw depending if I let the USBD start up or not that I was focusing on it.&lt;br /&gt;&lt;br /&gt;Unfortunately because the code base runs on our custom board with different pin assignments and chips than what is on the DK board, it would be a significant amount of modifications to make it run on the DK.&amp;nbsp; I don&amp;#39;t think the code would be anywhere near representative, so I don&amp;#39;t think it would be worth the effort at the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/371485?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 16:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a96fa44b-9729-4737-8bb8-0ea8a0e7a300</guid><dc:creator>mark.blackburn.orpyx</dc:creator><description>&lt;p&gt;Something else about this high current draw problem: Reflashing the processor with the same code resolves the problem.&lt;/p&gt;
&lt;p&gt;I was troubleshooting a unit that had the same problem Kraig described. I saved the image using the nRF Connect programmer, than loaded an image onto it which resolved the issue. I then reloaded the saved image onto it expecting the problem to reappear but it didn&amp;#39;t reappear.&lt;/p&gt;
&lt;p&gt;Is there any non-volatile state in the nRF52840 that would not get saved in the image file when using nRF Connect Programmer. To narrow it down any state that could affect GPIO configuration?&lt;/p&gt;
&lt;p&gt;Also, loading firmware via the DFU bootloader does not resolve the problem. Only flashing it seems to resolve the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USBD starting up lowers board's overall current draw</title><link>https://devzone.nordicsemi.com/thread/371191?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 13:57:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:218ae260-dff7-4790-afb5-d1da5bdf2571</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t say that I&amp;#39;ve seen this before. Maybe something else in your code is effected when you comment out the USBD part. Have you tried flashing a development kit with your project? Do you measure the same with the dk?&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></channel></rss>