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.
|
|
4 years ago | |
|---|---|---|
| Core | 4 years ago | |
| Drivers | 4 years ago | |
| Middlewares | 4 years ago | |
| USB_DEVICE | 4 years ago | |
| .cproject | 4 years ago | |
| .gitignore | 4 years ago | |
| .mxproject | 4 years ago | |
| .project | 4 years ago | |
| CMakeLists.txt | 4 years ago | |
| CMakeLists_template.txt | 4 years ago | |
| Makefile | 4 years ago | |
| README.md | 4 years ago | |
| STM32F103CBTX_FLASH.ld | 4 years ago | |
| STM32F103CBTx_FLASH.ld | 4 years ago | |
| bluepill-i2c-gw.ioc | 4 years ago | |
| startup_stm32f103xb.s | 4 years 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