cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 HAL I2C (FMPI2C) Library disable STOP after transmit

Cezar Chirila
Associate II
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!

1 REPLY 1
JEMqz
Associate

Hello Cezar!!

Did you find any solution?