Skip to content

eiffelpeter/STM32F4-HAL-BHI360

Repository files navigation

Install STM32 tools

STM32CubeMX
STM32CubeIDE
STM32CubeProgrammer

Clone code

git clone https://github.com/eiffelpeter/STM32F4-HAL-BHI360.git

Connect STM32F4-Discovery and BHI360 via I2C

IMAGE ALT TEXT HERE

I2C interface connections for BHI360 shuttle board

IMAGE ALT TEXT HERE

IMAGE ALT TEXT HERE

Build and Download

  1. Open STM32F4-HAL-BHI360.ioc file in the STM32CubeMX and generate code.
  2. Open STM32CubeIDE and import by Import Atollic TrueSTUDIO Project.
  3. Open STM32CubeProgrammer and select STM32F4-HAL-BHI360.hex to Download.
  4. After Download, press STM32F4 reset button to run.
  5. LD4 LED blink when read sensors successfully.
  6. Console log print tx at STM32 PA2 ( baud rate 115200 ).
    IMAGE ALT TEXT HERE

Check build log for flash and ram size

   text	   data	    bss	    dec	    hex	filename
 183076	    468	  28072	 211616	  33aa0	STM32F4-HAL-BHI360.elf

Build error

Please check STM32Cube path in .cproject and .project files.
IMAGE ALT TEXT HERE

Reference

STM32-HAL-BHI360. This document show howto build STM32G4.

About

Access BHI360 via STM32F4 I2C

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published