AnsweredAssumed Answered

STM32F4 HAL I2C (FMPI2C) Library disable STOP after transmit

Question asked by Cezar Chirila on Apr 2, 2018

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!