Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.34 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.34 KB

MPU Unit Test

Structure:

  • mpu-tests contains the tests themselves.
  • unit-test-app is the project to flash and run the tests. Command: make flash monitor. Works the same as the default unit-test-app from esp-idf.

There is a test configuration menu [MPU test config] in menuconfig -> component config, to setup the connection pins, speed, etc.

Note:

Before trying to build the unit-test-app, add the I2Cbus/SPIbus library path to EXTRA_COMPONENT_DIRS in the unit-test-app/Makefile.

The mpu tests also work with the default unit-test-app from esp-idf. If you 'unit-test' from there, do not forget to add the MPU component path as well as MPU/test/mpu-tests directory to EXTRA_COMPONENT_DIRS in the Makefile. (and the above dependencies).

See Unit Testing in ESP32 for more information.

Current tests:

  1. basic test
  2. sample rate measurement
  3. max sample rate test
  4. low power accelerometer mode
  5. interrupt configuration
  6. basic auxiliary I2C configuration
  7. slave 4 transfers
  8. external frame synchronization (FSYNC pin)
  9. sensor data test
  10. standby mode
  11. FIFO buffer
  12. offset test
  13. self-test check
  14. motion detection and wake-on-motion mode
  15. free-fall detection
  16. zero-motion detection
  17. compass configuration