Forum Discussion
kmunj
New Contributor
6 years agoHi Joanne,
I read as per suggestion and tried it again. But no luck in doing a write cycle.
Is there a sample MCU code to interface with I2C_slave core?
Following is my code. Similar code worked for other write only I2C IP core, I mentioned earlier.
buffer[0]=0x04; //Write data x04 address byte
buffer[1]=0xCC; //Write data xCC
buffer[2]=0xCC; //Write data xCC
buffer[3]=0xCC; //Write data xCC
buffer[4]=0xCC; //Write data xCC
HAL_I2C_Master_Transmit
(&hi2c1,0x55<<1,buffer,5,100);
HAL_Delay(1000);
I am using Nucleo-F767ZI board interfacing with intel Cyclone board.
Thanks
Kiran