try to communicate between Two STM32 F407 discovery board in I2C Protocol but slave not work properly it gives no output
master side :
uint8_t TMP102_ADDR = 0x08;
uint8_t REG_TEMP = 0x01;
int result = 0x01;
(result is numerical data which i want to transfer to another stm 32 )
HAL_I2C_Master_Transmit(&hi2c3,(TMP102_ADDR<<1),&result,sizeof(result),100);
slave side stm 32 program
uint8_t TMP102_ADDR = 0x08; // Use 8-bit address
uint8_t REG_TEMP = 0x00;
char buf[4];
AL_I2C_Mem_Read(&hi2c1,(TMP102_ADDR<<1),0x0C,I2C_MEMADD_SIZE_8BIT,buf, I2C_MEMADD_SIZE_8BIT,100);
still it shows error or no output on slave side both supplied by USB and ground at common point