cancel
Showing results for 
Search instead for 
Did you mean: 

I2C Data Transfer Problem

ZExpo.1
Senior

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?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

right. parameter "0XFF" wrong, needs to be a pointer to the data.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2

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

right. parameter "0XFF" wrong, needs to be a pointer to the data.

If you feel a post has answered your question, please click "Accept as Solution".