06-23-2022 09:46 AM
I have started a new Project to read Sensordata from the BHI160b. I'm using NUCLEO-L053R8 Eval Board which i will use to read out the sensordata. I started to follow the driver Porting guide to adapt the Functions to my Platform. After creating new Project with my STM32 init code and also included the BHY MCU driver. I got below errors
At the beginning i removed the lines in the file bhy_support.c
After that i tried build the target Files then i found an errors:
What do these header files do and where can i found them to build my project.? Are these files mandatory ?
When i remove above header files then I found another error regarding twi.h file as below
..\Drivers\BHI160b_driver\inc\BHy_support.h(59): error: #5: cannot open source input file "twi.h": No such file or directory
Is twi.c & twi.h files required in my STM32 Project ? I tried by removing those and compiled again but this time i found a lot more errors ?
Please refer Attached images and help me to resolve those errors.
Can anyone tell me which files are required to compile project in STM32 Cube IDE ?
Any help would be very thankful
06-23-2022 11:02 AM
06-23-2022 11:25 AM - edited 06-23-2022 11:47 AM
Thank you for the reply @BSTRobin ,
Is that project works on I2C only to read data from BHI160B ? Because I saw SPI and DMA also initialized in the provided ref code. Can you please describe me what are those for ?
Any help would be very thankful.
06-24-2022 07:48 AM
BHI160B only uses I2C.
Reference code had SPI associated code, but BHI160B didn't use it.
06-27-2022 03:43 PM