bluepill firmware that turns it into a USB-I2C multimaster gateway with a simple serial protocol.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Ondřej Hruška 08dc4e3c9e add readme & switch to production build 6 months ago
Core make it work! 6 months ago
Drivers make it work! 6 months ago
Middlewares initial, cdc works 6 months ago
USB_DEVICE make it work! 6 months ago
.cproject initial, cdc works 6 months ago
.gitignore initial, cdc works 6 months ago
.mxproject initial, cdc works 6 months ago
.project initial, cdc works 6 months ago
CMakeLists.txt initial, cdc works 6 months ago
CMakeLists_template.txt initial, cdc works 6 months ago
Makefile add readme & switch to production build 6 months ago
README.md add readme & switch to production build 6 months ago
STM32F103CBTX_FLASH.ld initial, cdc works 6 months ago
STM32F103CBTx_FLASH.ld initial, cdc works 6 months ago
bluepill-i2c-gw.ioc make it work! 6 months ago
startup_stm32f103xb.s initial, cdc works 6 months ago

README.md

Bluepill USB-I2C gateway

Hardware

This is a firmware for STM32F103R8T6 Bluepill.

Customization

The project can be customized using STM32CubeMX.

there's some changes in the i2c HAL driver, careful!

line 6364

  // HACK - ignore HAL_I2C_ERROR_AF
  if (hi2c->ErrorCode != HAL_I2C_ERROR_NONE && hi2c->ErrorCode != HAL_I2C_ERROR_AF)

this allows receiving frames of unknown length

Building & programming

use the makefile and flash using a st-link dongle.

Requires: Make, arm-none-eabi-gcc, st-flash

make -j
make flash