Skip to main content
Visitor II
April 2, 2018
Question

STM32F4 HAL I2C (FMPI2C) Library disable STOP after transmit

  • April 2, 2018
  • 1 reply
  • 794 views
Posted on April 02, 2018 at 13:08

As the title suggests, I want to modify the HAL I2C library so that after a transmit (HAL_FMPI2C_Master_Transmit), it will not generate a STOP. 

I think I have to modify the file stm32f4xx_hal_fmpi2c.c but I have not been successful. 

In order to receive data from an I2C device, I first have to send some commands to it. Using the mem_read() function is not an option, as I need to send more than just the location in memory where I want to read. Anyone who can point me in the right location? I tried to replace the 'AUTOEND' with 'SOFTEND' but I think this is not sufficient. Thank you!

    This topic has been closed for replies.

    1 reply

    Visitor II
    July 17, 2024

    Hello Cezar!!

    Did you find any solution?