Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
il y a 3 ans | |
---|---|---|
Core | il y a 3 ans | |
Drivers | il y a 3 ans | |
Middlewares | il y a 3 ans | |
USB_DEVICE | il y a 3 ans | |
.cproject | il y a 3 ans | |
.gitignore | il y a 3 ans | |
.mxproject | il y a 3 ans | |
.project | il y a 3 ans | |
CMakeLists.txt | il y a 3 ans | |
CMakeLists_template.txt | il y a 3 ans | |
Makefile | il y a 3 ans | |
README.md | il y a 3 ans | |
STM32F103CBTX_FLASH.ld | il y a 3 ans | |
STM32F103CBTx_FLASH.ld | il y a 3 ans | |
bluepill-i2c-gw.ioc | il y a 3 ans | |
startup_stm32f103xb.s | il y a 3 ans |
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