applications icon indicating copy to clipboard operation
applications copied to clipboard

bench_pm: Helper application for testing pm behavior

Open jnohlgard opened this issue 7 years ago • 2 comments

The application assists in measuring wake up delays and for measuring power consumption of different low power modes. A logic analyzer or oscilloscope is required for taking any measurements.

This application was used to test the GPIO interrupt optimizations in RIOT-OS/RIOT#8558

Works out of the box on any board which defines BTN0_PIN which is used as a wake up trigger.

A special "coma mode" is used when building with CFLAGS=-DCOMA_MODE, this will make the application skip initialization of wake up sources and go to the lowest power mode without waking up. This mode is specifically designed to measure the baseline power consumption, to use as a reference when comparing different hardware settings and software changes.

jnohlgard avatar Nov 13 '18 07:11 jnohlgard

addressed comments

jnohlgard avatar Nov 16 '18 11:11 jnohlgard

Updated:

  • Cleaned up defines for pins, better general platform support.
  • Added "coma mode" which runs pm_set(0) in a tight loop without any additional wake up sources, to get a good reference for the minimum achievable power consumption.

jnohlgard avatar Dec 07 '18 15:12 jnohlgard