I managed to solve the problem, for some reason Wire.begin() must be called before Serial.begin(), I also had to reset the SDA and SCL pins to PB9 and PB8.
My code was like this:
#include <Wire.h>
void setup()
{
Wire.setSDA(PB9);
Wire.setSCL(PB8);
Wire.begin();
Serial.begin(9600);
Serial ...
Search found 2 matches
- Thu Nov 10, 2022 11:07 pm
- Forum: General discussion
- Topic: I2C does not work on Nucleo 64 STM32F446RE
- Replies: 2
- Views: 3203
- Thu Nov 10, 2022 6:09 pm
- Forum: General discussion
- Topic: I2C does not work on Nucleo 64 STM32F446RE
- Replies: 2
- Views: 3203
I2C does not work on Nucleo 64 STM32F446RE
First of all sorry for my english.
I'm trying to use the Arduino Wire library for the Nucleo F446RE board (STM32 boards groups 2.2.0), but I don't get any signal on the SDA and SCL, both have pullup resistors (I've tested 10k, 1k, 4k7).
I've already tried to configure the SDA and SCL pins with Wire ...
I'm trying to use the Arduino Wire library for the Nucleo F446RE board (STM32 boards groups 2.2.0), but I don't get any signal on the SDA and SCL, both have pullup resistors (I've tested 10k, 1k, 4k7).
I've already tried to configure the SDA and SCL pins with Wire ...