<?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>PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95909/ppk2-and-power-profiler-desktop-time-scale-way-off</link><description>Did a quick search and it seems I am not the only one experiencing this issue But can&amp;#39;t find a solution. 
 I just got a PPK2 and started testing some devices (ESP8266). I quickly noticed that the time in the graphs was completely off. Have a look at this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jul 2023 10:13:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95909/ppk2-and-power-profiler-desktop-time-scale-way-off" /><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/438478?ContentTypeID=1</link><pubDate>Thu, 27 Jul 2023 10:13:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35823bfc-db59-40fc-8213-d8a3a7b5ac8b</guid><dc:creator>RenanSP</dc:creator><description>&lt;div&gt;But after tweaking many options on BIOS (most of which I don&amp;#39;t understand) it improved from 32% to 48% of real time being captured. That also improved a bit the ringing that the PPK2 was displaying on both the current graph and the LA graph (the signal was fine as I probed it with an oscilloscope &lt;span&gt;right at the PPK2 PCB&lt;/span&gt;).&lt;/div&gt;
&lt;div&gt;But still, the LA was drawing the &lt;span&gt;wrong duty cycle, and the ammeter losing samples and hallucinating about ringing. Finally, I tried a live Linux&amp;nbsp;USB drive (&amp;nbsp;Pop!_OS 22.04&amp;nbsp;) on a borrowed INTEL laptop and connected PPK2 to it without disturbing the test circuit. All the problems disappeared.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;As the two pictures show, apparently the only thing PPK2 seems to get right on AMD systems currently is the average current. Everything else is dependent on chipset&amp;#39;s luck.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/BUG_5F00_AMD_5F00_after_5F00_BIOS_5F00_update.png" /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/BUG_5F00_Intel_5F00_fine.jpg" /&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/438389?ContentTypeID=1</link><pubDate>Wed, 26 Jul 2023 20:51:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf8633fd-a113-42ee-9426-cd48b59d6d33</guid><dc:creator>RenanSP</dc:creator><description>&lt;p&gt;&lt;span&gt;I have the very same issue: the&amp;nbsp;recorded time is only 32% of&amp;nbsp;real time. I tried multiple USB ports (2.0 / 3.1),&amp;nbsp;cables,&amp;nbsp;OS&amp;nbsp;(Windows 10 and Linux&amp;nbsp;Pop!_OS 22.04)&amp;nbsp;and a USB hub. The best combination still didn&amp;#39;t go over 34%.&lt;br /&gt;This is really messing with my calculations.&lt;br /&gt;&lt;br /&gt;My motherboard is an &amp;quot;MSI - AMD AM4 mATX B350M gaming pro&amp;quot; (chipset =&amp;nbsp;B350M).&lt;br /&gt;I will see if there are BIOS updates available and report back.&lt;br /&gt;&lt;br /&gt;Reporting back: I updated to the latest&amp;nbsp;BIOS (2023-05-23-beta) and&amp;nbsp;the problem&amp;nbsp;persists.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/420493?ContentTypeID=1</link><pubDate>Fri, 14 Apr 2023 12:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acd66a7b-c748-4dd7-8fc2-5d13cd393cb5</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t know what is causing the issue as of now.&amp;nbsp;&lt;/p&gt;
[quote user="TheBronx"]&lt;p&gt;I connected it to a USB3 hub and it works fine on my AMD machine.&lt;/p&gt;
&lt;p&gt;I have been experimenting with the python PPK2 API and discovered that just reading a fixed amount of bytes from the serial port takes longer when connected directly compared to the USB hub.&lt;/p&gt;[/quote]
&lt;p&gt;Like previously commented, a possible workaround could be to connect the PPK through a USB hub.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/420191?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 10:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c6a4e4-9276-4a82-a3cb-a7c1cb13007e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thank you for your feedback.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will continue to investigate the issue. Will confer with our PPK and SW developers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/420189?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 10:55:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daa5510e-4a5a-45e0-8f5a-ec596ec8b113</guid><dc:creator>iiNSaNe</dc:creator><description>&lt;p&gt;I am also affected with the new chipset x670e AM5 with ComboAM5PI 1.0.0.6. There are no other problems with any other USB device. What exactly should I tell AMD? That the Nordic PPK2 device don&amp;#39;t work, but everything else works smoothly? I already know what the answer will be. If the device only works with Intel chipsets, shouldn&amp;#39;t it be mentioned on sale?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/420176?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 10:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9da73bc-e8ca-435d-bb43-227ff5e151d4</guid><dc:creator>TheBronx</dc:creator><description>&lt;p&gt;As I reported initially I updated to the latest BIOS available to see if that fixed the issue but it didn&amp;#39;t.&lt;/p&gt;
&lt;p&gt;The BIOS version for my MSI B450 Tomahawk Max II is 7C02vH9. &lt;br /&gt;According to the changelog for that version: &lt;a id="" href="https://www.msi.com/Motherboard/B450-TOMAHAWK-MAX-II/support"&gt;https://www.msi.com/Motherboard/B450-TOMAHAWK-MAX-II/support&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Update to AGESA ComboAm4v2PI 1.2.0.7.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So that&amp;#39;s a much more recent version than 1.2.0.2 of course, and the problem persists. &lt;br /&gt;Also the issue that AMD resolved with that release, back in 2021, was a series of random USB disconnections. But our problem is not that the device disconnects, it is connected all the time, it just doesn&amp;#39;t work well.&lt;/p&gt;
&lt;p&gt;I am pretty sure this is a different issue unfortunately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/420101?ContentTypeID=1</link><pubDate>Thu, 13 Apr 2023 07:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76ed51d6-08aa-4245-80e5-241a3b6c92c1</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A couple of&amp;nbsp;reports on the same issue here;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is a previously known issue with AMD chipsets. If you are not using AMD and still experience the same issue, please let me know.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I can see, this should have been fixed in a later release of BIOS, so I recommend&amp;nbsp;updating that to try and solve the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A statement from AMD from two years ago:&amp;nbsp;&lt;br /&gt;&lt;span&gt;&amp;quot;AMD has prepared AGESA 1.2.0.2 to deploy this update, and we plan to distribute 1.2.0.2 to our motherboard partners for integration in about a week. Customers can expect downloadable BIOSes containing AGESA 1.2.0.2 to begin with beta updates in early April. If you continue to experience intermittent USB connectivity issues after updating your system to AGESA 1.2.0.2, we encourage you to&amp;nbsp;&lt;/span&gt;&lt;span&gt;open a ticket with&amp;nbsp;&lt;/span&gt;AMD Customer Support&lt;span&gt;.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/418883?ContentTypeID=1</link><pubDate>Mon, 03 Apr 2023 14:20:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ff87787-878b-4955-8aed-574365091d99</guid><dc:creator>Olfox</dc:creator><description>&lt;p&gt;Hi , I have also the timing issue. When i click on 10sec for a screen , the capture full windows is like more than&amp;nbsp; two times the selected value. The selection window is also not giving the good duration too:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My advertising period is 10sec, i can also count it. But selected time said 3.566sec , that&amp;#39;s not correct.&lt;/p&gt;
&lt;p&gt;&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/pastedimage1680531557689v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/416658?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 21:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f51e5626-1bbb-47a4-96ac-3a595ba077f9</guid><dc:creator>sheggy012</dc:creator><description>&lt;p&gt;I just bought a new computer and now have exactly the same problems. I hope the problem is solved quickly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;- System: ASUS System Product Name&lt;br /&gt;- BIOS: American Megatrends Inc. ALASKA - 1072009&lt;br /&gt;- CPU: 1 x AMD Ryzen 7 7700X 8-Core Processor 4.5 GHz 16 cores (8 physical)&lt;br /&gt;- Memory: 16.9 GB free of 31.1 GB total&lt;br /&gt;- Filesystem: C: (NTFS) 953.1 GB 62.4% used&lt;/p&gt;
&lt;p&gt;- OS: Microsoft Windows 11 Pro (10.0.22621) Windows ia32&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Previously with Intel CPU no problems at all. Perhaps there is a correlation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/406128?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 22:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21fe6352-126a-4875-aca4-5a31d59a0081</guid><dc:creator>Joakim Jakobsen</dc:creator><description>[quote user="TheBronx"]I keep wondering one thing though: if there is some problem or limitation that makes the communication too slow, so measurements are lost, why does the problem happen at any sample rate? If I set it to 100k and I can only get 32k, well then anything below 32k should work fine right? But no.[/quote]
&lt;p&gt;The sampling rate is actually always 100kHz. When selecting anything below you will still have a sample rate of 100kHz but use an average filter. &lt;br /&gt;That is most likely the reason. &lt;/p&gt;
[quote user="TheBronx"]Maybe it is just this particular motherboard? Maybe it is all B450 chipsets? Maybe other AMD chipsets too? Maybe it happens in some Intel boards too who knows.[/quote]
&lt;p&gt;Not really sure how widespread this problem is. I&amp;#39;ll do some investigating and get back to you! &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/406125?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 21:21:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a0d5092-7a6a-42f9-af62-963fc6d95ad3</guid><dc:creator>TheBronx</dc:creator><description>&lt;p&gt;I would be happy to try things and help debug this issue. But I have no experience writing drivers, and BIOS is black magic to me. So I am a bit clueless.&lt;/p&gt;
&lt;p&gt;On one hand I feel like it has to be possible to make the device work, on the other I feel like if it fails in windows and linux maybe the problem is deeper than the Power Profiler app (or any other app) can reach.&lt;/p&gt;
&lt;p&gt;I keep wondering one thing though: if there is some problem or limitation that makes the communication too slow, so measurements are lost, why does the problem happen at any sample rate? If I set it to 100k and I can only get 32k, well then anything below 32k should work fine right? But no.&lt;/p&gt;
&lt;p&gt;Of course I don&amp;#39;t know what the protocol looks like, I only took the python API code and played with it a bit. But isn&amp;#39;t it weird?&lt;/p&gt;
&lt;p&gt;BTW I think the app should show a clear and visible warning when the actual sample rate doesn&amp;#39;t match the expected sample rate. And maybe collect statistics about how many times this warning is being triggered to see how widespread (or not) this problem might be. Cause I don&amp;#39;t think my system is that uncommon. Maybe it is just this particular motherboard? Maybe it is all B450 chipsets? Maybe other AMD chipsets too? Maybe it happens in some Intel boards too who knows.&lt;/p&gt;
&lt;p&gt;And thank you for the answer Joakim. I think the product is pretty cool. I was very disappointed at first but after discovering the workaround I used it for quite some time and I like it, app is simple yet powerful, very nice!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/406122?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 20:55:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b38a4b-7c04-4d3f-9d6e-3067ba55c6b4</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Have you tried on windows? Do you see the same issue there?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: Just saw that you mentioned windows in the original post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/406121?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 20:55:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b74b444c-f56b-44a4-be68-2c0c744d4aeb</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thank you for the detailed description.&lt;/p&gt;
&lt;p&gt;Seems you already found both the cause and workaround for the issuee. I will report this internally to our developers.&lt;/p&gt;
[quote user="TheBronx"]But why does reading take so much longer when connected to a USB port directly compared to having a USB hub in between?[/quote]
&lt;p&gt;Not sure. I&amp;#39;ll do some research as to why this happens. &lt;/p&gt;
&lt;p&gt;Br, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PPK2 and Power Profiler desktop: time scale way off</title><link>https://devzone.nordicsemi.com/thread/405915?ContentTypeID=1</link><pubDate>Sat, 21 Jan 2023 11:04:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6054e42-1178-4180-962a-ea7018b5704f</guid><dc:creator>TheBronx</dc:creator><description>&lt;p&gt;I connected it to a USB3 hub and it works fine on my AMD machine.&lt;/p&gt;
&lt;p&gt;I have been experimenting with the python PPK2 API and discovered that just reading a fixed amount of bytes from the serial port takes longer when connected directly compared to the USB hub.&lt;/p&gt;
&lt;p&gt;When connected to the hub:&lt;/p&gt;
&lt;p&gt;Bus 003 Device 023: ID 1915:c00a Nordic Semiconductor ASA PPK2&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="background-color:#ffffff;color:#000000;"&gt;reading 8192 bytes took 21.00ms &lt;/span&gt;&lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 20.00ms &lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 21.00ms &lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 20.00ms &lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 22.00ms&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When connected directly to one USB port:&lt;/p&gt;
&lt;p&gt;Bus 001 Device 031: ID 1915:c00a Nordic Semiconductor ASA PPK2&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="background-color:#ffffff;color:#000000;"&gt;reading 8192 bytes took 64.00ms &lt;/span&gt;&lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 64.00ms &lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 64.00ms &lt;br /&gt;reading 8192 &lt;span style="background-color:#ffffff;color:#000000;"&gt;bytes&lt;/span&gt; took 64.00ms&lt;br /&gt; &lt;br /&gt;&lt;/span&gt;If a sample is 4 bytes this means that:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the hub is able to read 2048 samples every 20ish milliseconds. That is a rate of&amp;nbsp; ~100k samples per second. As expected.&lt;/li&gt;
&lt;li&gt;when directly connected it reads 2048 samples per 64ms. That is a rate of 32k samples per second. That is only 32% of the theoretical sample rate.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And if the timing on the graph relies on the 100k theoretical rate, when that rate is in reality only 32% then yeah, 5 seconds would look like only 32% of it, so 1.6 seconds.&lt;/p&gt;
&lt;p&gt;But why does reading take so much longer when connected to a USB port directly compared to having a USB hub in between?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>