Skip to content

cmackint/blackpill_imu

Repository files navigation

Instructions

Generate the project using STM32CubeMX

  • Select STM32F411CEU6 MCU
  • Set pin PC13 to GPIO_Output
  • Enable USART1_RX (PA10) and USART1_TX (PA9)
  • Enable the RCC HSE and LSE crystal clocks
  • Enable I2C1 (SDA on PB7, SCL on PB6)
  • Set toolchain to Makefile

Install the following archlinux packages...

  • arm-none-eabi-gcc
  • arm-none-eabi-newlib
  • arm-none-eabi-gdb
  • openocd
  • stlink

Flash board:

sudo st-flash write blackpill_imu.bin 0x08000000

Reset board

sudo st-flash reset

Start OpenOCD:

openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg

Connect to serial device:

sudo screen /dev/ttyACM0 115200
sudo picocom -b 115200 /dev/ttyACM0 

Reset STM32

openocd -f interface/stlink-v2.cfg -f target/stm32f4x.cfg -c "init" -c "halt" -c "stm32f4x unlock 0" -c "reset halt" -c "exit"

About

An example STM32 project to use a 9 DOF IMU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages