Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Custom PCB design BHI260ap using COINES examples not working

    Custom PCB design BHI260ap using COINES examples not working

    Maliya
    New Poster

    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

     

    Error message when connected to our pcbError message when connected to our pcb

    Above is the error message we got.

    If you have a possible solution please contact soon.

    Thank you.

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    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;
    }
    }

    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?

    Maliya_0-1706674552005.png

    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?

    BSTRobin
    Community Moderator
    Community Moderator

    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;

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist