Skip to main content
Graduate II
September 17, 2023
Solved

I2C Data Transfer Problem

  • September 17, 2023
  • 1 reply
  • 1329 views

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?

 

 

    This topic has been closed for replies.
    Best answer by AScha.3

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

    1 reply

    Super User
    September 17, 2023

    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

    AScha.3Answer
    Super User
    September 17, 2023

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