01-23-2024 12:12 PM
Hi team,
We have built a PCB to get orientation data for our product using BHI260ap, BMM150, and the flash memory chip used in the shuttle board. When we connected our PCB to the application board 3.0 connector and uploaded the firmware using COINES(Euler example) the output didn't come as expected.
We connected the below pins to the application board 3.0,
VDDIO
VDD
CS (HCSB)
CLK (HSCX)
MISO (HSDO)
MOSI (HSDX)
GND
GPIO2/INT1
Above is the error message we got.
If you have a possible solution please contact soon.
Thank you.
01-26-2024 03:10 AM
Hi Maliya,
According BHI260AP shuttle board https://www.bosch-sensortec.com/media/boschsensortec/downloads/shuttle_board_flyer/application_board..., you need to modify coines software code if you didn't design EEPROM on your hardware board.
In mcu_app3x_support.c, change the code like this and try it again.
int16_t coines_get_board_info(struct coines_board_info *data)
{
if (data != NULL)
{
#if defined(MCU_APP30)
data->board = 5;
#else
data->board = 0xFE;
#endif
data->hardware_id = 0x11;
data->shuttle_id = get_shuttle_id();
data->software_id = 0x10;
#if defined(MCU_APP30)
//if (app30_eeprom_romid(data->eeprom_id))
if(1)
{
return COINES_SUCCESS;
}
else
{
return COINES_E_FAILURE;
}
#else
return COINES_SUCCESS;
#endif
}
else
{
return COINES_E_NULL_PTR;
}
}
01-30-2024 08:50 AM
Thank you very much for the reply. I updated the code but it didn't fix the problem, because we found out that we haven't connected the BMM150 INT(DRDY) pin to the BHI260AP, We assumed that's why we still get the above error. Is there any code in COINES that we can get only the gyroscope values using only BHI260AP's internal sensors(without using BMM150 or any other sensors)? If there is can you mention where I can find it?
01-31-2024 05:17 AM
Also, in the above-mentioned code it calls this get_shuttle_id() function and I think it is also taken from the EEPROM, do I have to change this code too?
03-08-2024 07:37 AM
Hi Maliya,
If you only would like to access IMU data(accel, gyro), you can load the firmware BHI260AP.fw.h(under folder C:\COINES\v2.8.8\examples\bhy2\firmware\bhi260ap).
You can change the code to:
data->shuttle_id = 0x119;