2023-09-17 02:04 AM - edited 2023-09-17 02:06 AM
I am trying to send data over I2C3 Using STM32F429 Dev Board and Everyting works fine except the HEX Data I want to send
I am Passing this function
HAL_I2C_Mem_Write(&hi2c3,0x30<<1,0x09,I2C_MEMADD_SIZE_8BIT,0XFF,1,100);
And Getting the Following Output on Logic Analyzer
write to 0x30 ack data: 0x09 0x08
Why I am getting 0x08 instead of 0xFF?
Solved! Go to Solution.
2023-09-17 02:40 AM
right. parameter "0XFF" wrong, needs to be a pointer to the data.
2023-09-17 02:18 AM
I don't use Cube/HAL, but you are probably supposed to pass a pointer to an array of bytes, rather than individual values.
JW
2023-09-17 02:40 AM
right. parameter "0XFF" wrong, needs to be a pointer to the data.