intelligent-agent / Refactor

Linux distro for 3D-printers
https://wiki.iagent.no/wiki/Refactor
GNU Affero General Public License v3.0
28 stars 19 forks source link

Add support for I2C on the STM32 #316

Closed eliasbakken closed 9 months ago

eliasbakken commented 2 years ago

There is peripheral support for I2C on the STM32F031 and the pins have been broken out on the MCU header. But the Klipper code does not yet support I2C. This should be added.

brotherdust commented 2 years ago

To clarify, I2C is supported, but:

eliasbakken commented 1 year ago

In order to get this working without too many changes, I suggest we enable it for the A7 which has 32 KB of flash instead of 16 KB. It should be possible to change the flash size in the config for Klipper, enable i2ccmds.c and add a second .bin file to /opt/firmware that can in turn be flashed during the first boot. The flash-stm32 script can determine if we have an A7 and flash with 32 KB version or A6 and earlier and flash with 16 KB version.

eliasbakken commented 9 months ago

Merged in master