Hey!
Thank you for this great library! I'm trying to use DMP feature of ICM with this lib. For now I'm able to read raw values for Acc/Gyro/Mag without a problem.
But when I try going through the Example 6 the code freezes in initializeDMP function (I'm using the override from example 10).
It's stuck in this area:
// Configure Accel scaling to DMP // The DMP scales accel raw data internally to align 1g as 2^25 // In order to align internal accel raw data 2^25 = 1g write 0x04000000 when FSR is 4g const unsigned char accScale[4] = {0x04, 0x00, 0x00, 0x00}; result = writeDMPmems(ACC_SCALE, 4, &accScale[0]); if (result > worstResult) worstResult = result; // Write accScale to ACC_SCALE DMP register // In order to output hardware unit data as configured FSR write 0x00040000 when FSR is 4g
I believe that this might be some issue with platform (esp)?
Thank you for any help!
Your workbench
What platform are you using?
I'm using ESP32 S3 + Arudino framework
What version of the device are you using? Is there a firmware version?
I'm using this lib version 1.2.12
How is the device wired to your platform?
I2C
How is everything being powered?
Via USB power
Are there any additional details that may help us help you?
Subject of the issue
Hey! Thank you for this great library! I'm trying to use DMP feature of ICM with this lib. For now I'm able to read raw values for Acc/Gyro/Mag without a problem. But when I try going through the Example 6 the code freezes in
initializeDMP
function (I'm using the override from example 10).It's stuck in this area:
// Configure Accel scaling to DMP // The DMP scales accel raw data internally to align 1g as 2^25 // In order to align internal accel raw data 2^25 = 1g write 0x04000000 when FSR is 4g const unsigned char accScale[4] = {0x04, 0x00, 0x00, 0x00}; result = writeDMPmems(ACC_SCALE, 4, &accScale[0]); if (result > worstResult) worstResult = result; // Write accScale to ACC_SCALE DMP register // In order to output hardware unit data as configured FSR write 0x00040000 when FSR is 4g
I believe that this might be some issue with platform (esp)? Thank you for any help!
Your workbench
Steps to reproduce
I'm just using the sample code.