Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Time Scaling on PPK2 #141

Closed
joshbohmer opened this issue Jan 5, 2021 · 32 comments
Closed

Incorrect Time Scaling on PPK2 #141

joshbohmer opened this issue Jan 5, 2021 · 32 comments

Comments

@joshbohmer
Copy link

Time Scaling is incorrect. See attached

Each event shown here is ~40s duration & ~5minute between starts. Power Profiler says 6.34s & 48.8s

image
image
image

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 5, 2021

Thank you for reporting! Is this happening all the time, also for shorter events? You should see it quite immediately, since this is really a long way off! Also, try and zoom in on the chart and see if there are any data points that seem missing.
We've seen that if sampling with a large window for a long time, causing the software to display a lot of samples continuously, this behavior might happen (but on a much smaller scale) but haven't been able to reproduce properly. Please also try to sample the same application, but with a smaller window. When you have the data you need, stop sampling and then zoom out to the full view to measure the timing again.

Also, please post your system specs. Thank you.

@joshbohmer
Copy link
Author

Issue happens immediately on opening the Profiler window & starting the sample. See below.

image

In this example 1minute is reported as 10s on the time scale.

I've also tried a small window & same issue as you can see

My system is as follows...
Ryzen 1600, 32GB RAM, 1TB NVME SSD, 8GB 1070, Win 10 Pro

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 6, 2021

Not good... Can you zoom way in on the chart, like 500µs window size so you see the individual samples?
image
Also try with power off, just for brevity's sake.
EDIT: Please also share some information about your DUT. If you can recreate this by toggling "Enable Power output" with 2 seconds interval, and enable timestamps on the chart, that could help as well.
If you can start the app, clear the log, start sampling, stop sampling and zoom out to show all the data and screencap with log and timestamps visible, it could give us even more insight

@joshbohmer
Copy link
Author

joshbohmer commented Jan 6, 2021

Zoomed In
image

Power Off
image

Below DUT is a Nordic nRF52 DK w/ nRF Connect Bluetooth Low Energy Firmware as pictured.
image
20210106_194221

Requested Test Below w/logs (power on/off every 2 seconds)
image

2021-01-06T09_04_47.147Z-log.txt

My Windows 10 region is set to Australia AU in case its a date/time formatting issue.

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 6, 2021

Thank you. For the feature, please enable the timestamps from the sidebar as well so we can see it along the x-axis:) I see that your zoomed in window measures exactly as expected. Every sample is 10µs, and you mark 12 samples = 120µs. This rules out any date/time formatting issue. I also see that you didn't zoom in on the plot where you power toggle, so I need you to do that, maybe look around a little to see if there are any gaps in the data set. Also, just start sampling and stop some seconds later, so we can correlate the whole range of timestamps along the x-axis with the log.

@joshbohmer
Copy link
Author

Short Sample (10s)
image
Log
2021-01-06T10_44_21.869Z-log.txt
Data Export
ppk-20210106T104921_csv.txt
Zoomed In
image

@bencefr
Copy link
Contributor

bencefr commented Jan 6, 2021

@joshbohmer , the "Short sample (10s)" screenshot does not show the 10s sample in the chart, please navigate the chart to the relevant 10s area. Please note the state of the LIVE VIEW toggle (which is off on the screenshot). If you toggle that on, the chart would be aligned to the latest data. I suggest to first click on the [10s] button, toggle LIVE VIEW on. So far I can't positively judge if there is anything wrong with the app.

@joshbohmer
Copy link
Author

That is the entire chart, 10s is shown as ~1.6s

Same data, with Live View enabled as proof
image

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 6, 2021

Do you observe the incoming data as one to one with the DUT connection (like unplugging, turning it on and off)? Just to know if it is just the time axis that is wrong, but also the timing of the incoming samples.

@bencefr
Copy link
Contributor

bencefr commented Jan 6, 2021

I see. Could you please press Ctrl+Alt+Shift+L, so the Export button changes to Save/Export, then click on it and choose Save. Please share the saved PPK file.

Note: this functionality is hidden intentionally, because we expect it will break in the future.

@joshbohmer
Copy link
Author

@wlgrd The data shown on the graph is correct & 1:1 with what's expected. It's just the time scale which shows incorrect & (i think) makes the power usage numbers incorrect. the nRF52 DK should not be using ~10mA

@bencefr Attached
ppk-20210106T113219.zip

@joshbohmer
Copy link
Author

Video Attached, hopefully it helps

2021-01-06.22-16-11.mp4

@bencefr
Copy link
Contributor

bencefr commented Jan 6, 2021

There is a massive data loss from the PPK2 to the app somewhere. We have experienced data loss, but not to this nature. Do you have anything unusual in your setup? If you can, please connect the PPK2 to an other, preferably USB3 port. Avoid using HUBs and try changing the cable. Don't use virtual machine environments.

@joshbohmer
Copy link
Author

It plugs directly into a USB3 motherboard port. No hubs. Nothing unusual I can think of.

@joshbohmer
Copy link
Author

Different Cable & Different USB3 Port on the Motherboard

image

@joshbohmer
Copy link
Author

For data loss its VERY consistent. I would expect different results every time if it were data loss. This is always the same. ~6s (Real) = ~1s (Chart)

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 6, 2021

Can you try in a USB 2.0 port?

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 6, 2021

Also, if possible, please try with a different computer altogether. This is really interesting, and I guess more people will experience a similar issue if this is some hardware compatibility issue. Your findings are appreciated

@joshbohmer
Copy link
Author

joshbohmer commented Jan 6, 2021

So on a USB2 port I get this. 2s = 1s - Which is an improvement & clearly a hardware (or driver) compatibility issue then.

image

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 8, 2021

Thank you for your reports. We will work to reproduce this locally and get back to you.

@wlgrd
Copy link
Collaborator

wlgrd commented Jan 14, 2021

Can you share information about your chipset?

@wlgrd
Copy link
Collaborator

wlgrd commented Feb 15, 2021

@joshbohmer Just bumping to get some information about your chipset. Also, please check if 3.1 solves this issue for you.

@kareszv13
Copy link

I have similar issue (v3.1.0)

nRFConnect System Report - 2021-03-03T12-46-14.367Z

  • System: Gigabyte Technology Co., Ltd. B450M S2H

  • BIOS: American Megatrends Inc. ALASKA - 1072009

  • CPU: 1 x AMD Ryzen 7 2700X Eight-Core Processor 3.7 GHz 16 cores (8 physical)

  • Memory: 6.6 GB free of 15.9 GB total

  • Filesystem: C: (NTFS) 418.4 GB 88.2% used

  • OS: Microsoft Windows 10 Education (10.0.19042) win32 ia32

  • Versions

    • kernel: 10.0.19042
    • git: 2.24.1.windows.2
    • node: 12.13.0
    • python: 3.8.2
    • python3:
  • Connected devices:

    • COM3: C43C9BA7C356

@wlgrd
Copy link
Collaborator

wlgrd commented Oct 21, 2021

@kareszv13 did you get to update your chipset after AMD released fixes for their USB issues? We have verified that this is primarily an AMD issue, and see a lot of customers getting rid of this issue after updating the chipset .

@rodrigobrochado
Copy link

I'm having the same problem with a PPK (old one) attached on top of a nrf52840-DK. I have already tested with different versions for nRF connect (3.9.3, 3.71 and 3.6.1) and Power Profiler app, and flashed different firmwares on the PPK nrf52832 using those versions. Also tested on Ubuntu 21.10, 20.10 (it has already worked on 20.10 before) and on a different notebook with Windows 10.

I'm kind of skeptical, but due the age of both boards, could this problem be caused by hardware damage? @wlgrd

@wlgrd
Copy link
Collaborator

wlgrd commented Feb 1, 2022

So you have incorrect time scaling as well? That's an issue we haven't seen with the PPK, only the PPK2. The time scale should definitely not be affected by the age of the hardware.

@rodrigobrochado
Copy link

Yes, incorrect time scaling. I'm also not getting correct and reproducible measurements values, that's why i though of hardware damage. e.g.: I normally get constant 3mA for an erased nrf52840 chip, but I'm getting some strange behavior:
image

Sometimes it even gets constant 25 uA for the erased chip...

@rodrigobrochado
Copy link

New PPK2 working fine on same PC and settings (had just to update udev rules). It seems that both our old ppk and nrf DK was not working as expected. I would blame sea air corrosion...

@wlgrd
Copy link
Collaborator

wlgrd commented Mar 7, 2022

Strange indeed. Can you give me the label information of both the working and failing PPK2's that you have?

@rodrigobrochado
Copy link

The failing one is a PPK1, not PPK2, mounted on top of a DK.
PPK1 label: PCA63511 Rev 1.1.0, 2018.44
DK label: PCA10056 1.1.0, 2019.11

@wlgrd
Copy link
Collaborator

wlgrd commented Mar 7, 2022

Ah, of course. Sorry for that. It should definitely not be caused by aging hardware at least. For the PPK1 case, there are aspects of it that we cannot control due to using the debugger firmware from SEGGER to provide the transport of the data. Will keep an eye out for more cases, so thank you for reporting it.

@wlgrd
Copy link
Collaborator

wlgrd commented Mar 7, 2022

Since OP hasn't responded in some time and others reporting PPK2 working fine now, I will close this. Please open another issue if this occurs again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants