STM32F407 Disc pin pulled high after being used as SDA pin
Hi, I am trying to read data from a sensor over I2C, I am using pin B8 as the SCL line and B9 as the SDA line. The code worked once and after reading the data from the sensor, pin B9 got stuck pulled low. I terminated and reloaded the debug session and the IDR for pin B9 was pulled high straight after startup, before running any code at all, and after stepping through the code it gets pulled low as soon as I enable the RCC for GPIOB. I switched to pin B7 and that worked once and I noticed that both B7 and B9 are pulled high before I run any code. I can switch back and forth between the pins and it runs through once before the pin being used for SDA gets stuck low. Also the temperature value I got from my sensor after converting it was 338.1 degrees Celsius. I am not sure if I made a mistake converting it or this is something to do with the issue but I can't work out why the pins would be pulled high after turning the board on. I've tried attaching the pin to ground and it still exhibits the same behaviour.
Thanks,
Dave
