OpenIMU330BI Debug error

Hello, Aceinna.

Now, we are trying to debug the code on the OpenIMU330BI.

Building the code is success. Because, we used the original code downloaded from the Aceinna's platform IO (imu330).

However, the debugging process stopped, and showed error message as below figure.

<Debug Console>
e360c2f8-4d7b-4aad-938a-c43e4198dc47-image.png

< Terminal >
3f49666a-1ea8-45be-8f47-9c79795c7cf9-image.png

Could you let us how to configure this problem?
This is our setup. We used STLINK V2.0
ff0f999a-36bf-4737-bb80-2b182f670e84-image.png

This is the code we used was downloaded via Aceinna Platform IO as below figure.
fcb093a6-4657-4ed2-9964-96c25da5393e-image.png

Hello, Aceinna.

Fortunately, we succeeded in uploading the bin file to the 330bi through the ST Link Utility.

However, one final barrier remains.

I want to receive Roll and Pitch values ​​as well as Acceleration and Gyro from the 330BI. However, there are no roll and pitch values ​​in the z1 packet.

So, I am testing it simply by entering the roll and pitch values ​​into the Mag_x and Max_y values using below code.


BOOL Fill_z1PacketPayload(uint8_t *payload, uint8_t *payloadLen)
{
uint64_t tstamp;
double accels[NUM_AXIS];
double mags[NUM_AXIS];
double rates[NUM_AXIS];
real EulerAngles[NUM_AXIS];

data1_payload_t *pld = (data1_payload_t *)payload;  

// tstamp = platformGetDacqTimeStamp(); // time stamp of last sensor sample in microseconds from system start
tstamp = platformGetCurrTimeStamp(); // current time stamp in microseconds from system start
// tstamp /= 1000; // convert to miliseconds
// timer = getSystemTime(); // OS timer value (tick defined in FreeRTOSConfig.h)
pld->timer = tstamp;

EKF_GetAttitude_EA(EulerAngles);
GetAccelData_mPerSecSq(accels);
GetRateData_degPerSec(rates);
GetMagData_G(mags);

for (int i = 0; i < NUM_AXIS; i++){
    pld->accel_mpss[i] = (float)accels[i];
    pld->rate_dps[i] = (float)rates[i];
    //pld->mag_G[i] = (float)mags[i];
}
pld->mag_G[0]    = (float)EulerAngles[ROLL];
pld->mag_G[1]    = (float)EulerAngles[PITCH];
*payloadLen = sizeof(data1_payload_t);
return TRUE;

}

However, when we get the EulerAngles[ROLL] and EulerAngles[PITCH], those values were zero....................................................
How to get the slope data from the 330BI?????

Log in to reply