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?
2025-01-31 09:15 AM
Hello @LVanr.1
To be able to output both PA0 and PB15 on both ARD A5/ Pin33 CN4 and ARD D2/ Pin38 CN3, you have to set SB23, SB36 to ON and SB6, SB37 to OFF on the MB2032. After that, you can use them for I2C1.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.