Skip to main content
asdf fdsa
Visitor II
January 5, 2018
Question

I2C Tests with NUCLIO -F302R8 and -F401RE

  • January 5, 2018
  • 1 reply
  • 709 views
Posted on January 06, 2018 at 00:03

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    1 reply

    Gln
    ST Employee
    January 7, 2018
    Posted on January 07, 2018 at 12:03

    Hi

    gse

    ‌,

    The HAL_I2C_Master_Transmit() function is expecting it's third argument to be a pointer to the data buffer you want to send. So you should have something like &(buffer[2]) instead of buffer[2].

    I would recommend that you have a look a the Cube

    I2C/I2C_TwoBoards_ComPolling/Src/main.c example located inside your Cube library.

    Guillaume