Resolved! program stucks when scanning 2 i2c (hi2c2 and hi2c3) using for loop
I am using STM32L072RB MCU.I am trying to scan the devices connected to i2c bus (i2c2 and i2c3)following is my function#define DEBUG 1 void i2c_scan(void) { uint8_t *p_data; uint16_t addr_scan = 3 ; printf("I2C3 Address : "); //scanning ...