I have called
dmp_get_pedometer_step_count(pedo);
dmp_get_pedometer_walk_time(time);
However both pedo and time always keep in 0. The value never updated no matter I shake the sensor how many times.
The defined address is following:
#define D_PEDSTD_STEPCTR (768 + 0x60)
#define D_PEDSTD_TIMECTR (964)
I have checked that I can write these register and I also can read back the value I written.
Are the addresses wrong or I need to enable anything?
I can read the gyro data, so the dmp should be enabled.