2025-01-09 02:53 AM - last edited on 2025-01-09 03:55 AM by Peter BENSCH
I want to add I2C support to a BLE sample project, in particular BLE_Beacon or BLE_Peripheral_Lite.
In CubeMX on non-BLE projects I can select PB6-PB7 for SCL-SDA respectively.
In a BLE project there is a clash with TIMER and the I2C code is not generated into the project (the same happens when configuring any PB in the range 1-8 as output or input).
One can also configure PA0-PB14 for SCL-SDA but requires to set soldering bridges (SBs).
I did the following SBs:
On 1801: 4=off, 6=off, 12=off, 23=on
On 2032: 2=off
This does not work (I checked with oscilloscope)
What is wrong?